Skip to content

Commit

Permalink
Update kyverno policy exception
Browse files Browse the repository at this point in the history
  • Loading branch information
stone-z authored Feb 7, 2025
1 parent ba334ce commit 913b04b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions helm/chart-operator/templates/policy-exceptions.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{{- if .Values.kyvernoPolicyExceptions.enabled }}
{{- if .Capabilities.APIVersions.Has "kyverno.io/v2beta1/PolicyException" -}}
{{- if .Capabilities.APIVersions.Has "kyverno.io/v2/PolicyException" -}}
apiVersion: kyverno.io/v2
{{- else }}
apiVersion: kyverno.io/v2beta1
{{- end }}
kind: PolicyException
metadata:
name: {{ tpl .Values.resource.default.name . }}-policy-exceptions
Expand Down

0 comments on commit 913b04b

Please sign in to comment.