# helm_charts_accesskeyid-secret.yaml
{{- if not .Values.signalsciences.accessKeyIdExistingSecret }}

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

{{- end }}