From 28918e3359af8d249e051c34e6614e92257df879 Mon Sep 17 00:00:00 2001 From: Laszlo Fogas Date: Wed, 28 Apr 2021 09:55:29 +0200 Subject: [PATCH] Debug sidecar test --- charts/onechart/tests/deployment_sidecar_test.yaml | 11 +++++++++++ values.yaml | 6 ++++++ 2 files changed, 17 insertions(+) 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;"