You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe the problem that you are trying to solve
Add command line flags to include / exclude a list of namespaces to watch and create Athenz Domain objects for.
Describe the solution you'd like
The Athenz Syncer should take in two new arguments, ns-include-list and ns-exclude-list, in order to include or exclude namespaces which it creates Athenz domain objects for. These two arguments should not coexist. If ns-include-list is set, then ns-exclude-list should not be set and vice versa.
If ns-include-list is set, we need to filter the namespaces we’re processing to only the ones specified by the parameter.
If ns-exclude-list is set, we need to exclude this set of namespaces when we’re processing any namespace updates.
This check for either parameter needs to be done in multiple places which are listed below.
The namespace watch event handler when a namespace is either added, updated, or deleted.
During full resync cron which does a full namespace list in order to sync all domains.
When we are validating if the domain is a namespace in the controller.
When we are validating a domain in the cron. Note - this should handle trust domains correctly. If the domain being processed is not a trust domain then we need to check against these command line flags.
Additional context
The Athenz Syncer currently syncs all namespaces in the entire kubernetes cluster and does not provide any way to filter this list. These two additional parameters will allow us to only sync the necessary Athenz domains to limit the amount of custom resources created on the cluster.
The text was updated successfully, but these errors were encountered:
Please describe the problem that you are trying to solve
Add command line flags to include / exclude a list of namespaces to watch and create Athenz Domain objects for.
Describe the solution you'd like
The Athenz Syncer should take in two new arguments,
ns-include-list
andns-exclude-list
, in order to include or exclude namespaces which it creates Athenz domain objects for. These two arguments should not coexist. Ifns-include-list
is set, thenns-exclude-list
should not be set and vice versa.If
ns-include-list
is set, we need to filter the namespaces we’re processing to only the ones specified by the parameter.If
ns-exclude-list
is set, we need to exclude this set of namespaces when we’re processing any namespace updates.This check for either parameter needs to be done in multiple places which are listed below.
Additional context
The Athenz Syncer currently syncs all namespaces in the entire kubernetes cluster and does not provide any way to filter this list. These two additional parameters will allow us to only sync the necessary Athenz domains to limit the amount of custom resources created on the cluster.
The text was updated successfully, but these errors were encountered: