mirror of
https://github.com/minio/minio.git
synced 2025-11-21 18:26:04 -05:00
Enable config for NAS gateway mode (#7948)
Starting with #7751 we don't store config in etcd anymore, allow NAS to honor config on disk.
This commit is contained in:
committed by
kannappanr
parent
e40c29e834
commit
d744865dc6
@@ -158,7 +158,7 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
|
||||
registerSTSRouter(router)
|
||||
}
|
||||
|
||||
enableConfigOps := globalEtcdClient != nil && gatewayName == "nas"
|
||||
enableConfigOps := gatewayName == "nas"
|
||||
enableIAMOps := globalEtcdClient != nil
|
||||
|
||||
// Enable IAM admin APIs if etcd is enabled, if not just enable basic
|
||||
@@ -236,6 +236,10 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
|
||||
|
||||
// Load globalServerConfig from etcd
|
||||
logger.LogIf(context.Background(), globalConfigSys.Init(newObject))
|
||||
|
||||
// Start watching disk for reloading config, this
|
||||
// is only enabled for "NAS" gateway.
|
||||
globalConfigSys.WatchConfigNASDisk(newObject)
|
||||
}
|
||||
|
||||
// Load logger subsystem
|
||||
|
||||
Reference in New Issue
Block a user