Skip to content

Fix eviction controller evicts volume on VPA eviction#145

Merged
Gerrit91 merged 5 commits intomasterfrom
debug-eviction
Jan 14, 2026
Merged

Fix eviction controller evicts volume on VPA eviction#145
Gerrit91 merged 5 commits intomasterfrom
debug-eviction

Conversation

@Gerrit91
Copy link
Contributor

@Gerrit91 Gerrit91 commented Jan 13, 2026

Description

Closes #144.

The check if a node is unschedulable is now always executed. Before this, it was only executed when the pod unscheduled condition was true, which is not the case on VPA eviction. As long as the node is present and schedulable, we do not need to delete a PeristentVolumeClaim.

I also included the scenario that the node object was already deleted. In this case, we also delete the PVC.

@Gerrit91 Gerrit91 changed the title Debug why eviction happens on Gardener. Fix eviction controller evicts volume on VPA eviction Jan 14, 2026
@Gerrit91 Gerrit91 marked this pull request as ready for review January 14, 2026 13:56
@Gerrit91 Gerrit91 requested a review from a team as a code owner January 14, 2026 13:56
@Gerrit91 Gerrit91 requested a review from ostempel January 14, 2026 13:56
Copy link
Contributor

@ostempel ostempel left a comment

Choose a reason for hiding this comment

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

lgtm

@Gerrit91 Gerrit91 merged commit 956cdb0 into master Jan 14, 2026
6 checks passed
@Gerrit91 Gerrit91 deleted the debug-eviction branch January 14, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Eviction controller also evicts volumes on VPA evictions

2 participants