Instruct Gatekeeper to bypass policy only if it finds selector deployment-x in namespace-x #118
Unanswered
laimison
asked this question in
Gatekeeper
Replies: 1 comment 5 replies
-
The inverse of this is "apply this policy only to resources in namespace x with label value deployment-x", which can be expressed simply via the syntax. Essential match is a set of criteria and-ed together ( |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Is it currently possible to exclude policy by selector and limit this to a namespace in Gatekeeper configuration?
An example: if I want deployment to be excluded from policy, I should create
Deployment
in namespace-x and also should add deployment-x selector.Usually people exclude by namespace or possibly in less secure way by selectors (still useful).
Wouldn't be great idea to to merge them both? And why? Any technical limitation how selectors are designed?
If using basic exclusions, it looks like this, but then deployment-x label is excluded in all namespaces:
Thanks
Beta Was this translation helpful? Give feedback.
All reactions