Using rego to enforce storage class #236
Answered
by
erezo9
erezo9
asked this question in
OPA and Rego
-
im trying to put a rego with gatekeeper, for some reason the rego allows the creating to continure although there is no storageclassname provided, what am i doing wrong?
|
Beta Was this translation helpful? Give feedback.
Answered by
erezo9
Jul 12, 2022
Replies: 2 comments 1 reply
-
If provided:= input.review.object.spec.storageClassName will fail -- and Try combining it: not input.review.object.spec.storageClassName |
Beta Was this translation helpful? Give feedback.
1 reply
-
@srenatus answer was
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
erezo9
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@srenatus answer was