forked from RemoteSync/grafana-meta-monitoring-chart
Use 1 secret with all values
Signed-off-by: Michel Hollands <michel.hollands@gmail.com>
This commit is contained in:
@@ -3,20 +3,20 @@
|
||||
{{- end -}}
|
||||
|
||||
{{- if eq .Values.cloud.logs.enabled true -}}
|
||||
{{- if or (empty .Values.cloud.logs.secret) (empty .Values.cloud.logs.endpointConfigmap) -}}
|
||||
{{- fail "if cloud.logs is enabled then the secret and endpoint config map have to be filled in" -}}
|
||||
{{- if empty .Values.cloud.logs.secret -}}
|
||||
{{- fail "if cloud.logs is enabled then the secret has to be filled in" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if eq .Values.cloud.metrics.enabled true -}}
|
||||
{{- if or (empty .Values.cloud.metrics.secret) (empty .Values.cloud.logs.endpointConfigmap) -}}
|
||||
{{- fail "if cloud.metrics is enabled then the secret and endpoint config map have to be filled in" -}}
|
||||
{{- if empty .Values.cloud.metrics.secret -}}
|
||||
{{- fail "if cloud.metrics is enabled then the secret has to be filled in" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if eq .Values.cloud.traces.enabled true -}}
|
||||
{{- if or (empty .Values.cloud.traces.secret) (empty .Values.cloud.logs.endpointConfigmap) -}}
|
||||
{{- fail "if cloud.traces is enabled then the secret and endpoint config map have to be filled in" -}}
|
||||
{{- if empty .Values.cloud.traces.secret -}}
|
||||
{{- fail "if cloud.traces is enabled then the secret has to be filled in" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
Reference in New Issue
Block a user