diff --git a/charts/onechart/tests/deployment_sidecar_test.yaml b/charts/onechart/tests/deployment_sidecar_test.yaml index a49f5ad..e4c75f6 100644 --- a/charts/onechart/tests/deployment_sidecar_test.yaml +++ b/charts/onechart/tests/deployment_sidecar_test.yaml @@ -12,3 +12,14 @@ tests: - equal: path: spec.template.spec.containers[1].image value: debian:stable-slim + - it: Should inject a debug sidecar with shell and command specified + set: + sidecar: + repository: debian + tag: stable-slim + shell: "/bin/bash" + command: "while true; do sleep 30; done;" + asserts: + - equal: + path: spec.template.spec.containers[1].image + value: debian:stable-slim \ No newline at end of file diff --git a/values.yaml b/values.yaml index aa3061e..51e5ad0 100644 --- a/values.yaml +++ b/values.yaml @@ -9,3 +9,9 @@ fileSecrets: a multiline secret + +sidecar: + repository: debian + tag: stable-slim + shell: "/bin/bash" + command: "while true; do sleep 30; done;"