litellm/helm/litellm-helm/tests/rust_tests.yaml
Yujong Lee 30cd152748
Some checks failed
Cost map pins recheck / rerun-cost-map-guard (push) Has been cancelled
LiteLLM Rust DB / db-queries (push) Has been cancelled
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
LiteLLM Rust / rust-wheel (push) Has been cancelled
Terraform Modules / fmt, validate, test (aws) (push) Has been cancelled
Terraform Modules / fmt, validate, test (gcp) (push) Has been cancelled
fix(deploy): scope the Helm Rust switch to the proxy container and type it
Rename the value to rust.enabled and gateway.rust.enabled, since it sets the
process-wide LITELLM_RUST. In litellm-helm it moves out of the shared
proxyEnv helper so the collector sidecar no longer receives it, matching the
component chart. A values.schema.json entry rejects non-boolean values at
install time, and an extraEnvVars entry now suppresses the chart value
instead of producing a duplicate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 04:13:10 +09:00

87 lines
2.3 KiB
YAML

suite: Rust switch
templates:
- deployment.yaml
- configmap-litellm.yaml
tests:
- it: leaves LITELLM_RUST unset by default
template: deployment.yaml
asserts:
- notContains:
path: spec.template.spec.containers[0].env
content:
name: LITELLM_RUST
any: true
- it: sets LITELLM_RUST to false
template: deployment.yaml
set:
rust.enabled: false
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: LITELLM_RUST
value: "false"
- it: sets LITELLM_RUST to true
template: deployment.yaml
set:
rust.enabled: true
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: LITELLM_RUST
value: "true"
- it: keeps LITELLM_RUST off the collector sidecar
template: deployment.yaml
set:
rust.enabled: true
collector.enabled: true
asserts:
- equal:
path: spec.template.spec.containers[1].name
value: litellm-collector
- notContains:
path: spec.template.spec.containers[1].env
content:
name: LITELLM_RUST
any: true
- it: lets envVars override the value
template: deployment.yaml
set:
rust.enabled: true
envVars.LITELLM_RUST: "false"
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: LITELLM_RUST
value: "false"
- notContains:
path: spec.template.spec.containers[0].env
content:
name: LITELLM_RUST
value: "true"
- it: lets extraEnvVars override the value without a duplicate entry
template: deployment.yaml
set:
rust.enabled: true
extraEnvVars:
- name: LITELLM_RUST
value: "false"
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: LITELLM_RUST
value: "false"
- notContains:
path: spec.template.spec.containers[0].env
content:
name: LITELLM_RUST
value: "true"
- it: rejects a value that is not a boolean
template: deployment.yaml
set:
rust.enabled: "yes"
asserts:
- failedTemplate: {}