rancher-charts/charts/epinio/103.0.2+up1.10.0/templates/validate-cert-manager-crd.yaml

19 lines
865 B
YAML

#{{- if gt (len (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "")) 0 -}}
# {{- $found := dict -}}
# {{- set $found "acme.cert-manager.io/v1/Challenge" false -}}
# {{- set $found "acme.cert-manager.io/v1/Order" false -}}
# {{- set $found "cert-manager.io/v1/CertificateRequest" false -}}
# {{- set $found "cert-manager.io/v1/Certificate" false -}}
# {{- set $found "cert-manager.io/v1/ClusterIssuer" false -}}
# {{- set $found "cert-manager.io/v1/Issuer" 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 -}}