17 Commits

Author SHA1 Message Date
aa3669b218 Helm unittests
All checks were successful
changelog / changelog (push) Successful in 10s
check-and-test / check-and-test (push) Successful in 24s
2025-08-07 09:28:25 +02:00
1567ab1063 Added a more silent argument to the install command.
Some checks failed
changelog / changelog (push) Successful in 16s
check-and-test / check-and-test (push) Failing after 23s
2025-08-07 09:17:05 +02:00
b9957b4d12 Made test-pr pass
All checks were successful
changelog / changelog (push) Successful in 6s
check-and-test / check-and-test (push) Successful in 28s
2025-07-24 11:17:31 +02:00
1685f9d0e7 Custom fixes
Some checks failed
changelog / changelog (push) Successful in 9s
check-and-test / check-and-test (push) Failing after 24s
2025-07-23 23:37:02 +02:00
78574fdeb0 Added compatitibility for 28-dind image
All checks were successful
changelog / changelog (push) Successful in 16s
check-and-test / check-and-test (push) Successful in 41s
2025-07-23 16:36:23 +02:00
c1ff110797 Assume http instead of https
All checks were successful
changelog / changelog (push) Successful in 7s
check-and-test / check-and-test (push) Successful in 24s
2025-07-23 15:40:21 +02:00
daf69e1ad7 Rebase all into one commit. I should have used a branch
All checks were successful
changelog / changelog (push) Successful in 6s
check-and-test / check-and-test (push) Successful in 28s
Trying out a readiness check

Added init-container for dind

Use a more graceful netcat command

Slimmed some things down

Added docker cli and use that for its readiness check

fix: unittest

Added parameter for deploying multiple runners

Fix unittest job

remove reference nc command

remove reference in unittest again

Trying to fix unittests

Passing unit tests

readme update

readme making using pnpm
2025-07-23 15:29:01 +02:00
Christopher Homberger
75bf520697 fix: always reference the correct ServiceAccount and Secret namespace (#11)
All checks were successful
changelog / changelog (push) Successful in 18s
check-and-test / check-and-test (push) Successful in 32s
### Description of the change

Use the same namespace template for all `namespace:` fields, this would be no error if the ServiceAccount would had the same different template than the reference.

I found this while analyzing existing code statically via `namespace:` search.

Updated to also use correct namespace in existing secret lookup

### Benefits

Previously if .Values.namespace and .Release.Namespace didn't match this might caused an install error.

e.g. in values.yml
```yaml
namespace: test
# ** enable provisioning job is required
```
However installed using
```
helm install -f values.yml --create-namespace --namespace install-name-space myactions .
```

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/11
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Christopher Homberger <christopher.homberger@web.de>
Co-committed-by: Christopher Homberger <christopher.homberger@web.de>
2025-04-12 10:36:05 +00:00
Christopher Homberger
41c4bf1bc7 refactor: use gitea.actions for global defines (#10)
### Description of the change

Just moves all defines under a new gitea.actions prefix.

### Additional information

Reduce possibility to cause a name clash with the helm-gitea chart if both would be included in a single helm chart installation.

Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/10
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Christopher Homberger <christopher.homberger@web.de>
Co-committed-by: Christopher Homberger <christopher.homberger@web.de>
2025-04-09 19:33:45 +00:00
Christopher Homberger
490e690e09 refactor: remove unused secretName template variable (#12)
### Description of the change

Removes unused variable in template, does not change existing behavior

Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/12
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Christopher Homberger <christopher.homberger@web.de>
Co-committed-by: Christopher Homberger <christopher.homberger@web.de>
2025-04-08 16:03:48 +00:00
Jack Jackson
bf978cf728 feat: allow parameterization of Act Runners persistence (#3)
See [original implementation](https://gitea.com/gitea/helm-gitea/pulls/812).

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: ChristopherHX <christopherhx@noreply.gitea.com>
Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/3
Reviewed-by: ChristopherHX <christopherhx@noreply.gitea.com>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Jack Jackson <scubbojj@gmail.com>
Co-committed-by: Jack Jackson <scubbojj@gmail.com>
2025-04-04 17:18:22 +00:00
Markus Pesch
7f868a0a27 chore(ci): add shellcheck (#7)
Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/7
Reviewed-by: justusbunsi <justusbunsi@noreply.gitea.com>
Co-authored-by: Markus Pesch <markus.pesch@cryptic.systems>
Co-committed-by: Markus Pesch <markus.pesch@cryptic.systems>
2025-04-03 17:52:36 +00:00
Christopher Homberger
5b19636034 chore(core): refactor to make all unit tests pass (#6)
_This is the first time I ever messed with helm and is an experiment to show what prevents the tests to pass and how far it still depends on the gitea chart_
### Description of the change

- Deletes a single test that seems to depend directly on gitea
- make all tests pass
- Moves all value accesses from `actions` one level up
- Copies content of the gitea chart required by the existing test
  - Reveals all dependencies that needs to be decoupled
- Fixes readme generation
  - add package.json
  - copy dependent readme section from helm-gitea
- Removes all dependencies
- giteaRootURL is now required to be provided
  - consistency check that this value has been provided
  - added test for consistency failure
- nc command no longer uses an hardcoded dns name and is checked in tests
  - added test
- Copied yamllint from helm-gitea
  - added pnpm lock file exclusion
- Installed pnpm in the workflow
- Updated make unittest command in CI to unittest-helm
### Benefits

The existing tests are passing

### Possible drawbacks

The provision job might still not work.

### Applicable issues

- Fixes #5

### Additional information

The following usage should now deploy
```yaml
existingSecret: "somesecret"
existingSecretKey: "key"

## Specify the root URL of the Gitea instance
giteaRootURL: "http://somedomain:3000"
```
### ⚠ BREAKING

- giteaRootURL is now required to be provided
- Moves all value accesses from `actions` one level up
  - The values.yml had this change without updating tests / dev Readme

Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/6
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: justusbunsi <justusbunsi@noreply.gitea.com>
Reviewed-by: volker.raschek <markus.pesch@web.de>
Co-authored-by: Christopher Homberger <christopher.homberger@web.de>
Co-committed-by: Christopher Homberger <christopher.homberger@web.de>
2025-03-30 23:13:31 +00:00
pat-s
81716ac783 chore: add docs/ 2025-03-06 22:35:51 +01:00
pat-s
42fe8c02c2 chore: add templates, unittests and workflows 2025-03-06 22:25:49 +01:00
pat-s
82ed342b11 chore: add linters and ignores 2025-03-06 21:59:42 +01:00
techknowlogick
f900633803 Initial commit 2025-03-05 00:37:20 +00:00