Skip to content

Commit f586b53

Browse files
feat(metabase): enable custom initcontainers and volume (#128)
1 parent 1626521 commit f586b53

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

stable/metabase/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.0
18+
version: 0.1.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

stable/metabase/templates/deployment.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ spec:
2626
{{- end }}
2727
run: {{ .Release.Name }}
2828
spec:
29+
initContainers:
30+
{{- range $initContainer := .Values.initContainers }}
31+
- {{- toYaml $initContainer | nindent 10 }}
32+
{{- end }}
33+
{{- end }}
2934
containers:
3035
- name: metabase
3136
image: "{{ .Values.metabase.image.repository }}:{{ .Values.metabase.image.tag }}"
@@ -135,8 +140,9 @@ spec:
135140
name: {{ (printf "%s-secret" (include "metabase.fullname" .)) }}
136141
key: "newRelicLicenseKey"
137142
{{- end }}
138-
{{- if .Values.log4jProperties }}
139143
volumeMounts:
144+
{{- toYaml .Values.metabase.volumeMounts | nindent 12 }}
145+
{{- if .Values.log4jProperties }}
140146
- name: config
141147
mountPath: /tmp/conf/
142148
{{- end}}
@@ -161,6 +167,10 @@ spec:
161167
{{ toYaml . | indent 8 }}
162168
{{- end }}
163169
volumes:
170+
{{- range $volume := .Values.volumes }}
171+
- {{- toYaml $volume | nindent 10 }}
172+
{{- engit push origin --delete <old_name>d }}
173+
{{- if .Values.telegraf.enabled }}
164174
- name: telegraf-volume
165175
configMap:
166176
name: {{ template "metabase.fullname" . }}-telegraf-config

stable/metabase/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ labels: {}
44
## String to fully override metabase.fullname template
55
##
66
# fullnameOverride:
7+
initContainers: {}
8+
volumes: {}
79

810
metabase:
911
image:
@@ -39,6 +41,11 @@ metabase:
3941
# requests:
4042
# cpu: 100m
4143
# memory: 128Mi
44+
45+
# volumeMounts:
46+
# - mountPath: /data/config.yaml
47+
# name: config
48+
# subPath: config.yaml
4249

4350
# Backend database
4451
database:

0 commit comments

Comments
 (0)