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

Match everything in a constraint #397

Closed
asierraq opened this issue Sep 8, 2023 · 2 comments
Closed

Match everything in a constraint #397

asierraq opened this issue Sep 8, 2023 · 2 comments

Comments

@asierraq
Copy link

asierraq commented Sep 8, 2023

Is there a configuration for spec.match.kinds in a constraint to match everything?

I've tried using a bunch of combinations, like this a one:

...
spec:
  match:
    kinds:
      - apiGroups: ["*"]
        kinds: ["*"]
...

And none of them work. Is this even possible in OPA Gatekeeper?

@apeabody
Copy link
Contributor

apeabody commented Sep 8, 2023

Hi @asierraq - If you want to match all apiGroups and kinds, I believe you can just omit match.kinds entirely.

@asierraq
Copy link
Author

yes, I could get it working by not passing any kinds. Thank you @apeabody

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants