Preconditions vs operations #857
-
Kyverno Version1.10.x Kubernetes Version1.25.x Kubernetes PlatformOther (specify in description) DescriptionHi,
Validation:
Steps to reproduce
Expected behaviorIt could, maybe should, be easier way to read the difference on the website ScreenshotsNo response Kyverno logsNo response Slack discussionNo response Troubleshooting
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is a question and not a bug. The policy will behave the same way regardless of where the expression is placed. The only difference being how it is reported upon (if you care about reports). A failed expression in a precondition will result in a |
Beta Was this translation helpful? Give feedback.
This is a question and not a bug. The policy will behave the same way regardless of where the expression is placed. The only difference being how it is reported upon (if you care about reports). A failed expression in a precondition will result in a
skip
whereas the same expression in adeny.conditions
block will result in afail
.