diff --git a/os2mo/templates/integrations/sdtool/configmap.yaml b/os2mo/templates/integrations/sdtool/configmap.yaml deleted file mode 100644 index 6aeb7af..0000000 --- a/os2mo/templates/integrations/sdtool/configmap.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# SPDX-FileCopyrightText: Magenta ApS -# -# SPDX-License-Identifier: MPL-2.0 ---- -{{- if .Values.sdtool.enabled }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: sdtool-config - {{- with .Values.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -data: -{{ toYaml .Values.sdtool.environment | indent 2 }} -{{- end }} diff --git a/os2mo/templates/integrations/sdtool/deployment.yaml b/os2mo/templates/integrations/sdtool/deployment.yaml index e8246ec..78aec04 100644 --- a/os2mo/templates/integrations/sdtool/deployment.yaml +++ b/os2mo/templates/integrations/sdtool/deployment.yaml @@ -74,9 +74,10 @@ spec: - name: SD_TOO_DEEP value: {{ .Values.sdtool.sd_too_deep | quote }} - envFrom: - - configMapRef: - name: sdtool-config + {{- range $name, $value := .Values.sdtool.environment }} + - name: {{ $name }} + value: {{ $value | quote }} + {{- end }} ports: - containerPort: 80 resources: