github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/rancher-backup/templates/validate-install-crd.yaml (about) 1 #{{- if gt (len (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "")) 0 -}} 2 # {{- $found := dict -}} 3 # {{- set $found "resources.cattle.io/v1/Backup" false -}} 4 # {{- set $found "resources.cattle.io/v1/ResourceSet" false -}} 5 # {{- set $found "resources.cattle.io/v1/Restore" false -}} 6 # {{- range .Capabilities.APIVersions -}} 7 # {{- if hasKey $found (toString .) -}} 8 # {{- set $found (toString .) true -}} 9 # {{- end -}} 10 # {{- end -}} 11 # {{- range $_, $exists := $found -}} 12 # {{- if (eq $exists false) -}} 13 # {{- required "Required CRDs are missing. Please install the corresponding CRD chart before installing this chart." "" -}} 14 # {{- end -}} 15 # {{- end -}} 16 #{{- end -}}