hide some deprecated fields from 'get' output (#20069)

also update wording on `subnet license="" api_key=""`
This commit is contained in:
Harshavardhana
2024-07-10 13:16:44 -07:00
committed by GitHub
parent 27538e2d22
commit a8c6465f22
6 changed files with 30 additions and 24 deletions

View File

@@ -101,12 +101,14 @@ var (
Value: "",
},
config.KV{
Key: ClaimPrefix,
Value: "",
Key: ClaimPrefix,
Value: "",
HiddenIfEmpty: true,
},
config.KV{
Key: RedirectURI,
Value: "",
Key: RedirectURI,
Value: "",
HiddenIfEmpty: true,
},
config.KV{
Key: RedirectURIDynamic,

View File

@@ -861,20 +861,24 @@ var (
Value: config.EnableOff,
},
config.KV{
Key: target.NATSStreaming,
Value: config.EnableOff,
Key: target.NATSStreaming,
Value: config.EnableOff,
HiddenIfEmpty: true,
},
config.KV{
Key: target.NATSStreamingAsync,
Value: config.EnableOff,
Key: target.NATSStreamingAsync,
Value: config.EnableOff,
HiddenIfEmpty: true,
},
config.KV{
Key: target.NATSStreamingMaxPubAcksInFlight,
Value: "0",
Key: target.NATSStreamingMaxPubAcksInFlight,
Value: "0",
HiddenIfEmpty: true,
},
config.KV{
Key: target.NATSStreamingClusterID,
Value: "",
Key: target.NATSStreamingClusterID,
Value: "",
HiddenIfEmpty: true,
},
config.KV{
Key: target.NATSQueueDir,

View File

@@ -42,12 +42,14 @@ const (
var (
DefaultKVS = config.KVS{
config.KV{
Key: URL,
Value: "",
Key: URL,
Value: "",
HiddenIfEmpty: true,
},
config.KV{
Key: AuthToken,
Value: "",
Key: AuthToken,
Value: "",
HiddenIfEmpty: true,
},
}
)

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2015-2021 MinIO, Inc.
// Copyright (c) 2015-2024 MinIO, Inc.
//
// This file is part of MinIO Object Storage stack
//
@@ -27,23 +27,23 @@ var (
// HelpSubnet - provides help for subnet api key config
HelpSubnet = config.HelpKVS{
config.HelpKV{
Key: config.License, // Deprecated Dec 2021
Key: config.License,
Type: "string",
Description: "[DEPRECATED use api_key] Subnet license token for the cluster" + defaultHelpPostfix(config.License),
Description: "Enterprise license for the cluster" + defaultHelpPostfix(config.License),
Optional: true,
Sensitive: true,
},
config.HelpKV{
Key: config.APIKey,
Type: "string",
Description: "Subnet api key for the cluster" + defaultHelpPostfix(config.APIKey),
Description: "Enterprise license API key for the cluster" + defaultHelpPostfix(config.APIKey),
Optional: true,
Sensitive: true,
},
config.HelpKV{
Key: config.Proxy,
Type: "string",
Description: "HTTP(S) proxy URL to use for connecting to SUBNET" + defaultHelpPostfix(config.Proxy),
Description: "HTTP(s) proxy URL to use for connecting to SUBNET" + defaultHelpPostfix(config.Proxy),
Optional: true,
Sensitive: true,
},