Merge pull request #86917 from rosti/kubeadm-cc-fix-misleading-warning

kubeadm: Fix a false positive in a warning
This commit is contained in:
Kubernetes Prow Robot
2020-01-08 02:59:05 -08:00
committed by GitHub

View File

@@ -270,8 +270,11 @@ func documentMapToInitConfiguration(gvkmap kubeadmapi.DocumentMap, allowDeprecat
continue
}
// If the group is neither a kubeadm core type or of a supported component config group, we dump a warning about it being ignored
if !componentconfigs.Scheme.IsGroupRegistered(gvk.Group) {
fmt.Printf("[config] WARNING: Ignored YAML document with GroupVersionKind %v\n", gvk)
}
}
// Enforce that InitConfiguration and/or ClusterConfiguration has to exist among the YAML documents
if initcfg == nil && clustercfg == nil {