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

@@ -73,8 +73,8 @@ func newSecretStore(fakeClient clientset.Interface, clock clock.Clock, getTTL Ge
}
}
func getSecretNames(pod *v1.Pod) sets.String {
result := sets.NewString()
func getSecretNames(pod *v1.Pod) sets.Set[string] {
result := sets.New[string]()
podutil.VisitPodSecretNames(pod, func(name string) bool {
result.Insert(name)
return true