Skip to content

Commit

Permalink
kcgid: gc: maxCount: fix namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
xdavidwu committed May 22, 2024
1 parent 10a5257 commit 1ff558d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cgid/kubernetes/gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func CollectGarbage(log logr.Logger, c client.WithWatch, apiset *kubecgiv1alpha1
go deleteUnlessLastN(
log.WithValues("for", phase, "policy", "maxCount", "maxCount", n),
c, n,
client.InNamespace(apiset.Name),
client.InNamespace(apiset.Namespace),
client.MatchingLabels{managedByKey: manager},
client.MatchingLabels{generationKey: gen},
client.MatchingFields{"status.phase": string(phase)})
Expand Down

0 comments on commit 1ff558d

Please sign in to comment.