[rancher-pushprox] Include validate-install-crd.yaml

pull/2375/head
Arvind Iyengar 2023-01-27 16:32:03 -08:00
parent ea503a320d
commit 29a3da4b0c
No known key found for this signature in database
GPG Key ID: A8DD9BFD6C811498
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
#{{- if gt (len (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "")) 0 -}}
# {{- $found := dict -}}
# {{- set $found "monitoring.coreos.com/v1/ServiceMonitor" 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 Prometheus Operator CRDs before installing this chart." "" -}}
# {{- end -}}
# {{- end -}}
#{{- end -}}