mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Merge pull request #113129 from chaunceyjiang/pr_remove_redundant_conversion
Remove redundant type conversion
This commit is contained in:
		@@ -143,9 +143,9 @@ func (gcc *PodGCController) gcTerminating(ctx context.Context, pods []*v1.Pod) {
 | 
				
			|||||||
	terminatingPods := []*v1.Pod{}
 | 
						terminatingPods := []*v1.Pod{}
 | 
				
			||||||
	for _, pod := range pods {
 | 
						for _, pod := range pods {
 | 
				
			||||||
		if isPodTerminating(pod) {
 | 
							if isPodTerminating(pod) {
 | 
				
			||||||
			node, err := gcc.nodeLister.Get(string(pod.Spec.NodeName))
 | 
								node, err := gcc.nodeLister.Get(pod.Spec.NodeName)
 | 
				
			||||||
			if err != nil {
 | 
								if err != nil {
 | 
				
			||||||
				klog.Errorf("failed to get node %s : %s", string(pod.Spec.NodeName), err)
 | 
									klog.Errorf("failed to get node %s : %s", pod.Spec.NodeName, err)
 | 
				
			||||||
				continue
 | 
									continue
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			// Add this pod to terminatingPods list only if the following conditions are met:
 | 
								// Add this pod to terminatingPods list only if the following conditions are met:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -523,7 +523,7 @@ func (m *manager) updateContainerCPUSet(containerID string, cpus cpuset.CPUSet)
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (m *manager) GetExclusiveCPUs(podUID, containerName string) cpuset.CPUSet {
 | 
					func (m *manager) GetExclusiveCPUs(podUID, containerName string) cpuset.CPUSet {
 | 
				
			||||||
	if result, ok := m.state.GetCPUSet(string(podUID), containerName); ok {
 | 
						if result, ok := m.state.GetCPUSet(podUID, containerName); ok {
 | 
				
			||||||
		return result
 | 
							return result
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user