From 6ef8b0ddce30a6e877351a503327acbe151e790f Mon Sep 17 00:00:00 2001 From: Linas Klimaitis <38661008+bruksnys@users.noreply.github.com> Date: Wed, 9 Oct 2024 09:55:37 +0300 Subject: [PATCH] Fix global.extraEnv key support for metrics-generator statefulset Signed-off-by: Linas Klimaitis <38661008+bruksnys@users.noreply.github.com> --- charts/tempo-distributed/Chart.yaml | 2 +- charts/tempo-distributed/README.md | 2 +- .../metrics-generator/statefulset-metrics-generator.yaml | 9 +++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/charts/tempo-distributed/Chart.yaml b/charts/tempo-distributed/Chart.yaml index 63250f02c2..110150795d 100644 --- a/charts/tempo-distributed/Chart.yaml +++ b/charts/tempo-distributed/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: tempo-distributed description: Grafana Tempo in MicroService mode type: application -version: 1.18.2 +version: 1.18.3 appVersion: 2.6.0 engine: gotpl home: https://grafana.com/docs/tempo/latest/ diff --git a/charts/tempo-distributed/README.md b/charts/tempo-distributed/README.md index eb6cb3b692..2cdd83d17f 100755 --- a/charts/tempo-distributed/README.md +++ b/charts/tempo-distributed/README.md @@ -1,6 +1,6 @@ # tempo-distributed -![Version: 1.18.2](https://img.shields.io/badge/Version-1.18.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.6.0](https://img.shields.io/badge/AppVersion-2.6.0-informational?style=flat-square) +![Version: 1.18.3](https://img.shields.io/badge/Version-1.18.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.6.0](https://img.shields.io/badge/AppVersion-2.6.0-informational?style=flat-square) Grafana Tempo in MicroService mode diff --git a/charts/tempo-distributed/templates/metrics-generator/statefulset-metrics-generator.yaml b/charts/tempo-distributed/templates/metrics-generator/statefulset-metrics-generator.yaml index 5f1737ddc7..f057fba246 100644 --- a/charts/tempo-distributed/templates/metrics-generator/statefulset-metrics-generator.yaml +++ b/charts/tempo-distributed/templates/metrics-generator/statefulset-metrics-generator.yaml @@ -73,9 +73,14 @@ spec: - name: {{ .name | quote }} containerPort: {{ .port }} {{- end }} - {{- with .Values.metricsGenerator.extraEnv }} + {{- if or .Values.global.extraEnv .Values.metricsGenerator.extraEnv }} env: - {{- toYaml . | nindent 12 }} + {{- with .Values.global.extraEnv }} + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.metricsGenerator.extraEnv }} + {{- toYaml . | nindent 12 }} + {{- end }} {{- end }} {{- with .Values.metricsGenerator.extraEnvFrom }} envFrom: