Add check to if anything is enabled

Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
This commit is contained in:
Michel Hollands 2023-07-06 14:08:15 +01:00
parent 67b13388a7
commit 116586e383

View File

@ -19,3 +19,17 @@
{{- fail "if cloud.traces is enabled then the endpoint, username and password have to be filled in" -}} {{- fail "if cloud.traces is enabled then the endpoint, username and password have to be filled in" -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
{{- if eq .Values.cloud.traces.enabled false -}}
{{- if eq .Values.cloud.metrics.enabled false -}}
{{- if eq .Values.cloud.logs.enabled false -}}
{{- if eq .Values.local.traces.enabled false -}}
{{- if eq .Values.local.metrics.enabled false -}}
{{- if eq .Values.local.logs.enabled false -}}
{{- fail "nothing has been enabled" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- end -}}