Skip to content

Commit

Permalink
add option to set subdir on the PVC volume mount for Connect and Work…
Browse files Browse the repository at this point in the history
…bench
  • Loading branch information
colearendt committed Aug 7, 2023
1 parent 02aa7f6 commit 9bfce10
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/rstudio-connect/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ spec:
{{- if or .Values.sharedStorage.create .Values.sharedStorage.mount }}
- name: rstudio-connect-data
mountPath: "{{ .Values.sharedStorage.path }}"
{{- if .Values.sharedStorage.subPath }}
subPath: "{{ .Values.sharedStorage.subPath }}"
{{- end }}
{{- end }}
{{ include "rstudio-library.license-mount" (dict "license" ( .Values.license )) | indent 10 }}
{{- if .Values.pod.volumeMounts }}
Expand Down
2 changes: 2 additions & 0 deletions charts/rstudio-connect/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ sharedStorage:
selector: {}
# -- the volumeName passed along to the persistentVolumeClaim. Optional
volumeName: ""
# -- an optional subPath for the volume mount
subPath: ""

rbac:
# -- Whether to create rbac. (also depends on launcher.enabled = true)
Expand Down
3 changes: 3 additions & 0 deletions charts/rstudio-workbench/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ containers:
{{- if or .Values.homeStorage.create .Values.homeStorage.mount }}
- name: rstudio-home-storage
mountPath: "{{ .Values.homeStorage.path }}"
{{- if .Values.homeStorage.subPath }}
subPath: "{{ .Values.homeStorage.subPath }}"
{{- end }}
{{- end }}
- name: rstudio-prestart
mountPath: "/scripts/"
Expand Down
2 changes: 2 additions & 0 deletions charts/rstudio-workbench/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ homeStorage:
selector: {}
# -- the volumeName passed along to the persistentVolumeClaim. Optional
volumeName: ""
# -- an optional subPath for the volume mount
subPath: ""

image:
# -- the repository to use for the main pod image
Expand Down

0 comments on commit 9bfce10

Please sign in to comment.