diff --git a/os2mo/templates/integrations/orggatekeeper/configmap.yaml b/os2mo/templates/integrations/orggatekeeper/configmap.yaml deleted file mode 100644 index abf6ad9..0000000 --- a/os2mo/templates/integrations/orggatekeeper/configmap.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# SPDX-FileCopyrightText: Magenta ApS -# -# SPDX-License-Identifier: MPL-2.0 ---- -{{- if .Values.orggatekeeper.enabled }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: orggatekeeper-config - {{- with .Values.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -data: -{{ toYaml .Values.orggatekeeper.environment | indent 2 }} -{{- end }} diff --git a/os2mo/templates/integrations/orggatekeeper/deployment.yaml b/os2mo/templates/integrations/orggatekeeper/deployment.yaml index 332e16b..65226db 100644 --- a/os2mo/templates/integrations/orggatekeeper/deployment.yaml +++ b/os2mo/templates/integrations/orggatekeeper/deployment.yaml @@ -59,9 +59,10 @@ spec: - name: SENTRY_ENVIRONMENT value: {{ .Values.sentry.environment | quote }} {{ end }} - envFrom: - - configMapRef: - name: orggatekeeper-config + {{- range $name, $value := .Values.orggatekeeper.environment }} + - name: {{ $name }} + value: {{ $value | quote }} + {{- end }} ports: - containerPort: 8000 resources: