apiVersion: v1
kind: Secret
metadata:
  name: "{{ template "goldfish.fullname" . }}"
  labels:
    app: "{{ template "goldfish.name" . }}"
    release: {{ .Release.Name | quote }}
    heritage: {{ .Release.Service | quote }}
    chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
type: Opaque
data:
  {{- range $key, $value :=  .Values.secrets }}
  {{ $key }}: {{ $value | b64enc | quote }}
  {{- end }}
