Skip to content

Commit

Permalink
[stable/prometheus] Fix incorrect rendering of enableServiceLinks (he…
Browse files Browse the repository at this point in the history
…lm#22391)

cf. helm/helm#3308

Signed-off-by: Yong Wen Chua <lawliet89@users.noreply.github.com>
  • Loading branch information
lawliet89 authored and includerandom committed Jul 19, 2020
1 parent 3f1b8e1 commit 0f278de
Show file tree
Hide file tree
Showing 2 changed files with 6 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,6 +1,6 @@
apiVersion: v1
name: prometheus
version: 11.2.2
version: 11.2.3
appVersion: 2.18.1
description: Prometheus is a monitoring system and time series database.
home: https://prometheus.io/
Expand Down
6 changes: 5 additions & 1 deletion stable/prometheus/templates/server-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ spec:
{{- if .Values.server.schedulerName }}
schedulerName: "{{ .Values.server.schedulerName }}"
{{- end }}
enableServiceLinks: {{ .Values.server.enableServiceLinks | default "true" }}
{{- if or (.Values.server.enableServiceLinks) (eq (.Values.server.enableServiceLinks | toString) "<nil>") }}
enableServiceLinks: true
{{- else }}
enableServiceLinks: false
{{- end }}
serviceAccountName: {{ template "prometheus.serviceAccountName.server" . }}
containers:
{{- if .Values.configmapReload.prometheus.enabled }}
Expand Down

0 comments on commit 0f278de

Please sign in to comment.