Skip to content

Commit

Permalink
Merge pull request #151 from 2i2c-org/extra-volumes
Browse files Browse the repository at this point in the history
Allow setting extraVolumes and extraVolumeMounts
  • Loading branch information
yuvipanda authored Mar 7, 2025
2 parents 5dd8450 + 04b775f commit d0b3f36
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions binderhub-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
- name: secret
secret:
secretName: {{ include "binderhub-service.binderhub.fullname" . }}
{{- with .Values.extraVolumes }}
{{- tpl (. | toYaml) $ | nindent 8 }}
{{- end }}
containers:
- name: binderhub
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand All @@ -38,6 +41,9 @@ spec:
- name: secret
mountPath: /etc/binderhub/mounted-secret/
readOnly: true
{{- with .Values.extraVolumeMounts }}
{{- tpl (. | toYaml) $ | nindent 12 }}
{{- end }}
env:
- name: PUSH_SECRET_NAME
value: {{ include "binderhub-service.build-pods-docker-config.fullname" . }}
Expand Down
4 changes: 4 additions & 0 deletions binderhub-service/values.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ properties:
type: string
extraEnv:
type: array
extraVolumes:
type: array
extraVolumeMounts:
type: array

replicas:
type: integer
Expand Down

0 comments on commit d0b3f36

Please sign in to comment.