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.
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
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)