-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
Move node affinity from annotations to api fields #35518
Comments
Can we move this discussion to #25319 ? BTW I didn't fully understand your proposal. It sounds like you are proposing to remove the alpha annotations before any replacement is available. If so, that seems bad. I'm also unsure about not giving people one version where we support both alpha and beta, so that they have a chance to migrate. |
I'm proposing a 2 step process for the migration. Step 1 is to change from annotations to api fields but keep the feature in alpha. Once we have verified equivalent functionality using api fields that existed using annotations then we can promote from alpha->beta. I'm also suggesting we not attempt to support/maintain compatibility for the annotations version. Part of step 1 should be removing the annotations implementation completely. It's an alpha feature and annotations have issues so lets rip off the band aid. Trying to support both would, imo, be needlessly complicated. |
Just to make sure I understand what you're proposing:
Would you break compatibility twice in this scheme? (Break the people using alpha annotations when you do step 1, and break the people using alpha API field when you do step 3.) It would be better to only break people once. It's still not clear to me why you are concern about going directly from alpha annotation to beta API field? |
I am trying to reduce the number of moving parts. Rather than convert from annotation to api fields and add changes needed to get from alpha->beta, I'm suggesting to separate the two steps. It doesn't necessarily mean each step results in a release with those changes. I'm just suggesting the work be done in 2 steps (ie 2 separate commits or sets of commits). |
Ah OK, yes, that seems reasonable. I thought you wanted separate releases. |
annotations to api fields. kubernetes#35518
annotations to api fields. kubernetes#35518
annotations to api fields. kubernetes#35518
annotations to api fields. kubernetes#35518
Automatic merge from submit-queue (batch tested with PRs 38730, 37299) [scheduling] Moved node affinity from annotations to api fields. #35518 Converted node affinity from annotations to api fields Fixes: #35518 Related: #25319 Related: #34508 **Release note**: ```release-note Node affinity has moved from annotations to api fields in the pod spec. Node affinity that is defined in the annotations will be ignored. ```
annotations to api fields. kubernetes#35518
Moving the node affinity implementation out of annotations and into api fields, and from alpha->beta, should be done piecemeal to ensure functionality and sanity. I would propose a process first porting the implementation/tests before attempting to promote from alpha->beta. Porting would entail:
Once functionality has reached parity with the annotation implement, promote from alpha->beta.
@kubernetes/sig-scheduling
The text was updated successfully, but these errors were encountered: