Skip to content

Commit f4eb3dc

Browse files
committed
fix: 🐛 missing environment variables support on the second kind
1 parent 3dc5e63 commit f4eb3dc

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

charts/dso-grafana/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: dso-grafana
33
description: This Helm chart deploy Grafana instances and default dashboards for each projects read from values file.
44
type: application
5-
version: 1.5.0
5+
version: 1.5.1
66
dependencies:
77
- name: grafana-operator
88
repository: oci://ghcr.io/grafana/helm-charts

charts/dso-grafana/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# dso-grafana
22

3-
![Version: 1.5.0](https://img.shields.io/badge/Version-1.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
3+
![Version: 1.5.1](https://img.shields.io/badge/Version-1.5.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
44

55
This Helm chart deploy Grafana instances and default dashboards for each projects read from values file.
66

charts/dso-grafana/templates/grafana.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,16 @@ spec:
135135
server:
136136
root_url: {{ printf "https://%s/%s/" $.Values.server.url .name }}
137137
serve_from_sub_path: "true"
138+
{{- if $.Values.grafana.env }}
139+
deployment:
140+
spec:
141+
template:
142+
spec:
143+
containers:
144+
- name: grafana
145+
env:
146+
{{- toYaml $.Values.grafana.env | nindent 14 }}
147+
{{- end }}
138148
{{- if not $.Values.grafana.isOpenShift }}
139149
ingress:
140150
{{- if $.Values.server.certManager.enabled }}

0 commit comments

Comments
 (0)