2019-07-31 18:26:12 +00:00
|
|
|
{{ template "vault.mode" . }}
|
|
|
|
{{- if and (eq (.Values.global.enabled | toString) "true") (ne .mode "dev") -}}
|
|
|
|
{{ if or (ne .Values.server.standalone.config "") (ne .Values.server.ha.config "") -}}
|
2018-08-18 05:08:03 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
2019-07-31 18:26:12 +00:00
|
|
|
name: {{ template "vault.fullname" . }}-config
|
2018-08-18 21:38:33 +00:00
|
|
|
labels:
|
2018-09-28 20:56:48 +00:00
|
|
|
app: {{ template "vault.name" . }}
|
|
|
|
chart: {{ template "vault.chart" . }}
|
2018-08-18 21:38:33 +00:00
|
|
|
heritage: {{ .Release.Service }}
|
|
|
|
release: {{ .Release.Name }}
|
2018-08-18 05:08:03 +00:00
|
|
|
data:
|
2018-11-30 22:02:53 +00:00
|
|
|
extraconfig-from-values.hcl: |-
|
2019-07-31 18:26:12 +00:00
|
|
|
{{- if eq .mode "standalone" }}
|
|
|
|
{{ tpl .Values.server.standalone.config . | nindent 4 | trim }}
|
|
|
|
{{- else if eq .mode "ha" }}
|
|
|
|
{{ tpl .Values.server.ha.config . | nindent 4 | trim }}
|
|
|
|
{{ end }}
|
|
|
|
{{- end }}
|
2018-08-18 05:08:03 +00:00
|
|
|
{{- end }}
|