Skip to content

Commit

Permalink
feat: add upgrade guidance for dropped api versions (cherry-pick #1429)…
Browse files Browse the repository at this point in the history
… (#1430)

feat: add upgrade guidance for dropped api versions (#1429)

feat: add upgrade guidance for dropped api verions

Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
  • Loading branch information
gcp-cherry-pick-bot[bot] and realshuting authored Nov 6, 2024
1 parent fe3a0b8 commit d5d5b33
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions content/en/docs/installation/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ An upgrade from versions prior to Kyverno 1.10 to versions at 1.10 or higher usi

## Upgrading to Kyverno v1.13

### Breaking Changes

Kyverno version 1.13 contains the following breaking configuration changes:

1. **Removal of wildcard permissions**: prior versions contained wildcard view permissions, which allowed Kyverno controllers to view all resources including secrets and other sensitive information. In 1.13 the wildcard view permission was removed and a role binding to the default `view` role was added. See the documentation section on [Role Based Access Controls](./customization.md#role-based-access-controls) for more details. This change will not impact policies during admission controls but may impact reports, and may impact users with mutate and generate policies on custom resources as the controller may no longer be able to view these custom resources.
Expand Down Expand Up @@ -74,3 +76,18 @@ helm upgrade kyverno kyverno/kyverno -n kyverno --set features.policyExceptions.
```

**NOTE**: limiting exceptions to a specific namespace is recommended.

### Dropped API versions

Kyverno 1.13 drops deprecated API versions for its managed CustomResourceDefinitions. The migration is handled automatically through Helm hook. To upgrade Kyverno without Helm, or Helm hook, you can migrate existing resources via [kube-storage-version-migrator](https://github.com/kubernetes-sigs/kube-storage-version-migrator).

See affected CRDs:
```
- cleanuppolicies.kyverno.io
- clustercleanuppolicies.kyverno.io
- clusterpolicies.kyverno.io
- globalcontextentries.kyverno.io
- policies.kyverno.io
- policyexceptions.kyverno.io
- updaterequests.kyverno.io
```

0 comments on commit d5d5b33

Please sign in to comment.