Constraint Kinds Matcher Question #74
-
On the Gatekeeper Constraints docs it is mentioned that:
From this I take it that if you wanted to have a required label constraint apply to Pod and Namespace resources, you would have something like the following in your constraint:
However, I'm curious if you could instead do the following:
Are these two constraints functionally the same? Or is one of them improper syntax/usage? Assuming they are functionally the same, I'm trying to understand why you would use one over the other, unless the From what I can tell in my testing with gator CLI, the following two constraints have the same effect: Constraint 1
Constraint 2
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Functionally the same :) The reason for having multiple ways of expressing things is that it's possible for one approach to be more efficient than the other in some circumstances. |
Beta Was this translation helpful? Give feedback.
Functionally the same :)
The reason for having multiple ways of expressing things is that it's possible for one approach to be more efficient than the other in some circumstances.