We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 109810d + 29ec87f commit 18cc21eCopy full SHA for 18cc21e
staging/src/k8s.io/apiserver/pkg/server/options/serving.go
@@ -287,8 +287,7 @@ func (s *SecureServingOptions) MaybeDefaultWithSelfSignedCerts(publicAddress str
287
288
if !canReadCertAndKey {
289
// add either the bind address or localhost to the valid alternates
290
- bindIP := s.BindAddress.String()
291
- if bindIP == "0.0.0.0" {
+ if s.BindAddress.IsUnspecified() {
292
alternateDNS = append(alternateDNS, "localhost")
293
} else {
294
alternateIPs = append(alternateIPs, s.BindAddress)
0 commit comments