From 4525f3fef8db418288053feb517bc4b8816066e0 Mon Sep 17 00:00:00 2001 From: Paco Xu Date: Fri, 27 Nov 2020 17:28:56 +0800 Subject: [PATCH] coredns dep.Severity is newdefault, not newDefault Signed-off-by: pacoxu --- cmd/kubeadm/app/phases/addons/dns/dns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kubeadm/app/phases/addons/dns/dns.go b/cmd/kubeadm/app/phases/addons/dns/dns.go index 1f2e2d973bbef..ad57b0093a984 100644 --- a/cmd/kubeadm/app/phases/addons/dns/dns.go +++ b/cmd/kubeadm/app/phases/addons/dns/dns.go @@ -380,7 +380,7 @@ func isCoreDNSConfigMapMigrationRequired(corefile, currentInstalledCoreDNSVersio // Check if there are any plugins/options which needs to be removed or is a new default for _, dep := range deprecated { - if dep.Severity == "removed" || dep.Severity == "newDefault" { + if dep.Severity == "removed" || dep.Severity == "newdefault" { isMigrationRequired = true } }