Skip to content

Commit 5006526

Browse files
committed
Add support for container lifecycle hooks
This is already supported by JupyterHub and gives a simple way for people to for example add custom CA without requiring image rebuild.
1 parent f5df15c commit 5006526

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

helm-chart/binderhub/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ spec:
7070
args:
7171
- --config
7272
- /etc/binderhub/config/binderhub_config.py
73+
{{- with .Values.lifecycle }}
74+
lifecycle:
75+
{{- . | toYaml | nindent 10 }}
76+
{{- end }}
7377
volumeMounts:
7478
- mountPath: /etc/binderhub/config/
7579
name: config

helm-chart/binderhub/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ ingress:
211211
# - chart-example.local
212212

213213
initContainers: []
214+
lifecycle: {}
214215
extraVolumes: []
215216
extraVolumeMounts: []
216217
extraEnv: []

0 commit comments

Comments
 (0)