mirror of
https://gitea.com/gitea/helm-actions.git
synced 2026-07-18 20:24:45 +00:00
Compare commits
2 Commits
887211f153
...
dc9cd71812
| Author | SHA1 | Date | |
|---|---|---|---|
| dc9cd71812 | |||
| 6ad4d5cee6 |
@ -58,7 +58,7 @@ You should be good to go!
|
|||||||
| `statefulset.affinity` | Affinity for the statefulset | `{}` |
|
| `statefulset.affinity` | Affinity for the statefulset | `{}` |
|
||||||
| `statefulset.extraVolumes` | Extra volumes for the statefulset | `[]` |
|
| `statefulset.extraVolumes` | Extra volumes for the statefulset | `[]` |
|
||||||
| `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 | `gitea/act_runner` |
|
| `statefulset.actRunner.repository` | The Gitea act runner image | `act_runner` |
|
||||||
| `statefulset.actRunner.tag` | The Gitea act runner tag | `0.2.13` |
|
| `statefulset.actRunner.tag` | The Gitea act runner tag | `0.2.13` |
|
||||||
| `statefulset.actRunner.digest` | Image digest. Allows to pin the given image tag. Useful for having control over mutable tags like `latest` | `""` |
|
| `statefulset.actRunner.digest` | Image digest. Allows to pin the given image tag. Useful for having control over mutable tags like `latest` | `""` |
|
||||||
| `statefulset.actRunner.pullPolicy` | The Gitea act runner pullPolicy | `IfNotPresent` |
|
| `statefulset.actRunner.pullPolicy` | The Gitea act runner pullPolicy | `IfNotPresent` |
|
||||||
@ -66,6 +66,7 @@ You should be good to go!
|
|||||||
| `statefulset.actRunner.extraVolumeMounts` | Allows mounting extra volumes in the act runner container | `[]` |
|
| `statefulset.actRunner.extraVolumeMounts` | Allows mounting extra volumes in the act runner container | `[]` |
|
||||||
| `statefulset.actRunner.config` | Act runner custom configuration. See [Act Runner documentation](https://docs.gitea.com/usage/actions/act-runner#configuration) for details. | `Too complex. See values.yaml` |
|
| `statefulset.actRunner.config` | Act runner custom configuration. See [Act Runner documentation](https://docs.gitea.com/usage/actions/act-runner#configuration) for details. | `Too complex. See values.yaml` |
|
||||||
| `statefulset.dind.registry` | image registry, e.g. gcr.io,docker.io | `""` |
|
| `statefulset.dind.registry` | image registry, e.g. gcr.io,docker.io | `""` |
|
||||||
|
| `statefulset.actRunner.extraEnvs` | Allows adding custom environment variables | `[]` |
|
||||||
| `statefulset.dind.repository` | The Docker-in-Docker image | `docker` |
|
| `statefulset.dind.repository` | The Docker-in-Docker image | `docker` |
|
||||||
| `statefulset.dind.tag` | The Docker-in-Docker image tag | `28.3.3-dind` |
|
| `statefulset.dind.tag` | The Docker-in-Docker image tag | `28.3.3-dind` |
|
||||||
| `statefulset.dind.digest` | Image digest. Allows to pin the given image tag. Useful for having control over mutable tags like `latest` | `""` |
|
| `statefulset.dind.digest` | Image digest. Allows to pin the given image tag. Useful for having control over mutable tags like `latest` | `""` |
|
||||||
|
|||||||
@ -66,6 +66,9 @@ spec:
|
|||||||
value: /actrunner/config.yaml
|
value: /actrunner/config.yaml
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: {{ .Values.statefulset.timezone | default "Etc/UTC" }}
|
value: {{ .Values.statefulset.timezone | default "Etc/UTC" }}
|
||||||
|
{{- if .Values.statefulset.actRunner.extraEnvs }}
|
||||||
|
{{- toYaml .Values.statefulset.actRunner.extraEnvs | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.statefulset.resources | nindent 12 }}
|
{{- toYaml .Values.statefulset.resources | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|||||||
@ -40,7 +40,7 @@ tests:
|
|||||||
name: gitea-unittests-actions-act-runner
|
name: gitea-unittests-actions-act-runner
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: docker.gitea.com/gitea/act_runner:0.2.13@sha256:abcdef123456
|
value: docker.gitea.com/act_runner:0.2.13@sha256:abcdef123456
|
||||||
- it: act-runner uses global.imageRegistry
|
- it: act-runner uses global.imageRegistry
|
||||||
template: templates/statefulset.yaml
|
template: templates/statefulset.yaml
|
||||||
set:
|
set:
|
||||||
@ -58,7 +58,7 @@ tests:
|
|||||||
name: gitea-unittests-actions-act-runner
|
name: gitea-unittests-actions-act-runner
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: test.io/gitea/act_runner:0.2.13
|
value: test.io/act_runner:0.2.13
|
||||||
- it: dind uses fullOverride
|
- it: dind uses fullOverride
|
||||||
template: templates/statefulset.yaml
|
template: templates/statefulset.yaml
|
||||||
set:
|
set:
|
||||||
@ -129,6 +129,39 @@ tests:
|
|||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.initContainers[0].image
|
path: spec.template.spec.initContainers[0].image
|
||||||
value: test.io/busybox:1.37.0
|
value: test.io/busybox:1.37.0
|
||||||
|
- it: renders additional environment variables for act-runner container in StatefulSet
|
||||||
|
template: templates/statefulset.yaml
|
||||||
|
set:
|
||||||
|
enabled: true
|
||||||
|
existingSecret: "my-secret"
|
||||||
|
existingSecretKey: "my-secret-key"
|
||||||
|
statefulset:
|
||||||
|
actRunner:
|
||||||
|
extraEnvs:
|
||||||
|
- name: "CUSTOM_ENV"
|
||||||
|
value: "1"
|
||||||
|
- name: "GITEA_RUNNER_NAME"
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
|
asserts:
|
||||||
|
- hasDocuments:
|
||||||
|
count: 1
|
||||||
|
- containsDocument:
|
||||||
|
kind: StatefulSet
|
||||||
|
apiVersion: apps/v1
|
||||||
|
name: gitea-unittests-actions-act-runner
|
||||||
|
- equal:
|
||||||
|
path: spec.template.spec.containers[0].env[7]
|
||||||
|
value:
|
||||||
|
name: CUSTOM_ENV
|
||||||
|
value: "1"
|
||||||
|
- matchRegex:
|
||||||
|
path: spec.template.spec.containers[0].env[8].valueFrom.fieldRef.fieldPath
|
||||||
|
pattern: "metadata\\.name"
|
||||||
|
- matchRegex:
|
||||||
|
path: spec.template.spec.containers[0].env[8].name
|
||||||
|
pattern: "GITEA_RUNNER_NAME"
|
||||||
- it: doesn't renders a StatefulSet by default
|
- it: doesn't renders a StatefulSet by default
|
||||||
template: templates/statefulset.yaml
|
template: templates/statefulset.yaml
|
||||||
asserts:
|
asserts:
|
||||||
|
|||||||
@ -22,6 +22,7 @@
|
|||||||
## @param statefulset.actRunner.extraVolumeMounts Allows mounting extra volumes in the act runner container
|
## @param statefulset.actRunner.extraVolumeMounts Allows mounting extra volumes in the act runner container
|
||||||
## @param statefulset.actRunner.config [default: Too complex. See values.yaml] Act runner custom configuration. See [Act Runner documentation](https://docs.gitea.com/usage/actions/act-runner#configuration) for details.
|
## @param statefulset.actRunner.config [default: Too complex. See values.yaml] Act runner custom configuration. See [Act Runner documentation](https://docs.gitea.com/usage/actions/act-runner#configuration) for details.
|
||||||
## @param statefulset.dind.registry image registry, e.g. gcr.io,docker.io
|
## @param statefulset.dind.registry image registry, e.g. gcr.io,docker.io
|
||||||
|
## @param statefulset.actRunner.extraEnvs Allows adding custom environment variables
|
||||||
## @param statefulset.dind.repository The Docker-in-Docker image
|
## @param statefulset.dind.repository The Docker-in-Docker image
|
||||||
## @param statefulset.dind.tag The Docker-in-Docker image tag
|
## @param statefulset.dind.tag The Docker-in-Docker image tag
|
||||||
## @param statefulset.dind.digest Image digest. Allows to pin the given image tag. Useful for having control over mutable tags like `latest`
|
## @param statefulset.dind.digest Image digest. Allows to pin the given image tag. Useful for having control over mutable tags like `latest`
|
||||||
@ -47,12 +48,18 @@ statefulset:
|
|||||||
|
|
||||||
actRunner:
|
actRunner:
|
||||||
registry: "docker.gitea.com"
|
registry: "docker.gitea.com"
|
||||||
repository: gitea/act_runner
|
repository: act_runner
|
||||||
tag: 0.2.13
|
tag: 0.2.13
|
||||||
digest: ""
|
digest: ""
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
fullOverride: ""
|
fullOverride: ""
|
||||||
extraVolumeMounts: []
|
extraVolumeMounts: []
|
||||||
|
extraEnvs:
|
||||||
|
[]
|
||||||
|
# - name: "GITEA_RUNNER_NAME"
|
||||||
|
# valueFrom:
|
||||||
|
# fieldRef:
|
||||||
|
# fieldPath: metadata.name
|
||||||
|
|
||||||
# See full example here: https://gitea.com/gitea/act_runner/src/branch/main/internal/pkg/config/config.example.yaml
|
# See full example here: https://gitea.com/gitea/act_runner/src/branch/main/internal/pkg/config/config.example.yaml
|
||||||
config: |
|
config: |
|
||||||
|
|||||||
Reference in New Issue
Block a user