Skip to content

Commit d9e05a5

Browse files
authored
Merge pull request #3250 from tibuntu/extra-configMap-mounts-optional
[grafana] add value to make extraConfigmapMounts and extraSecretMounts optional
2 parents c0e8b31 + 7965d83 commit d9e05a5

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

charts/grafana/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: grafana
3-
version: 8.3.8
3+
version: 8.4.0
44
appVersion: 11.1.0
55
kubeVersion: "^1.8.0-0"
66
description: The leading tool for querying and visualizing time series and metrics.

charts/grafana/templates/_pod.tpl

+6
Original file line numberDiff line numberDiff line change
@@ -1156,6 +1156,9 @@ volumes:
11561156
- name: {{ tpl .name $root }}
11571157
configMap:
11581158
name: {{ tpl .configMap $root }}
1159+
{{- with .optional }}
1160+
optional: {{ . }}
1161+
{{- end }}
11591162
{{- with .items }}
11601163
items:
11611164
{{- toYaml . | nindent 8 }}
@@ -1261,6 +1264,9 @@ volumes:
12611264
secret:
12621265
secretName: {{ .secretName }}
12631266
defaultMode: {{ .defaultMode }}
1267+
{{- with .optional }}
1268+
optional: {{ . }}
1269+
{{- end }}
12641270
{{- with .items }}
12651271
items:
12661272
{{- toYaml . | nindent 8 }}

charts/grafana/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ extraConfigmapMounts: []
164164
# subPath: certificates.crt # (optional)
165165
# configMap: certs-configmap
166166
# readOnly: true
167+
# optional: false
167168

168169

169170
extraEmptyDirMounts: []
@@ -539,6 +540,7 @@ extraSecretMounts: []
539540
# mountPath: /etc/secrets
540541
# secretName: grafana-secret-files
541542
# readOnly: true
543+
# optional: false
542544
# subPath: ""
543545
#
544546
# for AWS EKS (cloudwatch) use the following (see also instruction in env: above)

0 commit comments

Comments
 (0)