Merge pull request #88623 from rajansandeep/unsupportedbug

[kubeadm]: Fix CoreDNS unsupported preflight check
This commit is contained in:
Kubernetes Prow Robot 2020-02-27 09:45:27 -08:00 committed by GitHub
commit 2b9e782a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ func checkUnsupportedPlugins(client clientset.Interface) error {
if err != nil {
return err
}
if unsupportedCoreDNS != nil {
if len(unsupportedCoreDNS) != 0 {
var UnsupportedPlugins []string
for _, unsup := range unsupportedCoreDNS {
UnsupportedPlugins = append(UnsupportedPlugins, unsup.ToString())