Skip to content

Commit 0c927d4

Browse files
authored
Merge pull request #162 from 2i2c-org/feat-add-custom-storage
feat: add custom storage for data
2 parents 5fcc39d + b145e8a commit 0c927d4

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

binderhub-service/templates/docker-api/daemonset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,13 @@ spec:
5151
{{- .Values.dockerApi.securityContext | toYaml | nindent 12 }}
5252
volumes:
5353
- name: data
54+
{{- if .Values.dockerApi.storage }}
55+
{{- .Values.dockerApi.storage | toYaml | nindent 10 }}
56+
{{- else }}
5457
hostPath:
5558
path: /var/lib/{{ .Release.Namespace }}-{{ .Release.Name }}/docker-api
5659
type: DirectoryOrCreate
60+
{{- end }}
5761
- name: exec
5862
hostPath:
5963
path: /var/run/{{ .Release.Namespace}}-{{ .Release.Name }}/docker-api

binderhub-service/values.schema.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ properties:
222222
properties:
223223
image: *image
224224
resources: *resources
225+
storage:
226+
type: object
227+
additionalProperties: true
225228
securityContext: *securityContext
226229
podSecurityContext: *podSecurityContext
227230
podAnnotations: *labels-and-annotations

docs/source/tutorials/connect-with-jupyterhub.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ The first few steps are lifted directly from the [install JupyterHub](https://z2
6767
```
6868

6969
where:
70-
7170
- `<helm-release-name>` is any name you can use to refer to this image
7271
(like `jupyterhub`)
7372

docs/source/tutorials/install.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ The following steps describe how to install the `binderhub-service` helm chart.
8484
```
8585
8686
where:
87-
8887
1. `<repository-path>` is what you copied from step 5.
8988

9089
2. `<json-key-from-service-account>` is the JSON file you downloaded in step 7.

0 commit comments

Comments
 (0)