mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Remove safe mode for invalid entries in config (#8650)
The approach is that now safe mode is only invoked when we cannot read the config or under some catastrophic situations, but not under situations when config entries are invalid or unreachable. This allows for maximum availability for MinIO and not fail on our users unlike most of our historical releases.
This commit is contained in:
@@ -109,8 +109,7 @@ func parseEndpoints(endpoints string) ([]string, bool, error) {
|
||||
return nil, false, err
|
||||
}
|
||||
if etcdSecure && u.Scheme == "http" {
|
||||
return nil, false, config.Errorf(config.SafeModeKind,
|
||||
"all endpoints should be https or http: %s", endpoint)
|
||||
return nil, false, config.Errorf("all endpoints should be https or http: %s", endpoint)
|
||||
}
|
||||
// If one of the endpoint is https, we will use https directly.
|
||||
etcdSecure = etcdSecure || u.Scheme == "https"
|
||||
|
||||
Reference in New Issue
Block a user