Skip to content

Commit da8453a

Browse files
committed
fix unsupported bug
1 parent 650220f commit da8453a

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)