Fix helm chart when containerMode.type=dind. (#2291)

This commit is contained in:
Tingluo Huang
2023-02-15 14:29:52 -05:00
committed by GitHub
parent 3886f285f8
commit d9627141dc
2 changed files with 33 additions and 6 deletions

View File

@@ -208,18 +208,18 @@ env:
{{- end }}
{{- end }}
{{- end }}
{{- if $setDockerHost }}
{{- end }}
{{- if $setDockerHost }}
- name: DOCKER_HOST
value: tcp://localhost:2376
{{- end }}
{{- if $setDockerTlsVerify }}
{{- end }}
{{- if $setDockerTlsVerify }}
- name: DOCKER_TLS_VERIFY
value: "1"
{{- end }}
{{- if $setDockerCertPath }}
{{- end }}
{{- if $setDockerCertPath }}
- name: DOCKER_CERT_PATH
value: /certs/client
{{- end }}
{{- end }}
{{- $mountWork := 1 }}
{{- $mountDindCert := 1 }}
@@ -247,6 +247,7 @@ volumeMounts:
{{- if $mountDindCert }}
- name: dind-cert
mountPath: /certs/client
readOnly: true
{{- end }}
{{- end }}
{{- end }}