-
Notifications
You must be signed in to change notification settings - Fork 34
Add SchedulerHints to server controller #632
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
Add SchedulerHints to server controller NOTE! this change MOVED the ServerGroupRef inside the ServerSchedulerHints
winiciusallan
left a comment
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.
Looks good overall! Great job! Just a few comments. Let me know what you think.
| // able to host the server. | ||
| // +kubebuilder:validation:MaxLength:=1024 | ||
| // +optional | ||
| Query *string `json:"query,omitempty"` |
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.
I believe we don't need this pointer, since the zero-value isn't useful here. What do you think?
| // targetCell is a cell name where the server will be placed. | ||
| // +kubebuilder:validation:MaxLength:=255 | ||
| // +optional | ||
| TargetCell *string `json:"targetCell,omitempty"` |
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.
Same for this pointer.
| // buildNearHostIP specifies a subnet of compute nodes to host the server. | ||
| // +kubebuilder:validation:MaxLength:=255 | ||
| // +optional | ||
| BuildNearHostIP *string `json:"buildNearHostIP,omitempty"` |
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.
And this one too.
| schedulerHints: | ||
| serverGroupRef: server-create-full |
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.
I would add all the available fields for SchedulerHints that you've implemented on this test case, so we can test all working together.
Add schedulerHints field with support for:
NOTE! this change MOVED the ServerGroupRef inside the ServerSchedulerHints