mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	fix log message to include ds name
and lower log level
This commit is contained in:
		@@ -708,10 +708,10 @@ func (dsc *DaemonSetsController) nodeShouldRunDaemonPod(node *api.Node, ds *exte
 | 
			
		||||
	nodeInfo.SetNode(node)
 | 
			
		||||
	fit, reasons, err := predicates.GeneralPredicates(newPod, nil, nodeInfo)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		glog.Warningf("GeneralPredicates failed on pod %s due to unexpected error: %v", newPod.Name, err)
 | 
			
		||||
		glog.Warningf("GeneralPredicates failed on ds '%s/%s' due to unexpected error: %v", ds.ObjectMeta.Namespace, ds.ObjectMeta.Name, err)
 | 
			
		||||
	}
 | 
			
		||||
	for _, r := range reasons {
 | 
			
		||||
		glog.V(2).Infof("GeneralPredicates failed on pod %s for reason: %v", newPod.Name, r.GetReason())
 | 
			
		||||
		glog.V(4).Infof("GeneralPredicates failed on ds '%s/%s' for reason: %v", ds.ObjectMeta.Namespace, ds.ObjectMeta.Name, r.GetReason())
 | 
			
		||||
	}
 | 
			
		||||
	return fit
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user