openbao-helm/templates/server-config-configmap.yaml

22 lines
716 B
YAML
Raw Permalink Normal View History

{{ 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:
name: {{ template "vault.fullname" . }}-config
labels:
app: {{ template "vault.name" . }}
chart: {{ template "vault.chart" . }}
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: |-
{{- 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 }}