Skip to content

Commit

Permalink
Include validate-psp-install.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvind Iyengar committed Jan 30, 2023
1 parent d0ad7ec commit 9395f6f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#{{- if gt (len (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "")) 0 -}}
#{{- if .Values.global.cattle.psp.enabled }}
#{{- if not (.Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy") }}
#{{- fail "The target cluster does not have the PodSecurityPolicy API resource. Please disable PSPs in this chart before proceeding." -}}
#{{- end }}
#{{- end }}
#{{- end }}

0 comments on commit 9395f6f

Please sign in to comment.