[Bugfix][Helm] Fix chart resource references (#51664)

Signed-off-by: iwannagotobed <us990704@yonsei.ac.kr>
Co-authored-by: Chauncey <chaunceyjiang@gmail.com>
This commit is contained in:
iwannagotobed
2026-08-14 17:47:42 +08:00
committed by GitHub
co-authored by Chauncey
parent 69e0e58da1
commit aa31003573
9 changed files with 84 additions and 17 deletions
@@ -2,6 +2,23 @@ suite: test deployment
templates:
- deployment.yaml
tests:
- it: should use configured labels for the deployment selector and pods
set:
labels:
environment: production
release: qwen-serving
asserts:
- equal:
path: spec.selector.matchLabels
value:
environment: production
release: qwen-serving
- equal:
path: spec.template.metadata.labels
value:
environment: production
release: qwen-serving
- it: should create wait-download-model init container when modelDownload is enabled
set:
extraInit:
@@ -132,4 +149,4 @@ tests:
value: ghcr.io/llm-d/llm-d-routing-sidecar:v0.2.0
- equal:
path: spec.template.spec.initContainers[1].ports[0].containerPort
value: 8080
value: 8080
@@ -0,0 +1,17 @@
suite: test horizontal pod autoscaler
templates:
- hpa.yaml
release:
name: demo
tests:
- it: should target the deployment created by this release
set:
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 80
asserts:
- equal:
path: spec.scaleTargetRef.name
value: demo-deployment-vllm
@@ -0,0 +1,25 @@
suite: test service
templates:
- service.yaml
release:
name: demo
tests:
- it: should honor the configured service name
set:
serviceName: vllm-api
asserts:
- equal:
path: metadata.name
value: vllm-api
- it: should select pods using the configured labels
set:
labels:
environment: production
release: qwen-serving
asserts:
- equal:
path: spec.selector
value:
environment: production
release: qwen-serving