Merge pull request #106288 from champtar/kubeadm-warn

kubeadm: fix inverted warning message
This commit is contained in:
Kubernetes Prow Robot 2021-11-10 10:19:50 -08:00 committed by GitHub
commit 375fb6f017
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ func (kp *kubeProxyConfig) Default(cfg *kubeadmapi.ClusterConfiguration, localAP
if kp.config.BindAddress == "" {
kp.config.BindAddress = defaultBindAddress
} else if kp.config.BindAddress != defaultBindAddress {
warnDefaultComponentConfigValue(kind, "bindAddress", kp.config.BindAddress, defaultBindAddress)
warnDefaultComponentConfigValue(kind, "bindAddress", defaultBindAddress, kp.config.BindAddress)
}
if kp.config.ClusterCIDR == "" && cfg.Networking.PodSubnet != "" {