mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 05:02:50 +00:00
kubeadm: warn only when config value is different with default value
Compare with two pointers will always show that they are different value, so it will always print the warning message. Signed-off-by: Dave Chen <dave.chen@arm.com>
This commit is contained in:
@@ -223,7 +223,7 @@ func (kc *kubeletConfig) Default(cfg *kubeadmapi.ClusterConfiguration, _ *kubead
|
||||
if kc.config.ResolverConfig == nil {
|
||||
kc.config.ResolverConfig = utilpointer.String(kubeletSystemdResolverConfig)
|
||||
} else {
|
||||
if kc.config.ResolverConfig != utilpointer.String(kubeletSystemdResolverConfig) {
|
||||
if *kc.config.ResolverConfig != kubeletSystemdResolverConfig {
|
||||
warnDefaultComponentConfigValue(kind, "resolvConf", kubeletSystemdResolverConfig, *kc.config.ResolverConfig)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user