diff --git a/os2mo/templates/integrations/ad_to_mo_sync/config.yaml b/os2mo/templates/integrations/ad_to_mo_sync/config.yaml deleted file mode 100644 index 027147a..0000000 --- a/os2mo/templates/integrations/ad_to_mo_sync/config.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# SPDX-FileCopyrightText: Magenta ApS -# -# SPDX-License-Identifier: MPL-2.0 ---- -{{- if .Values.ad_to_mo_sync.enabled }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: ad-to-mo-sync-config - {{- with .Values.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -data: -{{ toYaml .Values.ad_to_mo_sync.environment | indent 2 }} -{{- end }} diff --git a/os2mo/templates/integrations/ad_to_mo_sync/deployment.yaml b/os2mo/templates/integrations/ad_to_mo_sync/deployment.yaml index 849a281..18dae2f 100644 --- a/os2mo/templates/integrations/ad_to_mo_sync/deployment.yaml +++ b/os2mo/templates/integrations/ad_to_mo_sync/deployment.yaml @@ -91,11 +91,14 @@ spec: value: {{ required "AD_SEARCH_BASE must be set" .Values.ad_to_mo_sync.ad_search_base | quote }} - name: AD_MAPPINGS value: {{ required "AD_MAPPINGS must be set" .Values.ad_to_mo_sync.ad_mappings | quote }} - envFrom: - - configMapRef: - name: ad-to-mo-sync-config - - configMapRef: - name: ad-to-mo-sync-json-config + {{- range $name, $value := .Values.ad_to_mo_sync.environment }} + - name: {{ $name }} + value: {{ $value | quote }} + {{- end }} + {{- range $name, $value := .Values.ad_to_mo_sync.environment_containing_json }} + - name: {{ $name }} + value: {{ $value | quote }} + {{- end }} ports: - containerPort: 8000 resources: diff --git a/os2mo/templates/integrations/ad_to_mo_sync/json-config.yaml b/os2mo/templates/integrations/ad_to_mo_sync/json-config.yaml deleted file mode 100644 index 9a36f0d..0000000 --- a/os2mo/templates/integrations/ad_to_mo_sync/json-config.yaml +++ /dev/null @@ -1,14 +0,0 @@ -# SPDX-FileCopyrightText: Magenta ApS -# -# SPDX-License-Identifier: MPL-2.0 ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: ad-to-mo-sync-json-config - {{- with .Values.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -data: -{{ toYaml .Values.ad_to_mo_sync.environment_containing_json | indent 2 }}