Skip to content

Commit 92e0022

Browse files
authored
Merge pull request #1301 from sgaist/add_lifecycle_support
Add container lifecycle hooks support to chart
2 parents c7cbf63 + 5006526 commit 92e0022

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,13 @@ continue.
194194
(cd helm-chart && chartpress)
195195
```
196196

197+
1. Get the chart dependencies (for example JupyterHub)
198+
199+
```bash
200+
cd helm-chart/binderhub
201+
helm dependency update
202+
```
203+
197204
1. Validate, and then install the Helm chart defined in helm-chart/binderhub.
198205

199206
This validation step is not making any modification to your Kubernetes
@@ -209,6 +216,8 @@ continue.
209216

210217
If the validation succeeds, go ahead and upgrade/install the Helm chart.
211218

219+
Note that this will do the installation in the current namespace.
220+
212221
```bash
213222
helm upgrade --install binderhub-test helm-chart/binderhub \
214223
--values testing/k8s-binder-k8s-hub/binderhub-chart-config.yaml \

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)