apiVersion: v1
kind: Secret
metadata:
  name: {{ include "superset.fullname" . }}
  labels:
    app: {{ include "superset.name" . }}
    chart: {{ include "superset.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
type: Opaque
data:
  init_superset.sh: {{ .Values.initFile | b64enc | quote }}
  superset_config.py: {{ .Values.configFile | b64enc | quote }}
  {{- range $key, $value := .Values.extraConfigFiles }}
  {{ $key }}: {{ $value | b64enc | quote }}
  {{- end }}
