Skip to content

Commit

Permalink
[prometheus-blackbox-exporter] fix: only template env if .Values.extr…
Browse files Browse the repository at this point in the history
…aEnv is specified

Signed-off-by: Adrian Berger <[email protected]>
  • Loading branch information
adberger committed Mar 11, 2024
1 parent 2cc20e1 commit 864eda3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-blackbox-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Prometheus Blackbox Exporter
name: prometheus-blackbox-exporter
version: 8.12.0
version: 8.12.1
appVersion: v0.24.0
home: https://github.com/prometheus/blackbox_exporter
sources:
Expand Down
2 changes: 2 additions & 0 deletions charts/prometheus-blackbox-exporter/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,13 @@ containers:
securityContext:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.extraEnv }}
env:
{{- range $key, $value := .Values.extraEnv }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
{{- if .Values.extraEnvFromSecret }}
envFrom:
{{- range .Values.extraEnvFromSecret }}
Expand Down

0 comments on commit 864eda3

Please sign in to comment.