Use a generic Set instead of a specified Set in kubelet

Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
This commit is contained in:
Kubernetes Prow Robot
2023-11-04 17:19:13 +01:00
committed by bzsuni
parent 5bf1e95541
commit a8d51f4f05
35 changed files with 103 additions and 103 deletions

View File

@@ -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))
}