mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +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:
parent
dc96c3dfcc
commit
29a870da2e
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user