Merge pull request #107785 from chendave/warn

kubeadm: warn only when config value is different with default value
This commit is contained in:
Kubernetes Prow Robot 2022-02-08 08:18:55 -08:00 committed by GitHub
commit eda02deda2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}
}