{{- if .Values.extraSecretEnvs }}
apiVersion: v1
kind: Secret
metadata:
  name: {{ include "nocodb.fullname" . }}
  labels:
    {{- include "nocodb.labels" . | nindent 4 }}
data:
  NC_DB: {{ include "databaseUri" . | b64enc}}
{{- range $key, $value := .Values.extraSecretEnvs }}
  {{ $key }}: '{{ $value | b64enc }}'
{{- end }}
{{- end }}
