diff --git a/os2mo/templates/keycloak/realm-builder-config.yaml b/os2mo/templates/keycloak/realm-builder-config.yaml deleted file mode 100644 index 029034d..0000000 --- a/os2mo/templates/keycloak/realm-builder-config.yaml +++ /dev/null @@ -1,14 +0,0 @@ -# SPDX-FileCopyrightText: Magenta ApS -# -# SPDX-License-Identifier: MPL-2.0 ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: keycloak-gen-config - {{- with .Values.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -data: -{{ toYaml .Values.keycloak.builder.environment | indent 2 }} diff --git a/os2mo/templates/mo/deployment.yaml b/os2mo/templates/mo/deployment.yaml index 8a9b826..140185e 100644 --- a/os2mo/templates/mo/deployment.yaml +++ b/os2mo/templates/mo/deployment.yaml @@ -235,9 +235,6 @@ spec: - name: keycloak-realm-builder image: "{{ .Values.keycloak.builder.image.registry }}/{{ .Values.keycloak.builder.image.repository }}:{{ .Values.keycloak.builder.image.tag }}" - envFrom: - - configMapRef: - name: keycloak-gen-config env: {{ include "os2mo.keycloak_terraform_db_connection" . | nindent 12 }} - name: TF_VAR_KEYCLOAK_ADMIN_USERNAME @@ -262,6 +259,10 @@ spec: secretKeyRef: name: keycloak-dipex-secret key: client_secret + {{- range $name, $value := .Values.keycloak.builder.environment }} + - name: {{ $name }} + value: {{ $value | quote }} + {{- end }} resources: {{- toYaml .Values.initContainers.resources | nindent 12 }} restartPolicy: Always