Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude resources by name #2930

Open
dannycheung-rokt opened this issue Aug 5, 2023 · 5 comments
Open

Exclude resources by name #2930

dannycheung-rokt opened this issue Aug 5, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@dannycheung-rokt
Copy link

Describe the solution you'd like

When matching by namespace, we can exclude certain namespaces via the excludeNamespaces matcher.

There is no equivalent for excluding by name. e.g. excludeNames

This would be helpful for policies that match against cluster scoped resources.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Gatekeeper version:
  • Kubernetes version: (use kubectl version):
@dannycheung-rokt dannycheung-rokt added the enhancement New feature or request label Aug 5, 2023
@stale
Copy link

stale bot commented Oct 4, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 4, 2023
@stale stale bot closed this as completed Oct 19, 2023
@Ga13Ou
Copy link

Ga13Ou commented Nov 20, 2023

This is a useful feature.

@ritazh ritazh reopened this Nov 20, 2023
@stale stale bot removed the stale label Nov 20, 2023
Copy link

stale bot commented Jan 20, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 20, 2024
@stale stale bot closed this as completed Feb 3, 2024
@siddhurk07
Copy link

This would be a useful feature. Has this been implemented?

@ritazh
Copy link
Member

ritazh commented Jan 13, 2025

Reopened in case more people want this feature and if any volunteers wants to help drive the design.

There is also labelSelectors that can be used. https://open-policy-agent.github.io/gatekeeper/website/docs/howto#the-match-field

@ritazh ritazh reopened this Jan 13, 2025
@stale stale bot closed this as completed Jan 27, 2025
@ritazh ritazh reopened this Jan 28, 2025
@ritazh ritazh removed the stale label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants