mirror of
https://gitea.com/gitea/helm-actions.git
synced 2025-10-22 07:28:17 +00:00
Compare commits
2 Commits
renovate/w
...
feat-inlin
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6c0c43712c | ||
![]() |
0630164f91 |
@@ -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 }}
|
||||||
|
@@ -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*$'
|
||||||
|
Reference in New Issue
Block a user