Skip to content

Add user cleanup hooks - #259

Draft
marcelovilla wants to merge 2 commits into
mainfrom
feat/user-cleanup-hooks
Draft

marcelovilla wants to merge 2 commits into
mainfrom
feat/user-cleanup-hooks

Conversation

@marcelovilla

Copy link
Copy Markdown
Member

Closes

This is part of nebari-dev/nebari-infrastructure-core#668 and a companion of both nebari-dev/nebari-infrastructure-core#673 and nebari-dev/nebari-operator#188

Description

This PR adds a new template with two UserCleanupHook resources and a ServiceAccount and required permissions to run them. The two hooks are:

  • disable: runs immeditealy after a user has been deleted on Keycloak, stopping any running Jupyterlab server the user might have.
  • delete: runs after a pre-configured grace period, deleting the user record from the hub database and deleting their PVCs.

I'm opening this as a draft PR without any expectations of this to be merged at this time. It is rather part of the PoC I'm building for nebari-dev/nebari-infrastructure-core#668.

This branch has not been deployed

No deployments
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.

1 participant