The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(helm): render nodeSelector on the migrations job (#36747)
yuneng-jianga7397b2459aa
diff --git a/helm/litellm-helm/templates/migrations-job.yaml b/helm/litellm-helm/templates/migrations-job.yamlindex 7bc1a133883..f8a660e23f8 100644--- a/helm/litellm-helm/templates/migrations-job.yaml+++ b/helm/litellm-helm/templates/migrations-job.yaml@@ -105,6 +105,10 @@ spec:{{- toYaml . | nindent 8 }}{{- end }}restartPolicy: OnFailure+ {{- with .Values.nodeSelector }}+ nodeSelector:+ {{- toYaml . | nindent 8 }}+ {{- end }}{{- with .Values.affinity }}affinity:{{- toYaml . | nindent 8 }}diff --git a/helm/litellm-helm/tests/migrations-job_tests.yaml b/helm/litellm-helm/tests/migrations-job_tests.yamlindex 6bfc1f38adc..cb962118a25 100644--- a/helm/litellm-helm/tests/migrations-job_tests.yaml+++ b/helm/litellm-helm/tests/migrations-job_tests.yaml@@ -290,3 +290,27 @@ tests:value:allowPrivilegeEscalation: falsereadOnlyRootFilesystem: true+ - it: should schedule onto the same nodes as the gateway+ template: migrations-job.yaml+ set:+ migrationJob:+ enabled: true+ nodeSelector:+ karpenter.sh/nodepool: litellm-e2e+ tolerations:+ - key: workload+ operator: Equal+ value: litellm-e2e+ effect: NoSchedule+ asserts:+ - equal:+ path: spec.template.spec.nodeSelector+ value:+ karpenter.sh/nodepool: litellm-e2e+ - equal:+ path: spec.template.spec.tolerations+ value:+ - key: workload+ operator: Equal+ value: litellm-e2e+ effect: NoSchedule