Skip to content

Commit

Permalink
fix: only install PodSecurityPolicy if the API is available
Browse files Browse the repository at this point in the history
  • Loading branch information
smlx authored and ahma committed Nov 25, 2022
1 parent 4329dab commit 71c96ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/logging-operator/templates/psp.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if and .Values.rbac.enabled .Values.rbac.psp.enabled }}
{{ if and .Values.rbac.enabled .Values.rbac.psp.enabled (.Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy") }}
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
Expand Down

0 comments on commit 71c96ae

Please sign in to comment.