From 7fc8d5064386154d92d4c8db9ba2a9038bf26cbe Mon Sep 17 00:00:00 2001 From: Jan Fiedler Date: Tue, 11 Jun 2019 13:47:00 +0200 Subject: [PATCH] [stable/prometheus-consul-exporter] 14589: Bugfix to support boolean flags in prometheus-consul-exporter * bumped version number Signed-off-by: Jan Fiedler --- stable/prometheus-consul-exporter/Chart.yaml | 2 +- stable/prometheus-consul-exporter/templates/deployment.yaml | 6 ++---- stable/prometheus-consul-exporter/values.yaml | 2 ++ 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stable/prometheus-consul-exporter/Chart.yaml b/stable/prometheus-consul-exporter/Chart.yaml index 6b2229b45e8f..c6ddd7d5cd3f 100644 --- a/stable/prometheus-consul-exporter/Chart.yaml +++ b/stable/prometheus-consul-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "0.4.0" description: A Helm chart for the Prometheus Consul Exporter name: prometheus-consul-exporter -version: 0.1.3 +version: 0.1.4 keywords: - metrics - consul diff --git a/stable/prometheus-consul-exporter/templates/deployment.yaml b/stable/prometheus-consul-exporter/templates/deployment.yaml index 2e31cc5c7d65..122d7aec5f1f 100644 --- a/stable/prometheus-consul-exporter/templates/deployment.yaml +++ b/stable/prometheus-consul-exporter/templates/deployment.yaml @@ -27,10 +27,8 @@ spec: command: ["consul_exporter"] args: [ "--consul.server={{ .Values.consulServer }}", - {{- range $option := .Values.options }} - {{- range $k, $v := . }} - "--{{ $k }}={{ $v }}", - {{- end }} + {{- range $key, $value := .Values.options }} + "--{{ $key }}{{ if $value }}={{ $value }}{{ end }}", {{- end }} ] ports: diff --git a/stable/prometheus-consul-exporter/values.yaml b/stable/prometheus-consul-exporter/values.yaml index e4e87ac85c42..0a8939f5caab 100644 --- a/stable/prometheus-consul-exporter/values.yaml +++ b/stable/prometheus-consul-exporter/values.yaml @@ -29,6 +29,8 @@ consulServer: host:port # Flags - for a list visit https://github.com/prometheus/consul_exporter#flags options: {} + # no-consul.health-summary: + # kv.filter=foobar service: type: ClusterIP