Skip to content

Commit 6ae24ab

Browse files
authored
fix: skipping non watchable resources (#460)
Signed-off-by: Dario Tranchitella <[email protected]>
1 parent 2f09c19 commit 6ae24ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controllers/watchdog/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func API(config *rest.Config) ([]utils.ProxyGroupVersionKind, error) {
3636
}
3737

3838
for _, i := range ar.APIResources {
39-
if !sets.New[string]([]string(i.Verbs)...).Has("get") {
39+
if !sets.New[string]([]string(i.Verbs)...).HasAll("get", "list", "watch") {
4040
continue
4141
}
4242

0 commit comments

Comments
 (0)