21 lines
580 B
YAML
21 lines
580 B
YAML
{{- if .Values.init.provisioning.enabled }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ template "cockroachdb.fullname" . }}-init
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
type: Opaque
|
|
stringData:
|
|
|
|
{{- range $user := .Values.init.provisioning.users }}
|
|
{{- if $user.password }}
|
|
{{ $user.name }}-password: {{ $user.password | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{- range $clusterSetting, $clusterSettingValue := .Values.init.provisioning.clusterSettings }}
|
|
{{ $clusterSetting | replace "." "-" }}-cluster-setting: {{ $clusterSettingValue | quote }}
|
|
{{- end }}
|
|
|
|
{{- end }}
|