blob: 0df98e3657cd14d98d454acce7fffd6b10da0a7e [file] [log] [blame]
Giorgi Lekveishvili725bb392023-05-05 18:24:27 +04001#{{- if gt (len (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "")) 0 -}}
2#{{- if .Values.enablePSP }}
3#{{- if not (.Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy") }}
4#{{- fail "The target cluster does not have the PodSecurityPolicy API resource. Please disable PSPs in this chart before proceeding." -}}
5#{{- end }}
6#{{- end }}
7#{{- end }}