Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Update Kyverno PolicyExceptions to v2 and fallback to v2beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
fhielpos committed Jun 7, 2024
1 parent e41f601 commit 6ad7126
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Update Kyverno PolicyExceptions to v2 and fallback to v2beta1.

## [16.1.1] - 2024-04-02

### Fixed
Expand Down
6 changes: 5 additions & 1 deletion helm/aws-operator/templates/pss-exceptions.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
apiVersion: kyverno.io/v2alpha1
{{ if .Capabilities.APIVersions.Has "kyverno.io/v2/PolicyException" -}}
apiVersion: kyverno.io/v2
{{- else }}
apiVersion: kyverno.io/v2beta1
{{- end }}
kind: PolicyException
metadata:
name: {{ include "resource.default.name" . }}-exceptions
Expand Down

0 comments on commit 6ad7126

Please sign in to comment.