-
Notifications
You must be signed in to change notification settings - Fork 33
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
clean up raycluster instances at chart uninstall #698
Conversation
This is quite interesting. Do we want to remove all |
We install and delete the Ray operator that creates and deletes that ray cluster based on the raycluster CRD instances. We don't allow the others to manipulate the instances in the namespace. So I think that it's safe and good to delete all in the namespace. |
But for example, if a user is running an experiment and we make a |
The helm has different hooks for the upgrade. The pre-delete hook is executed only at uninstall. |
@Tansito @akihikokuroda -- where did we land on merging this? |
So far this doesn't get consensus so I can close or I can update to delete the instances only has the label. |
I recall running into issues trying to uninstall and reinstall the Helm chart (for local dev, I usually just kill the cluster and start over if I need to redeploy), so I'd be interested in seeing it merge. |
I'll work to change only remove the labeled instance. @Tansito What do you think? |
Signed-off-by: Akihiko Kuroda <akihikokuroda2020@gmail.com>
Signed-off-by: Akihiko Kuroda <akihikokuroda2020@gmail.com>
My preference would be to just delete everything -- if we're uninstalling the Helm chart, I would think we want to clean up everything that's out there and not leave any orphans hanging. And if the pre-delete hook only gets called if we uninstall (and not when we upgrade), then I think we should be ok. |
@psschwei OK. The helm chart install / uninstall the CRD so I agree it's OK to delete everything at uninstall. I'll make the change. |
Signed-off-by: Akihiko Kuroda <akihikokuroda2020@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/assign @Tansito
I'm back! As soon as I finish to read everything I will start reviewing this, thanks @akihikokuroda and @psschwei as always ❤️ |
@akihikokuroda pffff sorry, I left some comments |
Signed-off-by: Akihiko Kuroda <akihikokuroda2020@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it's fine for me! Sorry for the confusion 😂
@Tansito NP. Thanks! |
Summary
fix: #695
Details and comments
Add pre-delete hook that deletes all remaining raycluster instances at helm uninstall.