singleuser PVC deletion when the helm chart is uninstalled #432
Labels
label selector
Issues about replacing hardcoded component label as a selector for Pod / PVCs
resource cleanup
Hey guys, first of all, thank you for maintaining a great project.
I'm using jupyterhub with helm chart and when I spawn a single user notebook by jupyterhub, I usually mount a volume(ex. EBS, EFS etc..) with notebook.
However when I delete the hub, since the spawned notebook is not managed by helm chart - no labels, no annotations related to the chart - so the mounted PVC remains released while the hub is gone. There's extraLabel option on singleuser storage but usually labels are created with helper template, we cannot refer those labels within values.yaml.
I'm not sure this spec is related to kubespawner or not, but I want to suggest kubespawner to pass the helm related labels to singleuser spawned resources like notebook mounted storage, or notebook itself.
Thanks in advance.
Proposed change
Delete every notebook-mounted PVC when a jupyterhub is uninstalled.
Alternative options
Who would use this feature?
(Optional): Suggest a solution
The text was updated successfully, but these errors were encountered: