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 (#10204)
Browse files Browse the repository at this point in the history
This fix prometheus.yml output display when using `kubectl get configmap prometheus-server`

Signed-off-by: Sylvain Rabot <[email protected]>
  • Loading branch information
sylr authored and k8s-ci-robot committed Jan 2, 2019
1 parent 6e556e5 commit ef3ba97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stable/prometheus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: prometheus
version: 8.3.0
version: 8.3.1
appVersion: 2.6.0
description: Prometheus is a monitoring system and time series database.
home: https://prometheus.io/
Expand Down
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 ef3ba97

Please sign in to comment.