mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 03:38:15 +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 {
 | 
			
		||||
		// not interested in anything other than JoinConfiguration
 | 
			
		||||
		if gvk.Kind != constants.JoinConfigurationKind {
 | 
			
		||||
			klog.Warningf("[config] WARNING: Ignored configuration document with GroupVersionKind %v\n", gvk)
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -106,6 +106,7 @@ func documentMapToResetConfiguration(gvkmap kubeadmapi.DocumentMap, allowDepreca
 | 
			
		||||
	for gvk, bytes := range gvkmap {
 | 
			
		||||
		// not interested in anything other than ResetConfiguration
 | 
			
		||||
		if gvk.Kind != constants.ResetConfigurationKind {
 | 
			
		||||
			klog.Warningf("[config] WARNING: Ignored configuration document with GroupVersionKind %v\n", gvk)
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user