Use a generic Set instead of a specified Set in kubelet
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
This commit is contained in:
committed by
bzsuni
parent
5bf1e95541
commit
a8d51f4f05
@@ -2230,7 +2230,7 @@ func (kl *Kubelet) SyncTerminatedPod(ctx context.Context, pod *v1.Pod, podStatus
|
||||
func (kl *Kubelet) getPodsToSync() []*v1.Pod {
|
||||
allPods := kl.podManager.GetPods()
|
||||
podUIDs := kl.workQueue.GetWork()
|
||||
podUIDSet := sets.NewString()
|
||||
podUIDSet := sets.New[string]()
|
||||
for _, podUID := range podUIDs {
|
||||
podUIDSet.Insert(string(podUID))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user