add dnsStore interface for upcoming operator webhook (#10077)

This commit is contained in:
Harshavardhana
2020-07-20 12:28:48 -07:00
committed by GitHub
parent 518f44908c
commit 9fd836e51f
7 changed files with 43 additions and 11 deletions

View File

@@ -223,7 +223,11 @@ func handleCommonEnvVars() {
} else {
// Add found interfaces IP address to global domain IPS,
// loopback addresses will be naturally dropped.
updateDomainIPs(mustGetLocalIP4())
domainIPs := mustGetLocalIP4()
for _, host := range globalEndpoints.Hostnames() {
domainIPs.Add(host)
}
updateDomainIPs(domainIPs)
}
// In place update is true by default if the MINIO_UPDATE is not set