| Giorgi Lekveishvili | 725bb39 | 2023-05-05 18:24:27 +0400 | [diff] [blame] | 1 | #{{- 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 }} | ||||