diff --git a/charts/prefect-worker/tests/worker_test.yaml b/charts/prefect-worker/tests/worker_test.yaml index 08914117..619f19b6 100644 --- a/charts/prefect-worker/tests/worker_test.yaml +++ b/charts/prefect-worker/tests/worker_test.yaml @@ -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 diff --git a/charts/prefect-worker/values.yaml b/charts/prefect-worker/values.yaml index 0f87e875..2d614474 100644 --- a/charts/prefect-worker/values.yaml +++ b/charts/prefect-worker/values.yaml @@ -52,7 +52,6 @@ worker: allowPrivilegeEscalation: false # -- set init container's security context capabilities capabilities: {} - # -- additional sidecar containers extraContainers: []