forked from Gitea/helm-actions
Compare commits
2 Commits
b8058bee05
...
feat-inlin
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6c0c43712c | ||
![]() |
0630164f91 |
@@ -6,10 +6,6 @@ The parameters which can be used to customize the deployment are described below
|
|||||||
|
|
||||||
If you want to propose a new feature or mechanism, submit an [issue here](https://gitea.com/gitea/helm-actions/issues).
|
If you want to propose a new feature or mechanism, submit an [issue here](https://gitea.com/gitea/helm-actions/issues).
|
||||||
|
|
||||||
## Docs
|
|
||||||
|
|
||||||
[Docs](./docs/README.md)
|
|
||||||
|
|
||||||
## Rootless Defaults
|
## Rootless Defaults
|
||||||
|
|
||||||
If `.Values.image.rootless: true`, then the following will occur. In case you use `.Values.image.fullOverride`, check that this works in your image:
|
If `.Values.image.rootless: true`, then the following will occur. In case you use `.Values.image.fullOverride`, check that this works in your image:
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
# Gitea Actions Helm Chart Docs
|
|
||||||
|
|
||||||
- [Share dind with job container](share-dind-with-job-container.md)
|
|
@@ -1,36 +0,0 @@
|
|||||||
# Share dind with job container
|
|
||||||
|
|
||||||
You can weaken isolation and allow jobs to call docker commands.
|
|
||||||
|
|
||||||
## Limitations
|
|
||||||
|
|
||||||
- Docker bind mounts like `-v /path/on/self/container:/path/to/new/container` do not work, because they are going to mount the path from the dind container
|
|
||||||
- Docker port expose to local host `-e 80:8080` is not going to work
|
|
||||||
|
|
||||||
## Example Values
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
enabled: true
|
|
||||||
statefulset:
|
|
||||||
actRunner:
|
|
||||||
# See full example here: https://gitea.com/gitea/act_runner/src/branch/main/internal/pkg/config/config.example.yaml
|
|
||||||
config: |
|
|
||||||
log:
|
|
||||||
level: debug
|
|
||||||
cache:
|
|
||||||
enabled: false
|
|
||||||
container:
|
|
||||||
valid_volumes:
|
|
||||||
- /var/run/docker.sock
|
|
||||||
options: -v /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
|
|
||||||
## Specify an existing token secret
|
|
||||||
##
|
|
||||||
existingSecret: "runner-token2"
|
|
||||||
existingSecretKey: "token"
|
|
||||||
|
|
||||||
## Specify the root URL of the Gitea instance
|
|
||||||
giteaRootURL: "http://192.168.1.2:3000"
|
|
||||||
```
|
|
||||||
|
|
||||||
Now you can run docker commands inside your jobs.
|
|
@@ -10,6 +10,10 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
config.yaml: |
|
config.yaml: |
|
||||||
{{- with .Values.statefulset.actRunner.config -}}
|
{{- with .Values.statefulset.actRunner.config -}}
|
||||||
|
{{- if kindIs "string" . -}}
|
||||||
{{ . | nindent 4}}
|
{{ . | nindent 4}}
|
||||||
|
{{- else -}}
|
||||||
|
{{ toYaml . | nindent 4}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@@ -126,10 +126,6 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.statefulset.dnsConfig }}
|
|
||||||
dnsConfig:
|
|
||||||
{{- toYaml .Values.statefulset.dnsConfig | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: act-runner-config
|
- name: act-runner-config
|
||||||
configMap:
|
configMap:
|
||||||
|
@@ -42,3 +42,27 @@ tests:
|
|||||||
runner:
|
runner:
|
||||||
labels:
|
labels:
|
||||||
- "ubuntu-latest"
|
- "ubuntu-latest"
|
||||||
|
- it: renders a ConfigMap with inline yaml
|
||||||
|
template: templates/config-act-runner.yaml
|
||||||
|
set:
|
||||||
|
enabled: true
|
||||||
|
statefulset:
|
||||||
|
actRunner:
|
||||||
|
config:
|
||||||
|
container:
|
||||||
|
valid_volumes:
|
||||||
|
- /var/run/docker.sock
|
||||||
|
options: -v /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
asserts:
|
||||||
|
- hasDocuments:
|
||||||
|
count: 1
|
||||||
|
- containsDocument:
|
||||||
|
kind: ConfigMap
|
||||||
|
apiVersion: v1
|
||||||
|
name: gitea-unittests-actions-act-runner-config
|
||||||
|
- matchRegex:
|
||||||
|
path: data["config.yaml"]
|
||||||
|
pattern: '(?m)^\s*options:\s*-v /var/run/docker.sock:/var/run/docker.sock\s*$'
|
||||||
|
- matchRegex:
|
||||||
|
path: data["config.yaml"]
|
||||||
|
pattern: '(?m)^\s*valid_volumes:\s*\n\s*-\s*/var/run/docker.sock\s*$'
|
||||||
|
@@ -10,7 +10,6 @@
|
|||||||
## @param statefulset.resources Act runner resources
|
## @param statefulset.resources Act runner resources
|
||||||
## @param statefulset.nodeSelector NodeSelector for the statefulset
|
## @param statefulset.nodeSelector NodeSelector for the statefulset
|
||||||
## @param statefulset.tolerations Tolerations for the statefulset
|
## @param statefulset.tolerations Tolerations for the statefulset
|
||||||
## @param statefulset.dnsConfig dnsConfig for the statefulset
|
|
||||||
## @param statefulset.affinity Affinity for the statefulset
|
## @param statefulset.affinity Affinity for the statefulset
|
||||||
## @param statefulset.extraVolumes Extra volumes for the statefulset
|
## @param statefulset.extraVolumes Extra volumes for the statefulset
|
||||||
## @param statefulset.actRunner.repository The Gitea act runner image
|
## @param statefulset.actRunner.repository The Gitea act runner image
|
||||||
@@ -35,7 +34,6 @@ statefulset:
|
|||||||
resources: {}
|
resources: {}
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
tolerations: []
|
tolerations: []
|
||||||
dnsConfig: {}
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
extraVolumes: []
|
extraVolumes: []
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user