record

package
v0.5.45 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEvictionRecordManagerInitializer

func RegisterEvictionRecordManagerInitializer(name string, initFunc InitFunc)

Types

type Bucket

type Bucket struct {
	Time     int64
	Count    int64
	Duration int64
}

type Buckets

type Buckets struct {
	List []Bucket
}

type DummyEvictionRecordManager

type DummyEvictionRecordManager struct{}

func (*DummyEvictionRecordManager) GetEvictionRecords

func (d *DummyEvictionRecordManager) GetEvictionRecords(_ context.Context, _ []*v1.Pod) (map[string]EvictionRecord, error)

func (*DummyEvictionRecordManager) Run

type EvictionRecord

type EvictionRecord struct {
	HasPDB             bool
	Buckets            Buckets
	DisruptionsAllowed int32
	CurrentHealthy     int32
	DesiredHealthy     int32
	ExpectedPods       int32
}

type EvictionRecordManager

type EvictionRecordManager interface {
	GetEvictionRecords(ctx context.Context, evictionPods []*v1.Pod) (map[string]EvictionRecord, error)
	Run(ctx context.Context)
}

func GetEvictionRecordManager

func GetEvictionRecordManager(name string, options InitOptions) (EvictionRecordManager, error)

type InitFunc

type InitFunc func(InitOptions) (EvictionRecordManager, error)

type InitOptions

type InitOptions struct {
	Conf       *config.Configuration
	MetaServer *metaserver.MetaServer
	Emitter    metrics.MetricEmitter
	ClientSet  *client.GenericClientSet
}

Jump to

Keyboard shortcuts

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