-
Notifications
You must be signed in to change notification settings - Fork 299
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
Drop PreferNoSchedule from supported effects in ResourceFlavor nodeTaints #4258
base: main
Are you sure you want to change the base?
Drop PreferNoSchedule from supported effects in ResourceFlavor nodeTaints #4258
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tenzen-y The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Deploy Preview for kubernetes-sigs-kueue ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…ints Signed-off-by: Yuki Iwai <[email protected]>
7a547cc
to
44e6199
Compare
@@ -72,7 +72,7 @@ type ResourceFlavorSpec struct { | |||
// +optional | |||
// +listType=atomic | |||
// +kubebuilder:validation:MaxItems=8 | |||
// +kubebuilder:validation:XValidation:rule="self.all(x, x.effect in ['NoSchedule', 'PreferNoSchedule', 'NoExecute'])", message="supported taint effect values: 'NoSchedule', 'PreferNoSchedule', 'NoExecute'" | |||
// +kubebuilder:validation:XValidation:rule="self.all(x, x.effect in ['NoSchedule', 'NoExecute'])", message="supported taint effect values: 'NoSchedule' and 'NoExecute'" |
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.
Indeed, setting PreferNoSchedule
is no-op in Kueue, but I imagine people may have some third party controllers which read the nodes (as TAS does) and transform them into the resource flavors. Then, such a controller would need to have a custom logic not to set this value.
I'm not sure people write such controllers already, but maybe it is enough to document that PreferNoSchedule is no-op from Kueue perspective? WDYT?
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.
Uhm, good point.
Additionally, I could imagine the situation where they already accidentally deployed RF with PreferNoSchedule
effect. In that case, the removal of such RF will fail since kueue will fail to drop in-use
finalizer.
Let me convert this PR to just add API comments.
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.
/hold
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
As I described in #4257, cluster admins can specify the nodeTaints with
effect=PreferNoSchedule
in ResourceFlavor, but the flavorassigner never respect the taints.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?