From c104c5eeff6ee2e82a116a47ed285c08fb7adfb7 Mon Sep 17 00:00:00 2001 From: Erik Godding Boye Date: Thu, 23 May 2024 16:36:40 +0200 Subject: [PATCH] build: add type constraint to avoid warning in IDEA (#966) --- internal/controller/stas/workload_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/stas/workload_controller.go b/internal/controller/stas/workload_controller.go index 5e5c5406..d097b948 100644 --- a/internal/controller/stas/workload_controller.go +++ b/internal/controller/stas/workload_controller.go @@ -62,7 +62,7 @@ func (r *PodReconciler) SetupWithManager(mgr ctrl.Manager) error { } predicates := []predicate.Predicate{ - predicate.Not(managedByImageScanner), + predicate.Not[client.Object](managedByImageScanner), } if r.ScanNamespaceExcludeRegexp != nil { predicates = append(predicates, predicate.Not(namespaceMatchRegexp(r.ScanNamespaceExcludeRegexp)))