From 97d2d77ce5be4a3590d691edfb55ff0a11293bdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Capucho?= Date: Mon, 28 Jul 2025 18:52:34 +0100 Subject: [PATCH] fix: Set artemis user and password in the deployment The oscreds.activemq credentials were being correctly set in the consumer services but not in the artemis broker itself. This results in the services using the wrong credentials and the broker always using the default username + password combination. This commit fixes it by defining the relevant environment variables in the deployment. --- kubernetes/helm/openslice/templates/artemis.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kubernetes/helm/openslice/templates/artemis.yaml b/kubernetes/helm/openslice/templates/artemis.yaml index 87c75ea..9d7fa35 100644 --- a/kubernetes/helm/openslice/templates/artemis.yaml +++ b/kubernetes/helm/openslice/templates/artemis.yaml @@ -28,6 +28,11 @@ spec: - image: "{{ .Values.image.artemis.repository }}:{{ .Values.image.artemis.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.artemis.pullPolicy | default "Always" }} name: {{ include "openslice.fullname" . }}-artemis + env: + - name: ARTEMIS_USER + value: {{ .Values.oscreds.activemq.user }} + - name: ARTEMIS_PASSWORD + value: {{ .Values.oscreds.activemq.password }} resources: {{- toYaml .Values.resources | nindent 12 }} ports: -- GitLab