Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalancePlugin ¶
type DeschedulePlugin ¶
type EvictOptions ¶
type EvictOptions struct { // PluginName represents the initiator of the eviction operation PluginName string // Reason allows for passing details about the specific eviction for logging. Reason string // DeleteOptions holds the arguments used to delete DeleteOptions *metav1.DeleteOptions }
EvictOptions provides a handle for passing additional info to EvictPod
type GetPodsAssignedToNodeFunc ¶
type GetPodsAssignedToNodeFunc func(string, FilterFunc) ([]*corev1.Pod, error)
GetPodsAssignedToNodeFunc is a function which accept a node name and a pod filter function as input and returns the pods that assigned to the node.
type Handle ¶
type Handle interface { PluginsRunner // ClientSet returns a kubernetes clientSet. ClientSet() clientset.Interface // KubeConfig returns the raw kube config. KubeConfig() *restclient.Config // EventRecorder returns an event recorder. EventRecorder() events.EventRecorder Evictor() Evictor GetPodsAssignedToNodeFunc() GetPodsAssignedToNodeFunc }
type Plugin ¶
type Plugin interface {
Name() string
}
Plugin is the parent type for all the descheduling framework plugins.
type PluginsRunner ¶
Click to show internal directories.
Click to hide internal directories.