Documentation ¶
Index ¶
- func NewProfile(config api.DeschedulerProfile, reg pluginregistry.Registry, opts ...Option) (*profileImpl, error)
- type Option
- func WithClientSet(clientSet clientset.Interface) Option
- func WithGetPodsAssignedToNodeFnc(getPodsAssignedToNodeFunc podutil.GetPodsAssignedToNodeFunc) Option
- func WithMetricsCollector(metricsCollector *metricscollector.MetricsCollector) Option
- func WithPodEvictor(podEvictor *evictions.PodEvictor) Option
- func WithSharedInformerFactory(sharedInformerFactory informers.SharedInformerFactory) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProfile ¶
func NewProfile(config api.DeschedulerProfile, reg pluginregistry.Registry, opts ...Option) (*profileImpl, error)
Types ¶
type Option ¶
type Option func(*handleImplOpts)
Option for the handleImpl.
func WithClientSet ¶
WithClientSet sets clientSet for the scheduling frameworkImpl.
func WithGetPodsAssignedToNodeFnc ¶
func WithGetPodsAssignedToNodeFnc(getPodsAssignedToNodeFunc podutil.GetPodsAssignedToNodeFunc) Option
func WithMetricsCollector ¶ added in v0.32.0
func WithMetricsCollector(metricsCollector *metricscollector.MetricsCollector) Option
func WithPodEvictor ¶
func WithPodEvictor(podEvictor *evictions.PodEvictor) Option
func WithSharedInformerFactory ¶
func WithSharedInformerFactory(sharedInformerFactory informers.SharedInformerFactory) Option
Click to show internal directories.
Click to hide internal directories.