Skip to content

Commit c2c21d7

Browse files
committed
Add support for extra volumes and volume mounts to dind daemonset
1 parent bf2a779 commit c2c21d7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

helm-chart/binderhub/templates/dind/daemonset.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ spec:
5151
mountPath: /var/lib/docker
5252
- name: rundind
5353
mountPath: {{ .Values.dind.hostSocketDir }}
54+
{{- with .Values.dind.daemonset.extraVolumeMounts }}
55+
{{- . | toYaml | nindent 8 }}
56+
{{- end }}
57+
{{- with .Values.dind.daemonset.lifecycle }}
5458
terminationGracePeriodSeconds: 30
5559
volumes:
5660
- name: dockerlib-dind
@@ -61,4 +65,7 @@ spec:
6165
hostPath:
6266
path: {{ .Values.dind.hostSocketDir }}
6367
type: DirectoryOrCreate
68+
{{- with .Values.dind.daemonset.extraVolumes }}
69+
{{- . | toYaml | nindent 6 }}
70+
{{- end }}
6471
{{- end }}

helm-chart/binderhub/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ dind:
166166
tag: 19.03.5-dind
167167
# Additional command line arguments to pass to dockerd
168168
extraArgs: []
169+
extraVolumes: []
170+
extraVolumeMounts: []
169171
storageDriver: overlay2
170172
resources: {}
171173
hostSocketDir: /var/run/dind

0 commit comments

Comments
 (0)