From: halil.cakal Date: Fri, 21 Nov 2025 13:27:49 +0000 (+0000) Subject: changed env. variable to SERVER_PORT for pod dmi-stub-2 X-Git-Tag: 3.7.3~5^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=22e39bd161fd39129b389fffdf08b28b9b993767;p=cps.git 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 --- 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: