Update cmd/k8s-operator/operator.go

Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
Signed-off-by: Tom Meadows <tom@tmlabs.co.uk>
This commit is contained in:
Tom Meadows 2025-06-26 12:28:33 +01:00 committed by GitHub
parent b2b8524414
commit 03a61f7f7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -813,7 +813,7 @@ func proxyClassHandlerForSvc(cl client.Client, logger *zap.SugaredLogger) handle
} }
reqs := make([]reconcile.Request, 0) reqs := make([]reconcile.Request, 0)
seenSvcs := make(set.Set[string], len(svcList.Items)) seenSvcs := make(set.Set[string])
for _, svc := range svcList.Items { for _, svc := range svcList.Items {
reqs = append(reqs, reconcile.Request{NamespacedName: client.ObjectKeyFromObject(&svc)}) reqs = append(reqs, reconcile.Request{NamespacedName: client.ObjectKeyFromObject(&svc)})
seenSvcs.Add(fmt.Sprintf("%s/%s", svc.Namespace, svc.Name)) seenSvcs.Add(fmt.Sprintf("%s/%s", svc.Namespace, svc.Name))