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

Commit

Permalink
Trim global section to avoid empty line to be indented
Browse files Browse the repository at this point in the history
This fix prometheus.yml output display when using `kubectl get configmap prometheus-server`
  • Loading branch information
sylr authored Dec 21, 2018
1 parent c1a851a commit 23ec072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stable/prometheus/templates/server-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data:
{{ $key }}: |
{{- if eq $key "prometheus.yml" }}
global:
{{ $root.Values.server.global | toYaml | indent 6 }}
{{ $root.Values.server.global | toYaml | trimSuffix "\n" | indent 6 }}
{{- end }}
{{ toYaml $value | default "{}" | indent 4 }}
{{- if eq $key "prometheus.yml" -}}
Expand Down

0 comments on commit 23ec072

Please sign in to comment.