Skip to content

Try defining volumes and volume mounts as dict #6102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

sunu
Copy link
Contributor

@sunu sunu commented May 23, 2025

Trying out suggestions from #6010 (comment)

Haven't tried this out live yet, because I'm having some trouble logging in to the MAAP staging hub.

But if I understand correctly, we will run into issues without upstream changes because of how extraFiles is handled. This expects the KubeSpawner.volumes and KubeSpawner.volume_mounts to be lists. Similarly extraVolumes / extraVolumeMounts handling also expects KubeSpawner.volumes and KubeSpawner.volume_mounts to be lists.

I have tried this out on MAAP staging and it seems to work as expected.

related to NASA-IMPACT/veda-jupyterhub#66

Copy link

github-actions bot commented May 23, 2025

Merging this PR will trigger the following deployment actions.

Support deployments

Cloud Provider Cluster Name Reason for Redeploy
aws catalystproject-africa Support helm chart has been modified
aws reflective Support helm chart has been modified
gcp 2i2c-uk Support helm chart has been modified
gcp climatematch Support helm chart has been modified
aws maap Support helm chart has been modified
gcp leap Support helm chart has been modified
kubeconfig projectpythia-binder Support helm chart has been modified
aws nasa-veda Support helm chart has been modified
gcp catalystproject-latam Support helm chart has been modified
aws nasa-cryo Support helm chart has been modified
aws smithsonian Support helm chart has been modified
aws opensci Support helm chart has been modified
aws victor Support helm chart has been modified
aws earthscope Support helm chart has been modified
gcp hhmi Support helm chart has been modified
aws disasters Support helm chart has been modified
aws nmfs-openscapes Support helm chart has been modified
aws jupyter-health Support helm chart has been modified
aws 2i2c-aws-us Support helm chart has been modified
gcp dubois Support helm chart has been modified
gcp 2i2c Support helm chart has been modified
aws openscapes Support helm chart has been modified
gcp cloudbank Support helm chart has been modified
kubeconfig 2i2c-jetstream2 Support helm chart has been modified
aws nasa-ghg Support helm chart has been modified
aws strudel Support helm chart has been modified
kubeconfig utoronto Support helm chart has been modified
aws projectpythia Support helm chart has been modified
aws ubc-eoas Support helm chart has been modified
gcp awi-ciroh Support helm chart has been modified

Staging deployments

Cloud Provider Cluster Name Hub Name Reason for Redeploy
aws catalystproject-africa staging Core infrastructure has been modified
aws reflective staging Core infrastructure has been modified
gcp 2i2c-uk staging Core infrastructure has been modified
gcp climatematch staging Core infrastructure has been modified
aws maap staging Core infrastructure has been modified
gcp leap staging Core infrastructure has been modified
aws nasa-veda staging Core infrastructure has been modified
gcp catalystproject-latam staging Core infrastructure has been modified
aws nasa-cryo staging Core infrastructure has been modified
aws smithsonian staging Core infrastructure has been modified
aws opensci staging Core infrastructure has been modified
aws victor staging Core infrastructure has been modified
aws earthscope staging Core infrastructure has been modified
gcp hhmi staging Core infrastructure has been modified
aws disasters staging Core infrastructure has been modified
aws nmfs-openscapes staging Core infrastructure has been modified
aws jupyter-health staging Core infrastructure has been modified
aws 2i2c-aws-us staging Core infrastructure has been modified
aws 2i2c-aws-us dask-staging Core infrastructure has been modified
gcp 2i2c staging Core infrastructure has been modified
gcp 2i2c dask-staging Core infrastructure has been modified
gcp 2i2c ucmerced-staging Core infrastructure has been modified
aws openscapes staging Core infrastructure has been modified
gcp cloudbank staging Core infrastructure has been modified
kubeconfig 2i2c-jetstream2 staging Core infrastructure has been modified
aws nasa-ghg staging Core infrastructure has been modified
aws strudel staging Core infrastructure has been modified
kubeconfig utoronto staging Core infrastructure has been modified
kubeconfig utoronto r-staging Core infrastructure has been modified
aws projectpythia staging Core infrastructure has been modified
aws ubc-eoas staging Core infrastructure has been modified
gcp awi-ciroh staging Core infrastructure has been modified

Production deployments

Cloud Provider Cluster Name Hub Name Reason for Redeploy
aws catalystproject-africa nm-aist Core infrastructure has been modified
aws catalystproject-africa must Core infrastructure has been modified
aws catalystproject-africa uvri Core infrastructure has been modified
aws catalystproject-africa wits Core infrastructure has been modified
aws catalystproject-africa kush Core infrastructure has been modified
aws catalystproject-africa molerhealth Core infrastructure has been modified
aws catalystproject-africa aibst Core infrastructure has been modified
aws catalystproject-africa bhki Core infrastructure has been modified
aws catalystproject-africa bon Core infrastructure has been modified
aws reflective prod Core infrastructure has been modified
aws reflective workshop Core infrastructure has been modified
gcp 2i2c-uk lis Core infrastructure has been modified
gcp climatematch prod Core infrastructure has been modified
aws maap prod Core infrastructure has been modified
gcp leap prod Core infrastructure has been modified
gcp leap public Core infrastructure has been modified
kubeconfig projectpythia-binder binderhub Core infrastructure has been modified
aws nasa-veda prod Core infrastructure has been modified
aws nasa-veda binder Core infrastructure has been modified
gcp catalystproject-latam unitefa-conicet Core infrastructure has been modified
gcp catalystproject-latam cicada Core infrastructure has been modified
gcp catalystproject-latam gita Core infrastructure has been modified
gcp catalystproject-latam iner Core infrastructure has been modified
gcp catalystproject-latam plnc Core infrastructure has been modified
gcp catalystproject-latam unam Core infrastructure has been modified
gcp catalystproject-latam cabana Core infrastructure has been modified
gcp catalystproject-latam nnb-ccg Core infrastructure has been modified
gcp catalystproject-latam labi Core infrastructure has been modified
gcp catalystproject-latam areciboc3 Core infrastructure has been modified
gcp catalystproject-latam valledellili Core infrastructure has been modified
aws nasa-cryo prod Core infrastructure has been modified
aws smithsonian prod Core infrastructure has been modified
aws opensci sciencecore Core infrastructure has been modified
aws opensci climaterisk Core infrastructure has been modified
aws opensci small-binder Core infrastructure has been modified
aws opensci big-binder Core infrastructure has been modified
aws victor prod Core infrastructure has been modified
aws earthscope prod Core infrastructure has been modified
aws earthscope binder Core infrastructure has been modified
gcp hhmi prod Core infrastructure has been modified
gcp hhmi spyglass Core infrastructure has been modified
gcp hhmi binder Core infrastructure has been modified
aws disasters prod Core infrastructure has been modified
aws nmfs-openscapes prod Core infrastructure has been modified
aws nmfs-openscapes workshop Core infrastructure has been modified
aws nmfs-openscapes noaa-only Core infrastructure has been modified
aws jupyter-health prod Core infrastructure has been modified
aws 2i2c-aws-us showcase Core infrastructure has been modified
gcp dubois ephemeral Core infrastructure has been modified
gcp 2i2c imagebuilding-demo Core infrastructure has been modified
gcp 2i2c binderhub-ui-demo Core infrastructure has been modified
gcp 2i2c demo Core infrastructure has been modified
gcp 2i2c temple Core infrastructure has been modified
gcp 2i2c ucmerced Core infrastructure has been modified
gcp 2i2c mtu Core infrastructure has been modified
aws openscapes prod Core infrastructure has been modified
aws openscapes workshop Core infrastructure has been modified
gcp cloudbank authoring Core infrastructure has been modified
gcp cloudbank bcc Core infrastructure has been modified
gcp cloudbank ccc Core infrastructure has been modified
gcp cloudbank ccsf Core infrastructure has been modified
gcp cloudbank chabot Core infrastructure has been modified
gcp cloudbank csm Core infrastructure has been modified
gcp cloudbank csueb Core infrastructure has been modified
gcp cloudbank csuf Core infrastructure has been modified
gcp cloudbank csula Core infrastructure has been modified
gcp cloudbank csulb Core infrastructure has been modified
gcp cloudbank csun Core infrastructure has been modified
gcp cloudbank csum Core infrastructure has been modified
gcp cloudbank csumb Core infrastructure has been modified
gcp cloudbank csus Core infrastructure has been modified
gcp cloudbank demo Core infrastructure has been modified
gcp cloudbank dvc Core infrastructure has been modified
gcp cloudbank elac Core infrastructure has been modified
gcp cloudbank elcamino Core infrastructure has been modified
gcp cloudbank evc Core infrastructure has been modified
gcp cloudbank fresno Core infrastructure has been modified
gcp cloudbank foothill Core infrastructure has been modified
gcp cloudbank glendale Core infrastructure has been modified
gcp cloudbank high Core infrastructure has been modified
gcp cloudbank howard Core infrastructure has been modified
gcp cloudbank humboldt Core infrastructure has been modified
gcp cloudbank lacc Core infrastructure has been modified
gcp cloudbank lamission Core infrastructure has been modified
gcp cloudbank laney Core infrastructure has been modified
gcp cloudbank lavc Core infrastructure has been modified
gcp cloudbank lbcc Core infrastructure has been modified
gcp cloudbank mendocino Core infrastructure has been modified
gcp cloudbank merced Core infrastructure has been modified
gcp cloudbank mills Core infrastructure has been modified
gcp cloudbank miracosta Core infrastructure has been modified
gcp cloudbank mission Core infrastructure has been modified
gcp cloudbank moreno Core infrastructure has been modified
gcp cloudbank norco Core infrastructure has been modified
gcp cloudbank palomar Core infrastructure has been modified
gcp cloudbank pasadena Core infrastructure has been modified
gcp cloudbank reedley Core infrastructure has been modified
gcp cloudbank riohondo Core infrastructure has been modified
gcp cloudbank sacramento Core infrastructure has been modified
gcp cloudbank saddleback Core infrastructure has been modified
gcp cloudbank santiago Core infrastructure has been modified
gcp cloudbank sbcc Core infrastructure has been modified
gcp cloudbank sbcc-dev Core infrastructure has been modified
gcp cloudbank sierra Core infrastructure has been modified
gcp cloudbank sjcc Core infrastructure has been modified
gcp cloudbank sjsu Core infrastructure has been modified
gcp cloudbank skyline Core infrastructure has been modified
gcp cloudbank srjc Core infrastructure has been modified
gcp cloudbank tuskegee Core infrastructure has been modified
gcp cloudbank ucsc Core infrastructure has been modified
gcp cloudbank wlac Core infrastructure has been modified
aws nasa-ghg prod Core infrastructure has been modified
aws nasa-ghg binder Core infrastructure has been modified
aws strudel prod Core infrastructure has been modified
kubeconfig utoronto prod Core infrastructure has been modified
kubeconfig utoronto r-prod Core infrastructure has been modified
kubeconfig utoronto highmem Core infrastructure has been modified
aws projectpythia prod Core infrastructure has been modified
aws projectpythia pythia-binder Core infrastructure has been modified
aws ubc-eoas prod Core infrastructure has been modified
gcp awi-ciroh prod Core infrastructure has been modified
gcp awi-ciroh workshop Core infrastructure has been modified

@sunu sunu force-pushed the maap-staging-group-shared-directories-2 branch 2 times, most recently from e218550 to 25eae5a Compare May 27, 2025 11:45
@sunu sunu marked this pull request as ready for review May 27, 2025 11:52
@sunu sunu requested a review from yuvipanda May 27, 2025 11:52
# so that the user can't see the contents of other groups' folders
# that the user is not a member of
name: shared-group-placeholder
mountPath: /home/jovyan/shared-group
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this the best approach to fix visibility of stale group shared folders. Please let me know if there's a better way to do this.

The concern is: If a user previously had a shared group folder mounted (e.g., to /home/jovyan/shared-group/<group-folder>), their underlying home PVC (<home-pvc>/<user>/) might now contain a persistent directory at shared-group/<group-folder> that was created by Kubernetes as a mount point.

Later, if the user is no longer in that group, the specific mount for the actual shared data is removed. However, the shared-group/<group-folder> directory within their personal PVC home will still be visible (as part of the main /home/jovyan mount). This can lead to confusion, showing outdated or empty folders for groups they no longer have access to.

@sunu sunu force-pushed the maap-staging-group-shared-directories-2 branch from 74a6779 to e008806 Compare May 29, 2025 07:09
@sunu
Copy link
Contributor Author

sunu commented May 29, 2025

The test is failing because the jupyterhub chart expects singleuser.storage to be defined as an object but we are intentionally setting it to null.

Edit: I misread that -- singleuser.storage.type can be set as the string none according to the schema

@yuvipanda
Copy link
Member

@sunu hmm, can this be intentionally set to an empty object or something else to test?

@sunu
Copy link
Contributor Author

sunu commented Jun 18, 2025

@yuvipanda yea, my bad, I misread the schema. singleuser.storage.type can be set as none as a string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants