File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ kind: ConfigMap
33metadata :
44 name : {{ include "helm.fullname" . }}-configmap
55data :
6- config.toml : |-
76{{ if .Values.customConfig.enabled }}
7+ config.toml : |-
88{{ .Values.customConfig.toml | indent 4 }}
9- {{ else }}
10- {{ .Files.Get "files/config.toml" | indent 4 }}
119{{ end }}
Original file line number Diff line number Diff line change 4444 - name : http
4545 containerPort : {{ .Values.service.port }}
4646 protocol : TCP
47+ {{ if .Values.customConfig.enabed }}
4748 args : ["serve", "--config-filepath", "/etc/glazed/config.toml"]
49+ {{ end }}
4850 {{- with .Values.livenessProbe }}
4951 livenessProbe :
5052 {{- toYaml . | nindent 12 }}
@@ -62,12 +64,14 @@ spec:
6264 {{- toYaml . | nindent 12 }}
6365 {{- end }}
6466 volumes :
67+ {{ if .Values.customConfig.enabled }}
6568 - name : config-toml
6669 configMap :
6770 name : {{ .Release.Name }}-configmap
6871 items :
69- - key : config.toml
72+ - key :
7073 path : config.toml
74+ {{ end }}
7175 {{- with .Values.volumes }}
7276 {{- toYaml . | nindent 8 }}
7377 {{- end }}
You can’t perform that action at this time.
0 commit comments