Skip to content

Commit 2b9e782

Browse files
authored
Merge pull request kubernetes#88623 from rajansandeep/unsupportedbug
[kubeadm]: Fix CoreDNS unsupported preflight check
2 parents 650220f + da8453a commit 2b9e782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/kubeadm/app/phases/upgrade/preflight.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func checkUnsupportedPlugins(client clientset.Interface) error {
8585
if err != nil {
8686
return err
8787
}
88-
if unsupportedCoreDNS != nil {
88+
if len(unsupportedCoreDNS) != 0 {
8989
var UnsupportedPlugins []string
9090
for _, unsup := range unsupportedCoreDNS {
9191
UnsupportedPlugins = append(UnsupportedPlugins, unsup.ToString())

0 commit comments

Comments
 (0)