kubernetes-sigs / descheduler

Descheduler for Kubernetes
https://sigs.k8s.io/descheduler
Apache License 2.0
4.23k stars 645 forks source link

PodEvictor: refactoring and preparation for eviction requests #1447

Closed ingvagabund closed 6 days ago

ingvagabund commented 1 week ago

Drop nodes parameter from NewPodEvictor and set up the pod evictor only once for all descheduling cycles. While resetting the inner counters at the end of each descheduling cycle.

This is a pre-requisite for implementing eviction requests (https://github.com/kubernetes-sigs/descheduler/issues/1397).

ingvagabund commented 1 week ago

level=error msg="Timeout exceeded: try increasing it by passing --timeout option"

/retest-required

knelasevero commented 6 days ago

/lgtm

k8s-ci-robot commented 6 days ago

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

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: - **[OWNERS](https://github.com/kubernetes-sigs/descheduler/blob/master/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment