mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #101277 from wangyx1992/capatial-log-scheduler
cleanup: fix log capitalization in scheduler
This commit is contained in:
		@@ -172,7 +172,7 @@ func newNonCSILimits(
 | 
			
		||||
		filter = cinderVolumeFilter
 | 
			
		||||
		volumeLimitKey = v1.ResourceName(volumeutil.CinderVolumeLimitKey)
 | 
			
		||||
	default:
 | 
			
		||||
		klog.ErrorS(errors.New("Wrong filterName"), "Cannot create nonCSILimits plugin", "candidates", fmt.Sprintf("%v %v %v %v", ebsVolumeFilterType, gcePDVolumeFilterType, azureDiskVolumeFilterType, cinderVolumeFilterType))
 | 
			
		||||
		klog.ErrorS(errors.New("wrong filterName"), "Cannot create nonCSILimits plugin", "candidates", fmt.Sprintf("%v %v %v %v", ebsVolumeFilterType, gcePDVolumeFilterType, azureDiskVolumeFilterType, cinderVolumeFilterType))
 | 
			
		||||
		return nil
 | 
			
		||||
	}
 | 
			
		||||
	pl := &nonCSILimits{
 | 
			
		||||
 
 | 
			
		||||
@@ -880,7 +880,7 @@ func (n *NodeInfo) FilterOutPods(pods []*v1.Pod) []*v1.Pod {
 | 
			
		||||
func GetPodKey(pod *v1.Pod) (string, error) {
 | 
			
		||||
	uid := string(pod.UID)
 | 
			
		||||
	if len(uid) == 0 {
 | 
			
		||||
		return "", errors.New("Cannot get cache key for pod with empty UID")
 | 
			
		||||
		return "", errors.New("cannot get cache key for pod with empty UID")
 | 
			
		||||
	}
 | 
			
		||||
	return uid, nil
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user