Skip to content

Commit 675fc8f

Browse files
authored
[kube-prometheus-stack] Add tpl support for additional secret names (#5339)
1 parent c5f625f commit 675fc8f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

charts/kube-prometheus-stack/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ name: kube-prometheus-stack
3131
sources:
3232
- https://github.com/prometheus-community/helm-charts
3333
- https://github.com/prometheus-operator/kube-prometheus
34-
version: 69.3.2
34+
version: 69.3.3
3535
appVersion: v0.80.0
3636
kubeVersion: ">=1.19.0-0"
3737
home: https://github.com/prometheus-operator/kube-prometheus

charts/kube-prometheus-stack/templates/prometheus/prometheus.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ spec:
327327
{{- end }}
328328
{{- if .Values.prometheus.prometheusSpec.additionalScrapeConfigsSecret.enabled }}
329329
additionalScrapeConfigs:
330-
name: {{ .Values.prometheus.prometheusSpec.additionalScrapeConfigsSecret.name }}
330+
name: {{ tpl (.Values.prometheus.prometheusSpec.additionalScrapeConfigsSecret.name) . }}
331331
key: {{ .Values.prometheus.prometheusSpec.additionalScrapeConfigsSecret.key }}
332332
{{- end }}
333333
{{- if not .Values.prometheus.agentMode }}
@@ -338,7 +338,7 @@ spec:
338338
key: additional-alertmanager-configs.yaml
339339
{{- end }}
340340
{{- if .Values.prometheus.prometheusSpec.additionalAlertManagerConfigsSecret }}
341-
name: {{ .Values.prometheus.prometheusSpec.additionalAlertManagerConfigsSecret.name }}
341+
name: {{ tpl (.Values.prometheus.prometheusSpec.additionalAlertManagerConfigsSecret.name) . }}
342342
key: {{ .Values.prometheus.prometheusSpec.additionalAlertManagerConfigsSecret.key }}
343343
{{- if hasKey .Values.prometheus.prometheusSpec.additionalAlertManagerConfigsSecret "optional" }}
344344
optional: {{ .Values.prometheus.prometheusSpec.additionalAlertManagerConfigsSecret.optional }}
@@ -352,7 +352,7 @@ spec:
352352
{{- end }}
353353
{{- if .Values.prometheus.prometheusSpec.additionalAlertRelabelConfigsSecret }}
354354
additionalAlertRelabelConfigs:
355-
name: {{ .Values.prometheus.prometheusSpec.additionalAlertRelabelConfigsSecret.name }}
355+
name: {{ tpl (.Values.prometheus.prometheusSpec.additionalAlertRelabelConfigsSecret.name) . }}
356356
key: {{ .Values.prometheus.prometheusSpec.additionalAlertRelabelConfigsSecret.key }}
357357
{{- end }}
358358
{{- end }}

0 commit comments

Comments
 (0)