Skip to content

Commit 09e01a2

Browse files
committed
refactored image templating
1 parent 474f7b4 commit 09e01a2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

charts/azimuth-llm/templates/api/deployment.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ spec:
1919
spec:
2020
containers:
2121
- name: {{ .Release.Name }}-api
22-
{{ $gpuChart := ternary "ghcr.io/stackhpc/vllm-xpu" "vllm/vllm-openai" .Values.api.intelXPUsEnabled -}}
23-
{{ $imageRepo := .Values.api.image.repository | default (ternary "ghcr.io/stackhpc/vllm-cpu" $gpuChart (eq (.Values.api.gpus | int) 0)) -}}
24-
image: {{ printf "%s:%s" $imageRepo .Values.api.image.version }}
22+
{{- if eq (.Values.api.gpus | int) 0 }}
23+
image: "ghcr.io/stackhpc/vllm-cpu"
24+
{{- else if .Values.api.intelXPUsEnabled }}
25+
image: "ghcr.io/stackhpc/vllm-xpu"
26+
{{- else }}
27+
image: "vllm/vllm-openai"
28+
{{- end }}
2529
ports:
2630
- name: api
2731
containerPort: 8000

0 commit comments

Comments
 (0)