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"