[Feature] Update the existing policies to use the new fields

Problem Statement

Starting from Kyverno 1.13, the following fields are deprecated:

  1. spec.validationFailureAction
  2. spec.validationFailureActionOverrides
  3. spec.generateExisting
  4. spec.mutateExisting

The following fields should be used instead:

  1. validate.failureAction (under the validate rule)
  2. validate.failureActionOverrides (under the validate rule)
  3. verifyImage[*].failureAction (under the verifyImage rule)
  4. generate.generateExisting (under the generate rule)
  5. mutate.mutateExisting (under the mutate rule)

Solution Description

Use the following fields under their corresponding rules:

  1. failureAction
  2. failureActionOverrides
  3. generateExisting
  4. mutateExisting

Example "Good" Resource

No response

Example "Bad" Resource

No response

Other Comments

No response

Slack discussion

No response

Troubleshooting