# helm_charts_secretaccesskey-secret.yaml
{{- if not .Values.signalsciences.secretAccessKeyExistingSecret }}

apiVersion: v1
kind: Secret
metadata:
  name: {{ template "signalsciences.secretAccessKeySecretName" . }}
  labels:
    app: "{{ template "signalsciences.fullname" . }}"
    chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
    release: {{ .Release.Name | quote }}
    heritage: {{ .Release.Service | quote }}
type: Opaque
data:
  secretAccessKey: {{ default "MISSING" .Values.signalsciences.secretAccessKey | b64enc | quote }}

{{- end }}