
* Add raft support * Add acceptance test * Update templates/server-headless-service.yaml Co-Authored-By: Theron Voran <tvoran@users.noreply.github.com> * Add notes to raft configurables Co-authored-by: Theron Voran <tvoran@users.noreply.github.com>
27 lines
1.1 KiB
YAML
27 lines
1.1 KiB
YAML
{{ template "vault.mode" . }}
|
|
{{- if ne .mode "external" }}
|
|
{{- if and (eq (.Values.global.enabled | toString) "true") (ne .mode "dev") -}}
|
|
{{ if or (ne .Values.server.standalone.config "") (ne .Values.server.ha.config "") -}}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ template "vault.fullname" . }}-config
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
helm.sh/chart: {{ include "vault.chart" . }}
|
|
app.kubernetes.io/name: {{ include "vault.name" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
data:
|
|
extraconfig-from-values.hcl: |-
|
|
disable_mlock = true
|
|
{{- if eq .mode "standalone" }}
|
|
{{ tpl .Values.server.standalone.config . | nindent 4 | trim }}
|
|
{{- else if and (eq .mode "ha") (eq (.Values.server.ha.raft.enabled | toString) "false") }}
|
|
{{ tpl .Values.server.ha.config . | nindent 4 | trim }}
|
|
{{- else if and (eq .mode "ha") (eq (.Values.server.ha.raft.enabled | toString) "true") }}
|
|
{{ tpl .Values.server.ha.raft.config . | nindent 4 | trim }}
|
|
{{ end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|