Skip to content

Skip eviction in case when the Node is NotReady#2002

Merged
kubermatic-bot merged 2 commits into
kubermatic:mainfrom
kron4eg:not-ready-eviction
Jun 29, 2026
Merged

Skip eviction in case when the Node is NotReady#2002
kubermatic-bot merged 2 commits into
kubermatic:mainfrom
kron4eg:not-ready-eviction

Conversation

@kron4eg

@kron4eg kron4eg commented Feb 27, 2026

Copy link
Copy Markdown
Member

What this PR does / why we need it:
When the Node is in NotReady condition, it's useless to try to drain it, causes endless loop of drain retrying of half-dead Node.

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

What type of PR is this?
/kind bug
Special notes for your reviewer:

Does this PR introduce a user-facing change? Then add your Release Note here:

Skip eviction in case when the Node is NotReady

Documentation:

NONE

@kubermatic-bot kubermatic-bot added kind/bug Categorizes issue or PR as related to a bug. release-note Denotes a PR that will be considered when it comes time to generate release notes. docs/none Denotes a PR that doesn't need documentation (changes). dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. sig/cluster-management Denotes a PR or issue as being assigned to SIG Cluster Management. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 27, 2026
@kron4eg kron4eg marked this pull request as draft February 27, 2026 13:49
@kubermatic-bot kubermatic-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 27, 2026
@kubermatic-bot

Copy link
Copy Markdown
Contributor

Issues go stale after 90d of inactivity.
After a furter 30 days, they will turn rotten.
Mark the issue as fresh with /remove-lifecycle stale.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@kubermatic-bot kubermatic-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 28, 2026
@kubermatic-bot

Copy link
Copy Markdown
Contributor

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

/lifecycle rotten

@kubermatic-bot kubermatic-bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jun 28, 2026
@kron4eg kron4eg removed the lifecycle/rotten Denotes an issue or PR that has aged beyond stale. label Jun 29, 2026
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
@kron4eg kron4eg force-pushed the not-ready-eviction branch from db2723b to e6d5724 Compare June 29, 2026 08:47
@kron4eg kron4eg marked this pull request as ready for review June 29, 2026 08:47
@kubermatic-bot kubermatic-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 29, 2026
Signed-off-by: Artiom Diomin <artiom@kubermatic.com>
@kubermatic-bot kubermatic-bot 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 Jun 29, 2026

@ahmedwaleedmalik ahmedwaleedmalik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/approve

@kubermatic-bot kubermatic-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 29, 2026
@kubermatic-bot

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 15c70b08853ea6cbdf307c4310143b774c8f7838

@kubermatic-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahmedwaleedmalik

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubermatic-bot kubermatic-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 29, 2026
@kubermatic-bot kubermatic-bot merged commit f6cf012 into kubermatic:main Jun 29, 2026
12 checks passed
@kron4eg kron4eg deleted the not-ready-eviction branch June 29, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. docs/none Denotes a PR that doesn't need documentation (changes). kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cluster-management Denotes a PR or issue as being assigned to SIG Cluster Management. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't try to drain NotReady nodes

3 participants