mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Move etcd, logger, crypto into their own packages (#8366)
- Deprecates _MINIO_PROFILER, `mc admin profile` does the job - Move ENVs to common location in cmd/config/
This commit is contained in:
committed by
kannappanr
parent
bffc378a4f
commit
290ad0996f
@@ -32,6 +32,7 @@ import (
|
||||
"github.com/minio/cli"
|
||||
"github.com/minio/minio-go/v6/pkg/set"
|
||||
"github.com/minio/minio/cmd/config"
|
||||
"github.com/minio/minio/cmd/config/etcd"
|
||||
"github.com/minio/minio/cmd/logger"
|
||||
"github.com/minio/minio/pkg/env"
|
||||
"github.com/minio/minio/pkg/mountinfo"
|
||||
@@ -572,9 +573,9 @@ func CreateEndpoints(serverAddr string, args ...[]string) (string, EndpointList,
|
||||
return serverAddr, endpoints, setupType, err
|
||||
}
|
||||
|
||||
_, dok := env.Lookup("MINIO_DOMAIN")
|
||||
_, eok := env.Lookup("MINIO_ETCD_ENDPOINTS")
|
||||
_, iok := env.Lookup("MINIO_PUBLIC_IPS")
|
||||
_, dok := env.Lookup(config.EnvDomain)
|
||||
_, eok := env.Lookup(etcd.EnvEtcdEndpoints)
|
||||
_, iok := env.Lookup(config.EnvPublicIPs)
|
||||
if dok && eok && !iok {
|
||||
updateDomainIPs(uniqueArgs)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user