Skip to content

Commit c8535a8

Browse files
authored
Merge pull request #1303 from sgaist/add_lifecycle_support_dind
Add config options to dind.deamonset: lifecycle, extraVolumes, extraVolumeMounts
2 parents bf2a779 + c0efe13 commit c8535a8

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ 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 }}
58+
lifecycle:
59+
{{- . | toYaml | nindent 10 }}
60+
{{- end }}
5461
terminationGracePeriodSeconds: 30
5562
volumes:
5663
- name: dockerlib-dind
@@ -61,4 +68,7 @@ spec:
6168
hostPath:
6269
path: {{ .Values.dind.hostSocketDir }}
6370
type: DirectoryOrCreate
71+
{{- with .Values.dind.daemonset.extraVolumes }}
72+
{{- . | toYaml | nindent 6 }}
73+
{{- end }}
6474
{{- end }}

helm-chart/binderhub/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ dind:
166166
tag: 19.03.5-dind
167167
# Additional command line arguments to pass to dockerd
168168
extraArgs: []
169+
lifecycle: {}
170+
extraVolumes: []
171+
extraVolumeMounts: []
169172
storageDriver: overlay2
170173
resources: {}
171174
hostSocketDir: /var/run/dind

0 commit comments

Comments
 (0)