Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PodEvictor ¶
type PodEvictor struct { *util.UnschedulableCache CheckUnschedulablePods bool sync.RWMutex // contains filtered or unexported fields }
PodEvictor is used for evicting pods
func NewPodEvictor ¶
func NewPodEvictor( client clientset.Interface, policyGroupVersion string, maxPodsToEvict int, nodes []*v1.Node, unschedulableCache *util.UnschedulableCache) *PodEvictor
NewPodEvictor init a new evictor
func (*PodEvictor) EvictPod ¶
EvictPod returns non-nil error only when evicting a pod on a node is not possible (due to maxPodsToEvict constraint). Success is true when the pod is evicted on the server side.
func (*PodEvictor) NodeEvicted ¶
func (pe *PodEvictor) NodeEvicted(node *v1.Node) int
NodeEvicted gives a number of pods evicted for node
func (*PodEvictor) TotalEvicted ¶
func (pe *PodEvictor) TotalEvicted() int
TotalEvicted gives a number of pods evicted through all nodes
Click to show internal directories.
Click to hide internal directories.