mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
Add warning logs for uninteresting kind
This commit is contained in:
@@ -102,6 +102,7 @@ func documentMapToJoinConfiguration(gvkmap kubeadmapi.DocumentMap, allowDeprecat
|
|||||||
for gvk, bytes := range gvkmap {
|
for gvk, bytes := range gvkmap {
|
||||||
// not interested in anything other than JoinConfiguration
|
// not interested in anything other than JoinConfiguration
|
||||||
if gvk.Kind != constants.JoinConfigurationKind {
|
if gvk.Kind != constants.JoinConfigurationKind {
|
||||||
|
klog.Warningf("[config] WARNING: Ignored configuration document with GroupVersionKind %v\n", gvk)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -106,6 +106,7 @@ func documentMapToResetConfiguration(gvkmap kubeadmapi.DocumentMap, allowDepreca
|
|||||||
for gvk, bytes := range gvkmap {
|
for gvk, bytes := range gvkmap {
|
||||||
// not interested in anything other than ResetConfiguration
|
// not interested in anything other than ResetConfiguration
|
||||||
if gvk.Kind != constants.ResetConfigurationKind {
|
if gvk.Kind != constants.ResetConfigurationKind {
|
||||||
|
klog.Warningf("[config] WARNING: Ignored configuration document with GroupVersionKind %v\n", gvk)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user