From 6dc4bb5c79d4f6a839a7a462b18e8739fdb078cc Mon Sep 17 00:00:00 2001 From: Zhenzhong1 Date: Mon, 21 Oct 2024 11:54:18 +0300 Subject: [PATCH] refactoered image --- .../performance/helm_charts/templates/deployment.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ChatQnA/benchmark/performance/helm_charts/templates/deployment.yaml b/ChatQnA/benchmark/performance/helm_charts/templates/deployment.yaml index 920e54685..4fe4fc581 100644 --- a/ChatQnA/benchmark/performance/helm_charts/templates/deployment.yaml +++ b/ChatQnA/benchmark/performance/helm_charts/templates/deployment.yaml @@ -51,7 +51,14 @@ spec: {{- end }} {{- end }} - image: {{ $microservice.image }} + {{- $image := $microservice.image }} + {{- range $podSpec := $global.podSpecs }} + {{- if eq $podSpec.name $microservice.name }} + {{- $image = $podSpec.image | default $microservice.image }} + {{- end }} + {{- end }} + image: {{ $image }} + imagePullPolicy: IfNotPresent name: {{ $microservice.name }}