From 1d07dadf21433aa169b174f0aaa4d766010bcdf1 Mon Sep 17 00:00:00 2001 From: Maxime Fouilleul Date: Fri, 7 Feb 2020 09:17:42 +0100 Subject: [PATCH] [stable/elasticsearch-exporter] Feature flap the flag es.uri (#20589) * Feature flap the flag es.uri to allow fallback to env var ES_URI Signed-off-by: Maxime Fouilleul * Bump chart Signed-off-by: Maxime Fouilleul --- stable/elasticsearch-exporter/Chart.yaml | 2 +- stable/elasticsearch-exporter/templates/deployment.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stable/elasticsearch-exporter/Chart.yaml b/stable/elasticsearch-exporter/Chart.yaml index b165e4229c..84d7fb0f85 100644 --- a/stable/elasticsearch-exporter/Chart.yaml +++ b/stable/elasticsearch-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: Elasticsearch stats exporter for Prometheus name: elasticsearch-exporter -version: 2.2.0 +version: 2.3.0 kubeVersion: ">=1.10.0-0" appVersion: 1.1.0 home: https://github.com/justwatchcom/elasticsearch_exporter diff --git a/stable/elasticsearch-exporter/templates/deployment.yaml b/stable/elasticsearch-exporter/templates/deployment.yaml index 6058518346..bbbf6885cd 100644 --- a/stable/elasticsearch-exporter/templates/deployment.yaml +++ b/stable/elasticsearch-exporter/templates/deployment.yaml @@ -63,7 +63,9 @@ spec: image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: ["elasticsearch_exporter", + {{- if .Values.es.uri }} "--es.uri={{ .Values.es.uri }}", + {{- end }} {{- if .Values.es.all }} "--es.all", {{- end }}