2023-02-13 16:48:20 +00:00
|
|
|
{{/*
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/}}
|
|
|
|
|
2024-05-28 11:52:10 +00:00
|
|
|
{{ template "openbao.mode" . }}
|
2020-02-21 16:16:33 +00:00
|
|
|
{{- if ne .mode "external" }}
|
2022-03-21 16:50:23 +00:00
|
|
|
{{- if .serverEnabled -}}
|
|
|
|
{{- if ne .mode "dev" -}}
|
2020-04-27 14:45:56 +00:00
|
|
|
{{ if or (.Values.server.standalone.config) (.Values.server.ha.config) -}}
|
2018-08-18 05:08:03 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
2024-05-28 11:52:10 +00:00
|
|
|
name: {{ template "openbao.fullname" . }}-config
|
|
|
|
namespace: {{ include "openbao.namespace" . }}
|
2018-08-18 21:38:33 +00:00
|
|
|
labels:
|
2024-05-28 11:52:10 +00:00
|
|
|
helm.sh/chart: {{ include "openbao.chart" . }}
|
|
|
|
app.kubernetes.io/name: {{ include "openbao.name" . }}
|
2019-08-07 18:55:32 +00:00
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
2024-03-18 18:03:56 +00:00
|
|
|
{{- if .Values.server.includeConfigAnnotation }}
|
|
|
|
annotations:
|
2024-05-28 11:52:10 +00:00
|
|
|
vault.hashicorp.com/config-checksum: {{ include "openbao.config" . | sha256sum }}
|
2024-03-18 18:03:56 +00:00
|
|
|
{{- end }}
|
2018-08-18 05:08:03 +00:00
|
|
|
data:
|
2018-11-30 22:02:53 +00:00
|
|
|
extraconfig-from-values.hcl: |-
|
2024-05-28 11:52:10 +00:00
|
|
|
{{ template "openbao.config" . }}
|
2019-07-31 18:26:12 +00:00
|
|
|
{{- end }}
|
2018-08-18 05:08:03 +00:00
|
|
|
{{- end }}
|
2020-02-21 16:16:33 +00:00
|
|
|
{{- end }}
|
2022-04-13 05:54:54 +00:00
|
|
|
{{- end }}
|