mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
kubeadm: no need to check if target coredns version is not changed
This commit is contained in:
parent
744d9bfda3
commit
b1ee8c8b82
@ -285,7 +285,11 @@ func isCoreDNSConfigMapMigrationRequired(corefile, currentInstalledCoreDNSVersio
|
||||
return isMigrationRequired, nil
|
||||
}
|
||||
currentInstalledCoreDNSVersion = strings.TrimLeft(currentInstalledCoreDNSVersion, "v")
|
||||
deprecated, err := migration.Deprecated(currentInstalledCoreDNSVersion, strings.TrimLeft(kubeadmconstants.CoreDNSVersion, "v"), corefile)
|
||||
targetCoreDNSVersion := strings.TrimLeft(kubeadmconstants.CoreDNSVersion, "v")
|
||||
if currentInstalledCoreDNSVersion == targetCoreDNSVersion {
|
||||
return isMigrationRequired, nil
|
||||
}
|
||||
deprecated, err := migration.Deprecated(currentInstalledCoreDNSVersion, targetCoreDNSVersion, corefile)
|
||||
if err != nil {
|
||||
return isMigrationRequired, errors.Wrap(err, "unable to get list of changes to the configuration.")
|
||||
}
|
||||
|
@ -81,7 +81,11 @@ func checkUnsupportedPlugins(client clientset.Interface) error {
|
||||
}
|
||||
|
||||
currentInstalledCoreDNSversion = strings.TrimLeft(currentInstalledCoreDNSversion, "v")
|
||||
unsupportedCoreDNS, err := migration.Unsupported(currentInstalledCoreDNSversion, currentInstalledCoreDNSversion, corefile)
|
||||
targetCoreDNSVersion := strings.TrimLeft(kubeadmconstants.CoreDNSVersion, "v")
|
||||
if currentInstalledCoreDNSversion == targetCoreDNSVersion {
|
||||
return nil
|
||||
}
|
||||
unsupportedCoreDNS, err := migration.Unsupported(currentInstalledCoreDNSversion, targetCoreDNSVersion, corefile)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user