mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #25710 from xiangpengzhao/fix_predicate
Automatic merge from submit-queue No need to log empty string in predicates.go If `pvcName` is empty, we don't need to log it.
This commit is contained in:
		@@ -156,7 +156,7 @@ func (c *MaxPDVolumeCountChecker) filterVolumes(volumes []api.Volume, namespace
 | 
			
		||||
		} else if vol.PersistentVolumeClaim != nil {
 | 
			
		||||
			pvcName := vol.PersistentVolumeClaim.ClaimName
 | 
			
		||||
			if pvcName == "" {
 | 
			
		||||
				return fmt.Errorf("PersistentVolumeClaim had no name: %q", pvcName)
 | 
			
		||||
				return fmt.Errorf("PersistentVolumeClaim had no name")
 | 
			
		||||
			}
 | 
			
		||||
			pvc, err := c.pvcInfo.GetPersistentVolumeClaimInfo(namespace, pvcName)
 | 
			
		||||
			if err != nil {
 | 
			
		||||
@@ -322,7 +322,7 @@ func (c *VolumeZoneChecker) predicate(pod *api.Pod, nodeInfo *schedulercache.Nod
 | 
			
		||||
		if volume.PersistentVolumeClaim != nil {
 | 
			
		||||
			pvcName := volume.PersistentVolumeClaim.ClaimName
 | 
			
		||||
			if pvcName == "" {
 | 
			
		||||
				return false, fmt.Errorf("PersistentVolumeClaim had no name: %q", pvcName)
 | 
			
		||||
				return false, fmt.Errorf("PersistentVolumeClaim had no name")
 | 
			
		||||
			}
 | 
			
		||||
			pvc, err := c.pvcInfo.GetPersistentVolumeClaimInfo(namespace, pvcName)
 | 
			
		||||
			if err != nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user