-
Notifications
You must be signed in to change notification settings - Fork 147
fix: check nodeclass before controller start #1088
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
base: main
Are you sure you want to change the base?
Conversation
Title(Describe updated until commit 7f41dbe)Enhance nodeclass check and validate CLOUD_PROVIDER Description
Changes walkthrough 📝
|
PR Reviewer Guide 🔍(Review updated until commit 7f41dbe)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 7f41dbe
Previous suggestionsSuggestions up to commit 7f41dbe
|
|
The old code was trying to avoid a case where user deletes the nodeclass accidentally. Since we are not adding nodeclass watcher, if we don't check nodeclass every time before creating a node and user deletes the nodeclass, the only remediation is to ask the user to delete the controller manually to force it to restart. So ideally, we may need to add a separate controller for nodeclass only to strictly recover it whenever it is deleted. My thought right now is that the churn rate of creating nodeclaim by workspace controller is low. Hence, the overhead of performing a nodeclass check before creating every nodeclaim is low. I would suggest leaving current behavior unchanged. It is fair to add a TODO to optimize this behavior later. |
Reason for Change:
Check
nodeclassbefore controller start, rather than check before creatingnodeclaim.In this way there is no need to add a nodeclass informer #1069
Requirements
Issue Fixed:
Notes for Reviewers: