Add a unittest for sidecar containers.

This commit is contained in:
Ross Golder
2024-09-06 09:59:05 +07:00
parent 2169f9ebb1
commit 4aeaa9c5be

View File

@ -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"