fix: Set artemis user and password in the deployment (helm chart)

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.

Closes #52 (closed)

Merge request reports

Loading
+5 −0
Changes for kubernetes/helm/openslice/templates/artemis.yaml: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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:
Loading