From 356d9e0626f504cc277eb419abfb10a815decaf2 Mon Sep 17 00:00:00 2001 From: Etienne Champetier Date: Tue, 9 Nov 2021 20:54:57 -0500 Subject: [PATCH] kubeadm: fix inverted warning message Before this commit when setting bindAddress to 1.2.3.4 the warning was: The recommended value for "bindAddress" in "KubeProxyConfiguration" is: 1.2.3.4; the provided value is: 0.0.0.0 Signed-off-by: Etienne Champetier --- cmd/kubeadm/app/componentconfigs/kubeproxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kubeadm/app/componentconfigs/kubeproxy.go b/cmd/kubeadm/app/componentconfigs/kubeproxy.go index aec7f35e769..26dbc5651a1 100644 --- a/cmd/kubeadm/app/componentconfigs/kubeproxy.go +++ b/cmd/kubeadm/app/componentconfigs/kubeproxy.go @@ -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 != "" {