Bug description
If a shared dynamically created PVC is used and a JupyterHub user is deleted KubeSpawner will incorrectly delete the shared PVC.
How to reproduce
Use this Z2JH singleuser.storage config with the latest release 4.1.0
singleuser:
storage:
dynamic:
storageClass: nfs
pvcNameTemplate: claim-jupyter
subPath: "{user_server}"
This is not a typical configuration since Z2JH's PVC support is used purely for convenience to create just a single shared PVC. However it's possible to conceive of other semi-static pvcNameTemplate, for example you could use profileList with kubespawner_overrides to set pvcNameTemplate=<profilename> to have a shared volume across multiple users.
Expected behaviour
PVC should not be deleted
Actual behaviour
It's deleted- though in practice it may get stuck because of the subPaths
Your personal set up
Full environment
# paste output of `pip freeze` or `conda list` here
Configuration
Logs
Bug description
If a shared dynamically created PVC is used and a JupyterHub user is deleted KubeSpawner will incorrectly delete the shared PVC.
How to reproduce
Use this Z2JH
singleuser.storage configwith the latest release 4.1.0This is not a typical configuration since Z2JH's PVC support is used purely for convenience to create just a single shared PVC. However it's possible to conceive of other semi-static
pvcNameTemplate, for example you could useprofileListwithkubespawner_overridesto setpvcNameTemplate=<profilename>to have a shared volume across multiple users.Expected behaviour
PVC should not be deleted
Actual behaviour
It's deleted- though in practice it may get stuck because of the subPaths
Your personal set up
Full environment
Configuration
# jupyterhub_config.pyLogs