| Giorgi Lekveishvili | 193b7c0 | 2025-05-22 16:21:37 +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 }} | ||||