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

Commit

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

cf. helm/helm#3308

Signed-off-by: Yong Wen Chua <lawliet89@users.noreply.github.com>
  • Loading branch information
lawliet89 committed May 14, 2020
1 parent b71c8c6 commit 0dfb119
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 0dfb119

Please sign in to comment.