Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
14589: Bugfix to support boolean flags in prometheus-consul-exporter
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Fiedler <[email protected]>
  • Loading branch information
jfiedler committed Jun 11, 2019
1 parent 5ccaad3 commit 899d8c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 2 additions & 4 deletions stable/prometheus-consul-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion stable/prometheus-consul-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ 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
port: 9107
Expand Down

0 comments on commit 899d8c8

Please sign in to comment.