feat: support native Kubernetes runner jobs (#194)

### Description of the change

Make DinD optional and add opt-in ServiceAccount/RBAC creation for native Kubernetes jobs. Preserve Docker defaults and compatibility with reused Helm values.

### Benefits

Deploy Kubernetes jobs through the existing chart, with support for mixed backend labels.

### Possible drawbacks

Requires matching runner configuration. Docker container actions remain unsupported by the upstream Kubernetes backend.

### Additional information

Validated with 61 Helm tests, lint, packaging, and kind: six concurrent jobs, checkout/services, artifacts/cache, cleanup, restarts and backend upgrades. Manual validation completed.

### Checklist

- [x] Parameters documented in values.yaml and generated README.md
- [x] Helm templating unit tests added
- [x] New resources render metadata.namespace

Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/194
Reviewed-by: DaanSelen <[email protected]>
Reviewed-by: Lunny Xiao <[email protected]>
Co-authored-by: James Tatum <[email protected]>
This commit is contained in:
James Tatum
2026-11-22 10:08:59 +00:00
committed by bircni
parent d0cf871b74
commit 5039cb180b
11 changed files with 617 additions and 4 deletions
+8
View File
@@ -143,3 +143,11 @@ Create image for Init
{{- define "gitea.actions.init.image" -}}
{{ include "gitea.actions.common.image" (dict "root" . "image" .Values.init.image) }}
{{- end -}}
{{- define "gitea.actions.serviceAccountName" -}}
{{- if (.Values.serviceAccount | default dict).create -}}
{{- default (printf "%s-runner" (include "gitea.actions.fullname" .) | trunc 63 | trimSuffix "-") .Values.statefulset.serviceAccountName -}}
{{- else -}}
{{- .Values.statefulset.serviceAccountName -}}
{{- end -}}
{{- end -}}