Skip to content
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

add method and test to delete namespaced PVC in spawner base class #503

Closed

Conversation

nsshah1288
Copy link
Contributor

### PR Summary by Erik

This PR implements a delete_forever hook for KubeSpawner. The delete_forever hook will be respected by JupyterHub 1.4.0 and later and was implemented in jupyterhub/jupyterhub#3337. The idea of this hook is to allow the Spawners to perform cleanup of a users associated resources at the time a JupyterHub user is deleted.

As KubeSpawner can create PVCs for users, this KubeSpawner implementation checks for a PVC that it could have created for a user and tries to delete it. This behavior should be documented properly in the CHANGELOG.md for the next KubeSpawner release, I'm not sure if I think it would be labelled as a "breaking" change, but it is a change in the user experience that is quite important to be aware about.

This PR closes #446.

@nsshah1288 nsshah1288 closed this May 4, 2021
@nsshah1288 nsshah1288 deleted the feature/shahn3_pvcDeletion3 branch May 4, 2021 22:38
@nsshah1288
Copy link
Contributor Author

Please disregard this PR. I apologize for making this PR which has the wrong content.

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.

Deleting named servers should delete the corresponding PVC
1 participant