Skip to content

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

@MariamFahmy98

Description

@MariamFahmy98

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

Metadata

Metadata

Labels

ContribfestGood first issues for KubeCon EU 2024enhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions