[Feature] Update the existing policies to use the new fields
Problem Statement
Starting from Kyverno 1.13, the following fields are deprecated:
- spec.validationFailureAction
- spec.validationFailureActionOverrides
- spec.generateExisting
- spec.mutateExisting
The following fields should be used instead:
- validate.failureAction (under the validate rule)
- validate.failureActionOverrides (under the validate rule)
- verifyImage[*].failureAction (under the verifyImage rule)
- generate.generateExisting (under the generate rule)
- mutate.mutateExisting (under the mutate rule)
Solution Description
Use the following fields under their corresponding rules:
- failureAction
- failureActionOverrides
- generateExisting
- mutateExisting
Example "Good" Resource
No response
Example "Bad" Resource
No response
Other Comments
No response
Slack discussion
No response
Troubleshooting
-
I have read and followed the documentation AND the troubleshooting guide. -
I have verified the policy does not exist in the samples library.