{{ if .Values.global.aafEnabled }}
apiVersion: v1
kind: Secret
metadata:
  name: {{ include "common.fullname" . }}-aaf
  namespace: {{ include "common.namespace" . }}
  labels:
    app: {{ include "common.fullname" . }}
    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
type: Opaque
data:
 aaf-password: {{ .Values.aaf_init.deploy_pass | b64enc | quote }}
{{ end }}