diff --git a/helm/litellm-helm/Chart.yaml b/helm/litellm-helm/Chart.yaml index 3421e8f619a..6145fcb52d4 100644 --- a/helm/litellm-helm/Chart.yaml +++ b/helm/litellm-helm/Chart.yaml @@ -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 diff --git a/helm/litellm-helm/tests/k8s_aibom_test.yaml b/helm/litellm-helm/tests/k8s_aibom_test.yaml new file mode 100644 index 00000000000..770a8a41ec0 --- /dev/null +++ b/helm/litellm-helm/tests/k8s_aibom_test.yaml @@ -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