mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
helm: bump litellm-helm to 1.1.4; unit-test the enabled k8s-aibom subchart
Addresses review: the parent chart version increments so the changed chart publishes and selects reliably, and the enabled configuration is exercised by helm unittest (controller Deployment, ClusterRole, and the default AIBOMControllerConfig render when k8s-aibom.enabled=true). The default-off path cannot be asserted as zero documents by helm-unittest (disabled dependencies are not loaded) and is covered by every other suite rendering with default values. Signed-off-by: Glen Messenger <gmessenger@google.com>
This commit is contained in:
parent
bf013cb6fe
commit
2d51fed002
2 changed files with 38 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ type: application
|
|||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 1.1.3
|
||||
version: 1.1.4
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
|
|
|
|||
37
helm/litellm-helm/tests/k8s_aibom_test.yaml
Normal file
37
helm/litellm-helm/tests/k8s_aibom_test.yaml
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# The k8s-aibom subchart is condition-gated (k8s-aibom.enabled, default
|
||||
# false). helm-unittest does not load a disabled dependency's templates at
|
||||
# all, so the default-off path cannot be asserted here as "zero documents";
|
||||
# it is covered by every other suite rendering with default values. These
|
||||
# tests exercise the enabled configuration end to end.
|
||||
suite: k8s-aibom optional subchart (enabled)
|
||||
templates:
|
||||
- charts/k8s-aibom/templates/deployment.yaml
|
||||
- charts/k8s-aibom/templates/clusterrole.yaml
|
||||
- charts/k8s-aibom/templates/controllerconfig.yaml
|
||||
set:
|
||||
k8s-aibom.enabled: true
|
||||
tests:
|
||||
- it: renders the k8s-aibom controller Deployment when enabled
|
||||
template: charts/k8s-aibom/templates/deployment.yaml
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- isKind:
|
||||
of: Deployment
|
||||
- equal:
|
||||
path: spec.template.spec.containers[0].name
|
||||
value: manager
|
||||
- it: renders the k8s-aibom ClusterRole when enabled
|
||||
template: charts/k8s-aibom/templates/clusterrole.yaml
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- isKind:
|
||||
of: ClusterRole
|
||||
- it: renders the default AIBOMControllerConfig when enabled
|
||||
template: charts/k8s-aibom/templates/controllerconfig.yaml
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- isKind:
|
||||
of: AIBOMControllerConfig
|
||||
Loading…
Add table
Reference in a new issue