OPA Gatekeeper: match everything

77 Views Asked by At

In OPA Gatekeeper, 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?

1

There are 1 best solutions below

0
kahirokunn On BEST ANSWER

This worked well:

spec:
  match: {}