-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Make Kubernetes resources exclusion configurable #2749
Conversation
c365852
to
ba2e912
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment about the flag description, otherwise LGTM
ba2e912
to
05a8351
Compare
@2opremio please take a look again, the filtering happens at group level first (to avoid API calls errors when fetching the resources) and a 2nd time for the Kind matching. Also if you have a better description for the flag please write it here. PS. I've also excluded the Event kind as the events could fill Flux memory. |
05a8351
to
09dfe4e
Compare
Ah, sorry, I had missed that (I was checking the PR on the phone) |
How about
|
09dfe4e
to
827b2bd
Compare
827b2bd
to
c405035
Compare
This PR adds the
--k8s-exclude-resource
to fluxd command args to make the Kubernetes resources exclusion configurable.By default the
*metrics.k8s.io/*
,webhook.certmanager.k8s.io/*
andv1/Event
resources are excluded.Also objects with owner references are excluded from Flux discovery to avoid conflicts between Flux GC and Kubernetes GC.
Fix: #2554
Fix: #2642