From f274700020e29bcdac2b097845f7bbf795bf6a6c Mon Sep 17 00:00:00 2001 From: sd109 Date: Fri, 8 Mar 2024 14:51:27 +0000 Subject: [PATCH] Quote HF token to handle special characters --- chart/templates/api/deployment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chart/templates/api/deployment.yml b/chart/templates/api/deployment.yml index 7854a76..f6e3ea5 100644 --- a/chart/templates/api/deployment.yml +++ b/chart/templates/api/deployment.yml @@ -7,7 +7,7 @@ metadata: spec: replicas: 1 selector: - matchLabels: + matchLabels: {{- include "azimuth-llm.api-selectorLabels" . | nindent 6 }} strategy: {{- .Values.api.updateStrategy | toYaml | nindent 4 }} @@ -38,7 +38,7 @@ spec: {{- else if .Values.huggingface.token }} env: - name: HUGGING_FACE_HUB_TOKEN - value: {{ .Values.huggingface.token }} + value: {{ quote .Values.huggingface.token }} {{- else if contains "Llama" .Values.huggingface.model -}} {{- fail "Either secretName or token value must be set for Llama and other gated models" }} {{- end }}