Opa constraints (enforce Lifecycle lable to compare with project I'd ) #234
rakesh0022
started this conversation in
Community
Replies: 1 comment 15 replies
-
The code snippet looks like you're nesting rules, which is not allowed.
That could be done by something like label in {"dev", "qa", "cert-cde" } # etc which is only available if you also import |
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to write a policy to check if lifecycle label is any of the value of {dev, qa ,cert-cde, prod-cde,svcs,cert-ncde,prod-ncde}
i have attached the snippet of the code, i am using
The logic is working when I entered lifecycle label as prod or dev apart for other lifecycle labels value the conditions is not getting executed. can any one will able to assist?
Beta Was this translation helpful? Give feedback.
All reactions