changed env. variable to SERVER_PORT for pod dmi-stub-2 65/142465/1
authorhalil.cakal <halil.cakal@est.tech>
Fri, 21 Nov 2025 13:27:49 +0000 (13:27 +0000)
committerhalil.cakal <halil.cakal@est.tech>
Fri, 21 Nov 2025 13:27:57 +0000 (13:27 +0000)
- 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 <halil.cakal@est.tech>
cps-charts/templates/dmi-stub-deployment-2.yaml

index 4ad307b..df0e770 100644 (file)
@@ -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: