coredns dep.Severity is newdefault, not newDefault

Signed-off-by: pacoxu <paco.xu@daocloud.io>
This commit is contained in:
Paco Xu 2020-11-27 17:28:56 +08:00 committed by pacoxu
parent 5ed4b76a03
commit 4525f3fef8

View File

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