Skip to content

Commit

Permalink
fixing trailing space and adding test case
Browse files Browse the repository at this point in the history
Signed-off-by: Nikhil Jiju <[email protected]>
  • Loading branch information
NiJuFirenzia committed Oct 23, 2024
1 parent dae31eb commit 72e6728
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
17 changes: 17 additions & 0 deletions charts/prefect-worker/tests/worker_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,23 @@ values:
- ./required_values.yaml

tests:
- it: Should set extra init containers
set:
worker:
initContainer:
extraContainers:
- name: code-init
image: custom/prefect-init:v2.0.0
asserts:
- template: deployment.yaml
equal:
path: .spec.template.spec.initContainers[0].name
value: code-init
- template: deployment.yaml
equal:
path: .spec.template.spec.initContainers[0].image
value: custom/prefect-init:v2.0.0

- it: Should set the correct image and tag
asserts:
- template: deployment.yaml
Expand Down
1 change: 0 additions & 1 deletion charts/prefect-worker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ worker:
allowPrivilegeEscalation: false
# -- set init container's security context capabilities
capabilities: {}

# -- additional sidecar containers
extraContainers: []

Expand Down

0 comments on commit 72e6728

Please sign in to comment.