evictor

package
v0.5.14 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PercentageEvictor

type PercentageEvictor interface {
	Evict(ctx context.Context, targetPercent int)
}

PercentageEvictor is the interface used in advisor policy

func NewPowerLoadEvict

func NewPowerLoadEvict(qosConfig *generic.QoSConfiguration,
	podFetcher pod.PodFetcher,
	podEvictor PodEvictor,
) PercentageEvictor

type PodEvictor

type PodEvictor interface {
	Init() error
	Start() error
	Stop() error
	Evict(ctx context.Context, pods []*v1.Pod) error
}

PodEvictor is the adapter interface for underlying eviction mechanism

func NewNoopPodEvictor

func NewNoopPodEvictor() PodEvictor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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