mirror of
https://github.com/stakater/Reloader.git
synced 2026-08-23 22:16:45 +00:00
29 lines
966 B
YAML
29 lines
966 B
YAML
suite: Enterprise image swap
|
|
templates:
|
|
- deployment.yaml
|
|
tests:
|
|
- it: uses the community image by default
|
|
asserts:
|
|
- equal:
|
|
path: spec.template.spec.containers[0].image
|
|
value: ghcr.io/stakater/reloader:v2.0.0
|
|
# The operator image is swapped manually via image.*; enterprise.enabled only
|
|
# toggles the subchart and must NOT change the operator image on its own.
|
|
- it: enterprise.enabled alone does not change the operator image
|
|
set:
|
|
enterprise:
|
|
enabled: true
|
|
asserts:
|
|
- equal:
|
|
path: spec.template.spec.containers[0].image
|
|
value: ghcr.io/stakater/reloader:v2.0.0
|
|
- it: uses the enterprise image when the image block is overridden
|
|
set:
|
|
image:
|
|
repository: ghcr.io/stakater/reloader-enterprise
|
|
tag: test-tag
|
|
asserts:
|
|
- equal:
|
|
path: spec.template.spec.containers[0].image
|
|
value: ghcr.io/stakater/reloader-enterprise:test-tag
|