mirror of https://git.rancher.io/charts
16 lines
676 B
YAML
16 lines
676 B
YAML
#{{- if gt (len (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "")) 0 -}}
|
|
# {{- $found := dict -}}
|
|
# {{- set $found "application.epinio.io/v1/App" false -}}
|
|
# {{- set $found "application.epinio.io/v1/AppChart" false -}}
|
|
# {{- set $found "application.epinio.io/v1/Service" false -}}
|
|
# {{- range .Capabilities.APIVersions -}}
|
|
# {{- if hasKey $found (toString .) -}}
|
|
# {{- set $found (toString .) true -}}
|
|
# {{- end -}}
|
|
# {{- end -}}
|
|
# {{- range $_, $exists := $found -}}
|
|
# {{- if (eq $exists false) -}}
|
|
# {{- required "Required CRDs are missing. Please install the corresponding CRD chart before installing this chart." "" -}}
|
|
# {{- end -}}
|
|
# {{- end -}}
|
|
#{{- end -}} |