evictions

package
v0.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 12 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodEvictor added in v0.18.0

type PodEvictor struct {
	// contains filtered or unexported fields
}

func NewPodEvictor added in v0.18.0

func NewPodEvictor(
	client clientset.Interface,
	policyGroupVersion string,
	dryRun bool,
	maxPodsToEvict int,
	nodes []*v1.Node,
) *PodEvictor

func (*PodEvictor) EvictPod added in v0.18.0

func (pe *PodEvictor) EvictPod(ctx context.Context, pod *v1.Pod, node *v1.Node) (bool, error)

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 added in v0.18.0

func (pe *PodEvictor) NodeEvicted(node *v1.Node) int

NodeEvicted gives a number of pods evicted for node

func (*PodEvictor) TotalEvicted added in v0.18.0

func (pe *PodEvictor) TotalEvicted() int

TotalEvicted gives a number of pods evicted through all nodes

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL