diff --git a/README.md b/README.md index 2ac5b3f..b38fdfb 100644 --- a/README.md +++ b/README.md @@ -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.securityContext` | Customize the SecurityContext | `{}` | | `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.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.repository` | The Gitea act runner image | `act_runner` | | `statefulset.actRunner.tag` | The Gitea act runner tag | `0.3.0` | diff --git a/templates/statefulset.yaml b/templates/statefulset.yaml index 92d90f6..fc45b04 100644 --- a/templates/statefulset.yaml +++ b/templates/statefulset.yaml @@ -38,6 +38,9 @@ spec: securityContext: {{- toYaml .Values.statefulset.securityContext | nindent 8 }} {{- end }} + {{- if .Values.statefulset.runtimeClassName }} + runtimeClassName: {{ .Values.statefulset.runtimeClassName }} + {{- end }} {{- if .Values.statefulset.hostAliases }} hostAliases: {{- toYaml .Values.statefulset.hostAliases | nindent 8 }} diff --git a/values.yaml b/values.yaml index 54e4856..180325f 100644 --- a/values.yaml +++ b/values.yaml @@ -14,8 +14,11 @@ ## @param statefulset.persistence.size Size for persistence to store act runner data ## @param statefulset.securityContext Customize the SecurityContext ## @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.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.repository The Gitea act runner image ## @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.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` +# enabled: false statefulset: replicas: 1 @@ -49,6 +53,7 @@ statefulset: extraVolumes: [] securityContext: {} serviceAccountName: "" + runtimeClassName: "" # Add /etc/hosts injections into the pods hostAliases: @@ -58,6 +63,9 @@ statefulset: # - googel.com # - googol.com + persistence: + size: 1Gi + actRunner: registry: "docker.gitea.com" repository: act_runner @@ -101,9 +109,6 @@ statefulset: # - name: "DOCKER_IPTABLES_LEGACY" # value: "1" - persistence: - size: 1Gi - ## @section Gitea Actions Init # ## @param init.image.registry image registry, e.g. gcr.io,docker.io @@ -136,8 +141,8 @@ giteaRootURL: "" ## @section Extra 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 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. preExtraInitContainers: [] # - name: pre-init-container # image: docker.io/library/busybox