Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvictOptions ¶ added in v0.25.0
type EvictOptions struct { // Reason allows for passing details about the specific eviction for logging. Reason string // ProfileName allows for passing details about profile for observability. ProfileName string // StrategyName allows for passing details about strategy for observability. StrategyName string }
EvictOptions provides a handle for passing additional info to EvictPod
type PodEvictor ¶ added in v0.18.0
type PodEvictor struct {
// contains filtered or unexported fields
}
func NewPodEvictor ¶ added in v0.18.0
func (*PodEvictor) EvictPod ¶ added in v0.18.0
func (pe *PodEvictor) EvictPod(ctx context.Context, pod *v1.Pod, opts EvictOptions) bool
EvictPod evicts a pod while exercising eviction limits. Returns 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) uint
NodeEvicted gives a number of pods evicted for node
func (*PodEvictor) NodeLimitExceeded ¶ added in v0.25.0
func (pe *PodEvictor) NodeLimitExceeded(node *v1.Node) bool
NodeLimitExceeded checks if the number of evictions for a node was exceeded
func (*PodEvictor) TotalEvicted ¶ added in v0.18.0
func (pe *PodEvictor) TotalEvicted() uint
TotalEvicted gives a number of pods evicted through all nodes
Click to show internal directories.
Click to hide internal directories.