diff --git a/charts/logging-operator/templates/psp.yaml b/charts/logging-operator/templates/psp.yaml index 46b2071ef..81b65f2e2 100644 --- a/charts/logging-operator/templates/psp.yaml +++ b/charts/logging-operator/templates/psp.yaml @@ -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: