openshift-kni / scheduler-plugins

Repository for out-of-tree scheduler plugins based on scheduler framework.
Apache License 2.0
1 stars 4 forks source link

[KNI][release-4.14] nrt: cache: add support for dedicated informer #223

Closed ffromani closed 2 months ago

ffromani commented 2 months ago

Revert the KNI-specific support for dedicated informer, and use upstream one.

Add an option to create and use a separate informer to get unfiltered pod listing from the apiserver.

Due to mismatched view with respect to the kubelet, the plugin needs access to pod in terminal phase which are not deleted to make sure the reconciliation is done correctly.

xref: https://github.com/kubernetes-sigs/scheduler-plugins/issues/598 xref: https://github.com/kubernetes/kubernetes/issues/119423

Signed-off-by: Francesco Romani fromani@redhat.com (cherry picked from commit https://github.com/openshift-kni/scheduler-plugins/commit/e466bc41e31315ca9f9391c8752dc7eae42b4599)

openshift-ci[bot] commented 2 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ffromani

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: - ~~[DOWNSTREAM_OWNERS](https://github.com/openshift-kni/scheduler-plugins/blob/release-4.14/DOWNSTREAM_OWNERS)~~ [ffromani] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment