k8wiz
Kyverno
Medium
Installation

The Kyverno 1.20 Helm chart refuses to upgrade because legacy kyverno.io policies exist. Which value lets the upgrade proceed?

Select your answer:

Show answer and explanation

Answer: upgrade.acknowledgeLegacyPoliciesNotEnforced=true

Explanation

upgrade.acknowledgeLegacyPoliciesNotEnforced=true disables both the render-time lookup check and the pre-upgrade hook Job. It does not keep the legacy policies running. upgrade.legacyPolicyCheck.enabled=false only disables the hook Job, so the render-time check still blocks, and a stale upgrade.allowLegacyPolicies: true from an older values file makes the render fail.

Read more about Kyverno