Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions chart/tests/statefulset_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ templates:

tests:
- it: image name
chart:
version: 9.8.7-test
set:
controlPlane:
statefulSet:
Expand All @@ -12,17 +14,19 @@ tests:
asserts:
- equal:
path: spec.template.spec.containers[0].image
value: custom-registry.com/loft-sh/vcluster-pro:0.0.1
value: custom-registry.com/loft-sh/vcluster-pro:9.8.7-test

- it: defaultImageRegistry
chart:
version: 9.8.7-test
set:
controlPlane:
advanced:
defaultImageRegistry: docker.io
asserts:
- equal:
path: spec.template.spec.containers[0].image
value: docker.io/loft-sh/vcluster-pro:0.0.1
value: docker.io/loft-sh/vcluster-pro:9.8.7-test

- it: custom tag
set:
Expand Down Expand Up @@ -81,6 +85,8 @@ tests:
release:
name: my-release
namespace: my-namespace
chart:
version: 9.8.7-test
capabilities:
majorVersion: 1
minorVersion: 29
Expand All @@ -95,7 +101,7 @@ tests:
count: 1
- equal:
path: spec.template.spec.containers[0].image
value: ghcr.io/loft-sh/vcluster-pro:0.0.1
value: ghcr.io/loft-sh/vcluster-pro:9.8.7-test
- contains:
path: spec.template.spec.containers[0].env
content:
Expand Down