mirror of https://git.rancher.io/charts
19 lines
842 B
YAML
19 lines
842 B
YAML
#{{- if gt (len (lookup "rbac.authorization.k8s.io/v1" "ClusterRole" "" "")) 0 -}}
|
|
# {{- $found := dict -}}
|
|
# {{- set $found "logging.banzaicloud.io/v1beta1/ClusterFlow" false -}}
|
|
# {{- set $found "logging.banzaicloud.io/v1beta1/ClusterOutput" false -}}
|
|
# {{- set $found "logging.banzaicloud.io/v1beta1/Flow" false -}}
|
|
# {{- set $found "logging.banzaicloud.io/v1beta1/Logging" false -}}
|
|
# {{- set $found "logging.banzaicloud.io/v1beta1/Output" 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 rancher-logging-crd chart before installing this chart." "" -}}
|
|
# {{- end -}}
|
|
# {{- end -}}
|
|
#{{- end -}}
|