Skip to content

Commit

Permalink
Merge pull request #64 from kojderszymon/fix-1
Browse files Browse the repository at this point in the history
Add existingPersistence
  • Loading branch information
cgiraldo authored Sep 19, 2022
2 parents 6555df5 + 8e8d230 commit 99b9e66
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/jupyter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ name: jupyter
sources:
- https://github.com/gradiant/charts
- "https://github.com/astrobounce/helm-jupyter"
version: 0.1.8
version: 0.1.9

8 changes: 7 additions & 1 deletion charts/jupyter/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,15 @@ spec:
{{- end }}
{{- end }}
{{- if not .Values.persistence.enabled }}
{{- if .Values.existingPersistence.enabled }}
- name: jupyter
persistentVolumeName:
claimName: {{ .Values.existingPersistence.claimName }}
{{- else }}
- name: jupyter
emptyDir: {}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.persistence.enabled }}
volumeClaimTemplates:
- metadata:
Expand Down
6 changes: 5 additions & 1 deletion charts/jupyter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,4 +294,8 @@ persistence:
enabled: true
storageClass:
accessMode: ReadWriteOnce
size: 50Gi
size: 50Gi

existingPersistence:
enabled: false
claimName: ""

0 comments on commit 99b9e66

Please sign in to comment.