diff --git a/unittests/deployment/sidecar-container.yaml b/unittests/deployment/sidecar-container.yaml new file mode 100644 index 0000000..c30a5fe --- /dev/null +++ b/unittests/deployment/sidecar-container.yaml @@ -0,0 +1,20 @@ +suite: sidecar container +release: + name: gitea-unittests + namespace: testing +templates: + - templates/gitea/deployment.yaml +tests: + - it: supports adding a sidecar container + template: templates/gitea/deployment.yaml + set: + extraContainers: + - name: sidecar-bob + image: busybox + asserts: + - equal: + path: spec.template.spec.containers[0].name + value: "sidecar-bob" + - equal: + path: spec.template.spec.containers[0].image + value: "busybox"