mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
standardize config help defaults (#14788)
This commit is contained in:
@@ -21,35 +21,39 @@ import "github.com/minio/minio/internal/config"
|
||||
|
||||
// etcd config documented in default config
|
||||
var (
|
||||
defaultHelpPostfix = func(key string) string {
|
||||
return config.DefaultHelpPostfix(DefaultKVS, key)
|
||||
}
|
||||
|
||||
Help = config.HelpKVS{
|
||||
config.HelpKV{
|
||||
Key: Endpoints,
|
||||
Description: `comma separated list of etcd endpoints e.g. "http://localhost:2379"`,
|
||||
Description: `comma separated list of etcd endpoints` + defaultHelpPostfix(Endpoints),
|
||||
Type: "csv",
|
||||
Sensitive: true,
|
||||
},
|
||||
config.HelpKV{
|
||||
Key: PathPrefix,
|
||||
Description: `namespace prefix to isolate tenants e.g. "customer1/"`,
|
||||
Description: `namespace prefix to isolate tenants` + defaultHelpPostfix(PathPrefix),
|
||||
Optional: true,
|
||||
Type: "path",
|
||||
},
|
||||
config.HelpKV{
|
||||
Key: CoreDNSPath,
|
||||
Description: `shared bucket DNS records, default is "/skydns"`,
|
||||
Description: `shared bucket DNS records` + defaultHelpPostfix(CoreDNSPath),
|
||||
Optional: true,
|
||||
Type: "path",
|
||||
},
|
||||
config.HelpKV{
|
||||
Key: ClientCert,
|
||||
Description: `client cert for mTLS authentication`,
|
||||
Description: `client cert for mTLS authentication` + defaultHelpPostfix(ClientCert),
|
||||
Optional: true,
|
||||
Type: "path",
|
||||
Sensitive: true,
|
||||
},
|
||||
config.HelpKV{
|
||||
Key: ClientCertKey,
|
||||
Description: `client cert key for mTLS authentication`,
|
||||
Description: `client cert key for mTLS authentication` + defaultHelpPostfix(ClientCertKey),
|
||||
Optional: true,
|
||||
Type: "path",
|
||||
Sensitive: true,
|
||||
|
||||
Reference in New Issue
Block a user