--- charts-original/templates/gatekeeper-admin-podsecuritypolicy.yaml +++ charts/templates/gatekeeper-admin-podsecuritypolicy.yaml @@ -1,4 +1,4 @@ -{{- if and .Values.psp.enabled (.Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy") }} +{{- if .Values.global.cattle.psp.enabled }} apiVersion: policy/v1beta1 kind: PodSecurityPolicy metadata: