Files
charts/bitnami/memcached/templates/secrets.yaml
cleverhu f76c57aef7 [bitnami/memcached]Allow existing secret to be used for Authentication (#13057)
* Allow existing secret to be used for Authentication

Fixes: https://github.com/bitnami/charts/issues/12836
Signed-off-by: cleverhu <shouping.hu@daocloud.io>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: cleverhu <shouping.hu@daocloud.io>

Signed-off-by: cleverhu <shouping.hu@daocloud.io>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
2022-10-25 12:17:41 +02:00

18 lines
722 B
YAML

{{- if and (.Values.auth.enabled) (not .Values.auth.existingPasswordSecret) }}
apiVersion: v1
kind: Secret
metadata:
name: {{ template "common.names.fullname" . }}
namespace: {{ .Release.Namespace }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
type: Opaque
data:
memcached-password: {{ default (randAlphaNum 10) .Values.auth.password | b64enc | quote }}
{{- end }}