mirror of
https://github.com/bitnami/charts.git
synced 2026-03-14 06:47:28 +08:00
15 lines
448 B
YAML
15 lines
448 B
YAML
{{- if and .Values.auth.rbac.enabled (not .Values.auth.rbac.existingSecret) -}}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "etcd.fullname" . }}
|
|
labels: {{- include "etcd.labels" . | nindent 4 }}
|
|
type: Opaque
|
|
data:
|
|
{{- if .Values.auth.rbac.rootPassword }}
|
|
etcd-root-password: {{ .Values.auth.rbac.rootPassword | b64enc | quote }}
|
|
{{- else }}
|
|
etcd-root-password: {{ randAlphaNum 10 | b64enc | quote }}
|
|
{{- end }}
|
|
{{- end }}
|