apiVersion: v1
kind: Secret
metadata:
  name: "{{ template "fullname" . }}-secrets-{{ .Release.Time.Seconds }}"
  labels:
    app: {{ template "fullname" . }}
    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
    release: "{{ .Release.Name }}"
    heritage: "{{ .Release.Service }}"
  annotations:
    "helm.sh/hook": pre-install,pre-upgrade
type: Opaque
data:
  access-id: {{ default "MISSING" .Values.sumologic.accessId | b64enc | quote }}
  access-key: {{ default "MISSING" .Values.sumologic.accessKey | b64enc | quote }}
  collector-name: {{ default "kubernetes" .Values.sumologic.collectorName | b64enc | quote }}
