From c9bfb32ac72bc8782ba581c92ab7a14862a73abc Mon Sep 17 00:00:00 2001 From: Jesse Goodier <31039225+jessegoodier@users.noreply.github.com> Date: Tue, 30 Jul 2024 10:58:41 -0400 Subject: [PATCH] fix grafana enabled bool on sts (#3564) --- cost-analyzer/templates/_helpers.tpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cost-analyzer/templates/_helpers.tpl b/cost-analyzer/templates/_helpers.tpl index 689709c9c..fdc413ed6 100755 --- a/cost-analyzer/templates/_helpers.tpl +++ b/cost-analyzer/templates/_helpers.tpl @@ -1129,6 +1129,10 @@ Begin Kubecost 2.0 templates value: {{ .Values.kubecostAggregator.dbTrimMemoryOnClose | quote }} - name: KUBECOST_NAMESPACE value: {{ .Release.Namespace }} + {{- if .Values.global.grafana }} + - name: GRAFANA_ENABLED + value: "{{ template "cost-analyzer.grafanaEnabled" . }}" + {{- end}} {{- if .Values.oidc.enabled }} - name: OIDC_ENABLED value: "true"