mirror of
https://gitea.com/gitea/helm-actions.git
synced 2026-04-14 05:30:39 +00:00
feat: add ability to add custom arguments to the dind daemon (#121)
Fix: https://gitea.com/gitea/helm-actions/issues/22 --------- Co-authored-by: DaanSelen <dselen@systemec.nl> Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/121 Co-authored-by: Daan Selen <dselen@nerthus.nl> Co-committed-by: Daan Selen <dselen@nerthus.nl>
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ charts/
|
|||||||
node_modules/
|
node_modules/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
unittests/*/__snapshot__/
|
unittests/*/__snapshot__/
|
||||||
|
*secret*.yaml
|
||||||
|
|||||||
@ -92,6 +92,7 @@ If `.Values.statefulset.dind.rootless: true` is set, then the following will be
|
|||||||
| `statefulset.dind.pullPolicy` | The Docker-in-Docker pullPolicy | `IfNotPresent` |
|
| `statefulset.dind.pullPolicy` | The Docker-in-Docker pullPolicy | `IfNotPresent` |
|
||||||
| `statefulset.dind.extraVolumeMounts` | Allows mounting extra volumes in the Docker-in-Docker container | `[]` |
|
| `statefulset.dind.extraVolumeMounts` | Allows mounting extra volumes in the Docker-in-Docker container | `[]` |
|
||||||
| `statefulset.dind.extraEnvs` | Allows adding custom environment variables, such as `DOCKER_IPTABLES_LEGACY` | `[]` |
|
| `statefulset.dind.extraEnvs` | Allows adding custom environment variables, such as `DOCKER_IPTABLES_LEGACY` | `[]` |
|
||||||
|
| `statefulset.dind.extraArgs` | Allows adding custom arguments to the Docker Daemon | `[]` |
|
||||||
|
|
||||||
### Gitea Actions Init
|
### Gitea Actions Init
|
||||||
|
|
||||||
|
|||||||
@ -71,6 +71,10 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
|
{{- if .Values.statefulset.dind.extraArgs }}
|
||||||
|
args:
|
||||||
|
{{- toYaml .Values.statefulset.dind.extraArgs | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
startupProbe:
|
startupProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
|
|||||||
@ -39,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`
|
||||||
|
## @param statefulset.dind.extraArgs Allows adding custom arguments to the Docker Daemon
|
||||||
#
|
#
|
||||||
enabled: false
|
enabled: false
|
||||||
statefulset:
|
statefulset:
|
||||||
@ -109,6 +110,12 @@ statefulset:
|
|||||||
# - name: "DOCKER_IPTABLES_LEGACY"
|
# - name: "DOCKER_IPTABLES_LEGACY"
|
||||||
# value: "1"
|
# value: "1"
|
||||||
|
|
||||||
|
# Option to add extra arguments/commands to the container/pod:
|
||||||
|
# [#22](https://gitea.com/gitea/helm-actions/issues/22) [k8s docs](https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/)
|
||||||
|
extraArgs:
|
||||||
|
[]
|
||||||
|
# - --mtu=1400
|
||||||
|
|
||||||
## @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
|
||||||
|
|||||||
Reference in New Issue
Block a user