feat: add runtimeClassName customizability (#124)

Successor of: https://gitea.com/gitea/helm-actions/pulls/101
Due to age of previous branch.

---------

Co-authored-by: DaanSelen <dselen@systemec.nl>
Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/124
This commit is contained in:
DaanSelen
2026-04-08 09:53:34 +00:00
parent 476593d1a3
commit 51d54cd520
3 changed files with 15 additions and 5 deletions
+2
View File
@@ -70,7 +70,9 @@ If `.Values.statefulset.dind.rootless: true` is set, then the following will be
| `statefulset.persistence.size` | Size for persistence to store act runner data | `1Gi` | | `statefulset.persistence.size` | Size for persistence to store act runner data | `1Gi` |
| `statefulset.securityContext` | Customize the SecurityContext | `{}` | | `statefulset.securityContext` | Customize the SecurityContext | `{}` |
| `statefulset.serviceAccountName` | Customize the service account name | `""` | | `statefulset.serviceAccountName` | Customize the service account name | `""` |
| `statefulset.runtimeClassName` | Select a different RuntimeClass for pods | `""` |
| `statefulset.hostAliases` | Inject entries into the /etc/hosts file | `[]` | | `statefulset.hostAliases` | Inject entries into the /etc/hosts file | `[]` |
| `statefulset.persistence.size` | Size for persistence to store act runner data | `1Gi` |
| `statefulset.actRunner.registry` | image registry, e.g. gcr.io,docker.io | `docker.gitea.com` | | `statefulset.actRunner.registry` | image registry, e.g. gcr.io,docker.io | `docker.gitea.com` |
| `statefulset.actRunner.repository` | The Gitea act runner image | `act_runner` | | `statefulset.actRunner.repository` | The Gitea act runner image | `act_runner` |
| `statefulset.actRunner.tag` | The Gitea act runner tag | `0.3.0` | | `statefulset.actRunner.tag` | The Gitea act runner tag | `0.3.0` |
+3
View File
@@ -38,6 +38,9 @@ spec:
securityContext: securityContext:
{{- toYaml .Values.statefulset.securityContext | nindent 8 }} {{- toYaml .Values.statefulset.securityContext | nindent 8 }}
{{- end }} {{- end }}
{{- if .Values.statefulset.runtimeClassName }}
runtimeClassName: {{ .Values.statefulset.runtimeClassName }}
{{- end }}
{{- if .Values.statefulset.hostAliases }} {{- if .Values.statefulset.hostAliases }}
hostAliases: hostAliases:
{{- toYaml .Values.statefulset.hostAliases | nindent 8 }} {{- toYaml .Values.statefulset.hostAliases | nindent 8 }}
+10 -5
View File
@@ -14,8 +14,11 @@
## @param statefulset.persistence.size Size for persistence to store act runner data ## @param statefulset.persistence.size Size for persistence to store act runner data
## @param statefulset.securityContext Customize the SecurityContext ## @param statefulset.securityContext Customize the SecurityContext
## @param statefulset.serviceAccountName Customize the service account name ## @param statefulset.serviceAccountName Customize the service account name
## @param statefulset.runtimeClassName Select a different RuntimeClass for pods
## @param statefulset.hostAliases Inject entries into the /etc/hosts file ## @param statefulset.hostAliases Inject entries into the /etc/hosts file
# #
## @param statefulset.persistence.size Size for persistence to store act runner data
#
## @param statefulset.actRunner.registry image registry, e.g. gcr.io,docker.io ## @param statefulset.actRunner.registry image registry, e.g. gcr.io,docker.io
## @param statefulset.actRunner.repository The Gitea act runner image ## @param statefulset.actRunner.repository The Gitea act runner image
## @param statefulset.actRunner.tag The Gitea act runner tag ## @param statefulset.actRunner.tag The Gitea act runner tag
@@ -36,6 +39,7 @@
## @param statefulset.dind.pullPolicy The Docker-in-Docker pullPolicy ## @param statefulset.dind.pullPolicy The Docker-in-Docker pullPolicy
## @param statefulset.dind.extraVolumeMounts Allows mounting extra volumes in the Docker-in-Docker container ## @param statefulset.dind.extraVolumeMounts Allows mounting extra volumes in the Docker-in-Docker container
## @param statefulset.dind.extraEnvs Allows adding custom environment variables, such as `DOCKER_IPTABLES_LEGACY` ## @param statefulset.dind.extraEnvs Allows adding custom environment variables, such as `DOCKER_IPTABLES_LEGACY`
#
enabled: false enabled: false
statefulset: statefulset:
replicas: 1 replicas: 1
@@ -49,6 +53,7 @@ statefulset:
extraVolumes: [] extraVolumes: []
securityContext: {} securityContext: {}
serviceAccountName: "" serviceAccountName: ""
runtimeClassName: ""
# Add /etc/hosts injections into the pods # Add /etc/hosts injections into the pods
hostAliases: hostAliases:
@@ -58,6 +63,9 @@ statefulset:
# - googel.com # - googel.com
# - googol.com # - googol.com
persistence:
size: 1Gi
actRunner: actRunner:
registry: "docker.gitea.com" registry: "docker.gitea.com"
repository: act_runner repository: act_runner
@@ -101,9 +109,6 @@ statefulset:
# - name: "DOCKER_IPTABLES_LEGACY" # - name: "DOCKER_IPTABLES_LEGACY"
# value: "1" # value: "1"
persistence:
size: 1Gi
## @section Gitea Actions Init ## @section Gitea Actions Init
# #
## @param init.image.registry image registry, e.g. gcr.io,docker.io ## @param init.image.registry image registry, e.g. gcr.io,docker.io
@@ -136,8 +141,8 @@ giteaRootURL: ""
## @section Extra Init Containers ## @section Extra Init Containers
# #
## @param preExtraInitContainers Additional init containers to run in the pod before gitea-actions runs it owns init containers. ## @param preExtraInitContainers Additional init containers to run in the pod before Gitea-actions runs it owns init containers.
## @param postExtraInitContainers Additional init containers to run in the pod after gitea-actions runs it owns init containers. ## @param postExtraInitContainers Additional init containers to run in the pod after Gitea-actions runs it owns init containers.
preExtraInitContainers: [] preExtraInitContainers: []
# - name: pre-init-container # - name: pre-init-container
# image: docker.io/library/busybox # image: docker.io/library/busybox