Add 'extraContainers' parameter. #697

Merged
justusbunsi merged 12 commits from rossigee/helm-chart:sidecar-containers into main 2024-10-18 13:44:38 +00:00
Member

Allows the user to run their own sidecar containers.

Description of the change

Adds an 'extraContainers' parameter.

Benefits

Users will be able to run sidecar containers as required by their environment.

Possible drawbacks

N/A

Applicable issues

Checklist

Allows the user to run their own sidecar containers. ### Description of the change Adds an 'extraContainers' parameter. ### Benefits Users will be able to run sidecar containers as required by their environment. ### Possible drawbacks N/A ### Applicable issues * gitea/helm-chart#696 ### Checklist <!-- [Place an '[X]' (no spaces) in all applicable fields. Please remove unrelated fields.] --> - [X] Parameters are documented in the `values.yaml` and added to the `README.md` using [readme-generator-for-helm](https://github.com/bitnami-labs/readme-generator-for-helm)
rossigee added 1 commit 2024-08-07 12:47:17 +00:00
Add 'extraContainers' parameter.
Some checks failed
check-and-test / check-and-test (pull_request) Has been cancelled
e700f869a2
rossigee requested review from justusbunsi 2024-08-07 12:47:17 +00:00
rossigee requested review from pat-s 2024-08-07 12:47:17 +00:00
rossigee added 1 commit 2024-08-09 01:59:27 +00:00
Move 'extraContainers' below main container.
Some checks failed
check-and-test / check-and-test (pull_request) Has been cancelled
6f44355fcc
Collaborator

Thanks for contributing!

Could you add some tests following the existing ones (via helm-unittests)?

(I guess we should finally add this to the PR template).

Thanks for contributing! Could you add some tests following the existing ones (via `helm-unittests`)? (I guess we should finally add this to the PR template).
Collaborator

ping @rossigee

ping @rossigee
rossigee added 1 commit 2024-09-06 02:30:52 +00:00
Merge branch 'main' into sidecar-containers
Some checks failed
check-and-test / check-and-test (pull_request) Has been cancelled
5977ec7169
rossigee added 1 commit 2024-09-06 02:59:13 +00:00
Add a unittest for sidecar containers.
Some checks failed
check-and-test / check-and-test (pull_request) Failing after 31s
0b459fbaed
Author
Member

@pat-s - I'm not familiar with helm-unittests. I've added a test, but if I try to run it manually...

~/src/gitea/helm-chart$ helm unittest . -f unittests/deployment/sidecar-container.yaml ### Chart [ gitea ] . FAIL sidecar container	unittests/deployment/sidecar-container.yaml	- supports adding a sidecar container	Error: template: gitea/templates/gitea/deployment.yaml:32:28: executing "gitea/templates/gitea/deployment.yaml" at <include (print $.Template.BasePath "/gitea/config.yaml") .>: error calling include: template: no template "gitea/templates/gitea/config.yaml" associated with template "gotpl" Charts: 1 failed, 0 passed, 1 total Test Suites: 1 failed, 0 passed, 1 total Tests: 1 failed, 1 errored, 0 passed, 1 total Snapshot: 0 passed, 0 total Time: 12.268632ms Error: plugin "unittest" exited with error 

The existing tests also fail with a similar error message, so I assume it's something I have/haven't done locally.

@pat-s - I'm not familiar with `helm-unittests`. I've added a test, but if I try to run it manually... ``` ~/src/gitea/helm-chart$ helm unittest . -f unittests/deployment/sidecar-container.yaml ### Chart [ gitea ] . FAIL sidecar container unittests/deployment/sidecar-container.yaml - supports adding a sidecar container Error: template: gitea/templates/gitea/deployment.yaml:32:28: executing "gitea/templates/gitea/deployment.yaml" at <include (print $.Template.BasePath "/gitea/config.yaml") .>: error calling include: template: no template "gitea/templates/gitea/config.yaml" associated with template "gotpl" Charts: 1 failed, 0 passed, 1 total Test Suites: 1 failed, 0 passed, 1 total Tests: 1 failed, 1 errored, 0 passed, 1 total Snapshot: 0 passed, 0 total Time: 12.268632ms Error: plugin "unittest" exited with error ``` The existing tests also fail with a similar error message, so I assume it's something I have/haven't done locally.
Collaborator

@rossigee Try adding - templates/gitea/config.yaml under templates: as shown in the existing deployment unittests.

@rossigee Try adding ` - templates/gitea/config.yaml` under `templates:` as shown in the existing deployment unittests.
rossigee added 1 commit 2024-09-20 08:53:58 +00:00
Add missing 'config.yaml'.
Some checks failed
check-and-test / check-and-test (pull_request) Failing after 29s
eab9413ded
rossigee added 5 commits 2024-09-20 09:00:28 +00:00
rossigee added 1 commit 2024-09-20 09:01:35 +00:00
Merge branch 'main' into sidecar-containers
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 34s
c1ad7dfb2c
justusbunsi added 1 commit 2024-10-18 13:41:53 +00:00
Merge branch 'main' into sidecar-containers
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 38s
87819f7ddf
justusbunsi added the
kind
feature
label 2024-10-18 13:42:20 +00:00
justusbunsi approved these changes 2024-10-18 13:43:02 +00:00
justusbunsi left a comment
Contributor

LGTM. Thanks for your contribution. Sorry for the delayed response.

LGTM. Thanks for your contribution. Sorry for the delayed response.
justusbunsi merged commit aa9808bc27 into main 2024-10-18 13:44:38 +00:00
Sign in to join this conversation.
No description provided.