From 22e39bd161fd39129b389fffdf08b28b9b993767 Mon Sep 17 00:00:00 2001 From: "halil.cakal" Date: Fri, 21 Nov 2025 13:27:49 +0000 Subject: [PATCH] changed env. variable to SERVER_PORT for pod dmi-stub-2 - minikube can not bind env. variable if it was DMI_STUB_SERVER_PORT for the pod dmi-stub-2, thus it changed to SERVER_PORT to solve the problem Issue-ID: CPS-3056 Change-Id: I7948ca540a01d0cd244698a7ce2bd43201e83634 Signed-off-by: halil.cakal --- cps-charts/templates/dmi-stub-deployment-2.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cps-charts/templates/dmi-stub-deployment-2.yaml b/cps-charts/templates/dmi-stub-deployment-2.yaml index 4ad307b9fa..df0e770387 100644 --- a/cps-charts/templates/dmi-stub-deployment-2.yaml +++ b/cps-charts/templates/dmi-stub-deployment-2.yaml @@ -24,12 +24,12 @@ spec: ports: - containerPort: {{ .Values.dmiStub.deployment2.containerPort }} env: - - name: DMI_STUB_SERVER_PORT - value: "{{ .Values.dmiStub.deployment2.containerPort }}" - {{- range $key, $value := .Values.dmiStub.env }} - - name: {{ $key }} - value: "{{ $value }}" + {{- range $envName, $envValue := .Values.dmiStub.env }} + - name: {{ $envName | upper }} + value: "{{ $envValue }}" {{- end }} + - name: SERVER_PORT + value: "{{ .Values.dmiStub.deployment2.containerPort }}" resources: {{- toYaml .Values.dmiStub.resources | nindent 12 }} livenessProbe: -- 2.16.6