Allow extra args for docker daemon when in dind mode
This commit is contained in:
		
							parent
							
								
									088e2a3a90
								
							
						
					
					
						commit
						cf56b99c67
					
				|  | @ -101,6 +101,13 @@ args: | ||||||
|   - dockerd |   - dockerd | ||||||
|   - --host=unix:///var/run/docker.sock |   - --host=unix:///var/run/docker.sock | ||||||
|   - --group=$(DOCKER_GROUP_GID) |   - --group=$(DOCKER_GROUP_GID) | ||||||
|  | {{- /* Append extra args only if containerMode.dind.extraDockerDaemonArgs exists and is a list */ -}} | ||||||
|  | {{- if and (kindIs "map" .Values.containerMode) (kindIs "map" (get .Values.containerMode "dind")) -}} | ||||||
|  |   {{- $extra := (get (get .Values.containerMode "dind") "extraDockerDaemonArgs") | default (list) -}} | ||||||
|  |   {{- range $extra }} | ||||||
|  |   - {{ . | quote }} | ||||||
|  |   {{- end }} | ||||||
|  | {{- end }} | ||||||
| env: | env: | ||||||
|   - name: DOCKER_GROUP_GID |   - name: DOCKER_GROUP_GID | ||||||
|     value: "123" |     value: "123" | ||||||
|  |  | ||||||
|  | @ -116,6 +116,12 @@ githubConfigSecret: | ||||||
| ## empty, and configuration should be applied to the template. | ## empty, and configuration should be applied to the template. | ||||||
| # containerMode: | # containerMode: | ||||||
| #   type: "dind"  ## type can be set to dind or kubernetes | #   type: "dind"  ## type can be set to dind or kubernetes | ||||||
|  | #   dind: | ||||||
|  | #     ## extraDockerDaemonArgs is a list of extra arguments to pass to the docker daemon | ||||||
|  | #     extraDockerDaemonArgs: | ||||||
|  | #       - --registry-mirror=https://my-mirror.com | ||||||
|  | #       - --https-proxy=http://my-proxy.com:1234 | ||||||
|  | #       - --mtu=1400 | ||||||
| #   ## the following is required when containerMode.type=kubernetes | #   ## the following is required when containerMode.type=kubernetes | ||||||
| #   kubernetesModeWorkVolumeClaim: | #   kubernetesModeWorkVolumeClaim: | ||||||
| #     accessModes: ["ReadWriteOnce"] | #     accessModes: ["ReadWriteOnce"] | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue