mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
15 lines
512 B
YAML
15 lines
512 B
YAML
|
#{{- if gt (len (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "")) 0 -}}
|
||
|
# {{- \$found := dict -}}
|
||
|
${set_found_crd}
|
||
|
# {{- 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 ${name}-crd chart before installing this chart." "" -}}
|
||
|
# {{- end -}}
|
||
|
# {{- end -}}
|
||
|
#{{- end -}}
|