mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Merge pull request #86917 from rosti/kubeadm-cc-fix-misleading-warning
kubeadm: Fix a false positive in a warning
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user