Conversation
…b volumeMounts of that volume
…to-job-volumeMounts
Contributor
Author
|
Ran this locally and confirmed that it works as expected sharedStorage:
name: connect-dev-data-pvc
storageClassName: manual
create: true
mount: true
mountContent: true
path: /var/lib/rstudio-connect
subPath: connect-data
launcher:
enabled: true
useTemplates: true
templateValues:
pod:
imagePullPolicy: "Always"
sharedStorage:
name: connect-dev-data-pvc
subPath: connect-data |
edavidaja
approved these changes
Feb 11, 2026
Contributor
Author
|
That failure was the prepull-daemonset chart so I'm going to ignore it and merge this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When
launcher.enabled, and whensharedStorage.subPathis non-empty, launcher-managed job pod volumeMounts did not prepend that subPath to their job-specific volumeMounts, which had the effect of mounting them higher on the shared storage volume than intended, which caused the job pods to quit immediately when they could not find expected files.This change ensures that when
sharedStorage.subPathis non-empty, it is prepended to the job-specific subPaths of the launcher-managed job pod volumeMounts.Tested by deploying the chart with clean shared storage volume and fresh database, and then adding a few gallery examples via the web UI, which we could then open and interact with.
fixes #759
Details:
The default values file now prepares an empty value at
.Values.launcher.templateValues.sharesStorage.subPath.https://github.com/FairwindsOps/rstudio-helm/blob/e8ea3daea13f5b1e6ab9ec579d997b1b0a9c2fac/charts/rstudio-connect/values.yaml#L381-L382
The configmap template now pushes
.Values.sharedStorage.subPathinto the$sessionTemplateforjob.tplto pick up.https://github.com/FairwindsOps/rstudio-helm/blob/e8ea3daea13f5b1e6ab9ec579d997b1b0a9c2fac/charts/rstudio-connect/templates/configmap.yaml#L60-L63
The job template now looks for the
subPathkey of.Job.volumeMountsitems and prepends$templateData.sharedStorage.subPathto its value if non-empty.https://github.com/FairwindsOps/rstudio-helm/blob/e8ea3daea13f5b1e6ab9ec579d997b1b0a9c2fac/charts/rstudio-connect/files/job.tpl#L285-L293