Skip to content

Commit b35ec4e

Browse files
authored
Merge pull request #1229 from rkevin-arch/image-clearner-no-host-socket
Do not mount host docker.sock into image cleaner pod if it is not enabled
2 parents b9a1b6d + 8125a7d commit b35ec4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

helm-chart/binderhub/templates/image-cleaner.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,15 @@ spec:
6464
{{- end }}
6565
terminationGracePeriodSeconds: 0
6666
volumes:
67+
{{- if .Values.imageCleaner.host.enabled }}
6768
- name: dockerlib-host
6869
hostPath:
6970
path: {{ .Values.imageCleaner.host.dockerLibDir }}
7071
- name: dockersocket-host
7172
hostPath:
7273
path: {{ .Values.imageCleaner.host.dockerSocket }}
7374
type: Socket
75+
{{- end }}
7476
{{- if .Values.dind.enabled }}
7577
- name: dockerlib-dind
7678
hostPath:

0 commit comments

Comments
 (0)