Skip to content

Conversation

@aaronfern
Copy link
Member

What this PR does / why we need it:
We sometimes have a case where the PreferNoSchedule taint can remain indefinitely on nodes if we backtrack on a rolling update
This PR adds a check to remove this taint from nodes after a rolling update is complete

Which issue(s) this PR fixes:
Fixes #989

Special notes for your reviewer:

Release note:

NONE

@aaronfern aaronfern requested a review from a team as a code owner June 2, 2025 12:21
@aaronfern aaronfern marked this pull request as draft June 2, 2025 12:21
@gardener-robot gardener-robot added the needs/review Needs review label Jun 2, 2025
@ghost ghost added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jun 2, 2025
@gardener-robot gardener-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 2, 2025
@ghost ghost added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Jun 2, 2025
@aaronfern aaronfern marked this pull request as ready for review June 2, 2025 14:48
@ghost ghost added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jul 28, 2025
Effect: "PreferNoSchedule",
},
); err != nil {
klog.Warningf("Failed to remove taint %s from all nodes. Error: %s", PreferNoScheduleKey, err)
Copy link
Contributor

@r4mek r4mek Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can quickly requeue the MachineDeployment in case taint removal fails.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made the requested changed as part of 8c83634

@gardener-robot gardener-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 12, 2025
@gardener-robot gardener-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 12, 2025
@gardener-robot gardener-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. needs/second-opinion Needs second review by someone else and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 12, 2025
@aaronfern aaronfern requested review from gagan16k and r4mek December 12, 2025 12:48
@gardener-robot gardener-robot added reviewed/lgtm Has approval for merging and removed needs/review Needs review needs/second-opinion Needs second review by someone else labels Dec 15, 2025
@aaronfern aaronfern merged commit 3c002c1 into gardener:master Dec 15, 2025
12 checks passed
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Dec 15, 2025
thiyyakat pushed a commit to thiyyakat/machine-controller-manager that referenced this pull request Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) reviewed/lgtm Has approval for merging reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. status/closed Issue is closed (either delivered or triaged)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

prefer-no-schedule taint sticks forever if oldMS --> newMS --> oldMS

5 participants