diff --git a/os2mo/templates/integrations/sql_export/config.yaml b/os2mo/templates/integrations/sql_export/config.yaml deleted file mode 100644 index 891d101..0000000 --- a/os2mo/templates/integrations/sql_export/config.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# SPDX-FileCopyrightText: Magenta ApS -# -# SPDX-License-Identifier: MPL-2.0 ---- -{{- if .Values.sql_export.enabled }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: sql-export - {{- with .Values.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -data: -{{ toYaml .Values.sql_export.environment | indent 2 }} -{{- end }} diff --git a/os2mo/templates/integrations/sql_export/deployment.yaml b/os2mo/templates/integrations/sql_export/deployment.yaml index 412bbde..bcb7116 100644 --- a/os2mo/templates/integrations/sql_export/deployment.yaml +++ b/os2mo/templates/integrations/sql_export/deployment.yaml @@ -55,9 +55,11 @@ spec: name: {{ .Values.sql_export.historic_state_secret_name }} key: password {{- end }} - envFrom: - - configMapRef: - name: sql-export + + {{- range $name, $value := .Values.sql_export.environment }} + - name: {{ $name }} + value: {{ $value | quote }} + {{- end }} ports: - containerPort: 8000 resources: