1
0
mirror of https://github.com/minio/mc.git synced 2025-11-09 02:22:18 +03:00

Implement mc ready to check if the cluster is ready or not (#4101)

Also adds option to check if the cluster has enough read quorum and if
the cluster is taken down for any maintenance.

Uses madmin.AnonymousClient for invoking the requests
This commit is contained in:
Praveen raj Mani
2022-07-02 00:32:25 +05:30
committed by GitHub
parent 5afc2bdfad
commit c29c4a38a6
7 changed files with 230 additions and 2 deletions

View File

@@ -151,8 +151,8 @@ func NewS3Config(urlStr string, aliasCfg *aliasConfigV10) *Config {
s3Config.SecretKey = aliasCfg.SecretKey
s3Config.SessionToken = aliasCfg.SessionToken
s3Config.Signature = aliasCfg.API
s3Config.Lookup = getLookupType(aliasCfg.Path)
}
s3Config.Lookup = getLookupType(aliasCfg.Path)
return s3Config
}