Open
Description
Remaining bits:
- create https://github.com/kubernetes-sigs/scheduler-plugins/blob/master/cmd/scheduler/main.go#L48-L63 like interface for users to easily register custom plugins and register the built-in plugins in https://github.com/kubernetes-sigs/descheduler/blob/master/cmd/descheduler/descheduler.go#L34
- simplify
pluginregistry.Register
in https://github.com/kubernetes-sigs/descheduler/blob/master/pkg/descheduler/setupplugins.go#L39C2-L49 to pass less arguments - move creation of the cachedClient in https://github.com/kubernetes-sigs/descheduler/blob/master/pkg/descheduler/descheduler.go#L123-L144 outside of
descheduler
. So it can be replaced with a generic way of populating the fake clientset cache. I was thinking of some hooks since the cachedClient is recreated in every descheduling loop (and rewritting internalsharedInformerFactory
). - switching to v1alpha2 by default
- ...