From 90d223015eea61e2232aca24bfde01a162c99847 Mon Sep 17 00:00:00 2001 From: samzong Date: Mon, 17 Nov 2025 12:20:35 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(helm):=20add=20support=20for?= =?UTF-8?q?=20extra=20initContainer=20env=20variables.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: samzong --- .../helm/semantic-router/templates/deployment.yaml | 3 +++ deploy/helm/semantic-router/values.yaml | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/deploy/helm/semantic-router/templates/deployment.yaml b/deploy/helm/semantic-router/templates/deployment.yaml index 0fb0d1aee..477cdb216 100644 --- a/deploy/helm/semantic-router/templates/deployment.yaml +++ b/deploy/helm/semantic-router/templates/deployment.yaml @@ -70,6 +70,9 @@ spec: env: - name: HF_HUB_CACHE value: /tmp/hf_cache + {{- with .Values.initContainer.env }} + {{- toYaml . | nindent 10 }} + {{- end }} resources: {{- toYaml .Values.initContainer.resources | nindent 10 }} volumeMounts: diff --git a/deploy/helm/semantic-router/values.yaml b/deploy/helm/semantic-router/values.yaml index 8cd43938d..926676823 100644 --- a/deploy/helm/semantic-router/values.yaml +++ b/deploy/helm/semantic-router/values.yaml @@ -135,6 +135,18 @@ initContainer: requests: memory: "1Gi" cpu: "500m" + # -- Additional environment variables for the init container. + # For example, to use a private Hugging Face model, you can pass a token + # and specify an endpoint using a pre-existing Kubernetes secret. + # env: + # - name: HF_TOKEN + # valueFrom: + # secretKeyRef: + # name: my-hf-secret + # key: token + # - name: HF_ENDPOINT + # value: "https://huggingface.co" + env: [] # -- Models to download models: - name: all-MiniLM-L12-v2