Skip to content

Commit 3212ae4

Browse files
committed
addresss pr comment
1 parent f821821 commit 3212ae4

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

charts/memgraph-high-availability/templates/vmagent.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{{- if $.Values.vmagentRemote.enabled }}
2+
{{- if not $.Values.prometheus.enabled }}
3+
{{- fail "vmagentRemote.enabled requires prometheus.enabled=true because vmagentRemote scrapes mg-exporter" }}
4+
{{- end }}
25
{{- $namespace := $.Values.vmagentRemote.namespace | default $.Values.prometheus.namespace }}
36
{{- $exporterNamespace := $.Values.prometheus.namespace }}
47
{{- if and $.Values.vmagentRemote.remoteWrite.basicAuth.secretName (not $.Values.vmagentRemote.remoteWrite.basicAuth.usernameKey) }}

charts/memgraph/templates/vmagent.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{{- if .Values.vmagentRemote.enabled }}
2+
{{- if not .Values.prometheus.enabled }}
3+
{{- fail "vmagentRemote.enabled requires prometheus.enabled=true because vmagentRemote scrapes mg-exporter" }}
4+
{{- end }}
25
{{- $namespace := .Values.vmagentRemote.namespace | default .Values.prometheus.namespace }}
36
{{- $exporterNamespace := .Values.prometheus.namespace }}
47
{{- if and .Values.vmagentRemote.remoteWrite.basicAuth.secretName (not .Values.vmagentRemote.remoteWrite.basicAuth.usernameKey) }}

0 commit comments

Comments
 (0)