diff --git a/charts/prometheus/Chart.yaml b/charts/prometheus/Chart.yaml index 37c5ed74..59b9c50f 100644 --- a/charts/prometheus/Chart.yaml +++ b/charts/prometheus/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: prometheus appVersion: 2.26.0 -version: 14.1.3 +version: 14.2.0 description: Prometheus is a monitoring system and time series database. home: https://prometheus.io/ icon: https://raw.githubusercontent.com/prometheus/prometheus.github.io/master/assets/prometheus_logo-cb55bb5c346.png diff --git a/charts/prometheus/templates/pushgateway/deploy.yaml b/charts/prometheus/templates/pushgateway/deploy.yaml index b9a71ab5..ffdbfcc4 100644 --- a/charts/prometheus/templates/pushgateway/deploy.yaml +++ b/charts/prometheus/templates/pushgateway/deploy.yaml @@ -31,9 +31,9 @@ spec: {{- end }} labels: {{- include "prometheus.pushgateway.labels" . | nindent 8 }} - {{- if .Values.pushgateway.podLabels}} + {{- if .Values.pushgateway.podLabels }} {{ toYaml .Values.pushgateway.podLabels | nindent 8 }} - {{- end}} + {{- end }} spec: serviceAccountName: {{ template "prometheus.serviceAccountName.pushgateway" . }} {{- if .Values.pushgateway.extraInitContainers }} @@ -49,8 +49,13 @@ spec: imagePullPolicy: "{{ .Values.pushgateway.image.pullPolicy }}" args: {{- range $key, $value := .Values.pushgateway.extraArgs }} + {{- $stringvalue := toString $value }} + {{- if eq $stringvalue "true" }} + - --{{ $key }} + {{- else }} - --{{ $key }}={{ $value }} {{- end }} + {{- end }} ports: - containerPort: 9091 livenessProbe: