pdbchecker

package
v0.0.0-...-e2cac0c Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PDBCheckerName       = "PDBChecker"
	SearchingPDBCheckKey = "Searching-" + PDBCheckerName
)

Variables

This section is empty.

Functions

func NewPDBChecker

func NewPDBChecker(_ runtime.Object, handle handle.PodFrameworkHandle) (framework.Plugin, error)

New initializes a new plugin and returns it.

Types

type PDBChecker

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

func (*PDBChecker) ClusterPrePreempting

func (pdb *PDBChecker) ClusterPrePreempting(_ *v1.Pod, state, commonState *framework.CycleState) *framework.Status

func (*PDBChecker) Name

func (pdb *PDBChecker) Name() string

func (*PDBChecker) NodePostPreempting

func (pdb *PDBChecker) NodePostPreempting(_ *v1.Pod, victims []*v1.Pod, _, _ *framework.CycleState) *framework.Status

func (*PDBChecker) NodePrePreempting

func (pdb *PDBChecker) NodePrePreempting(_ *v1.Pod, _ framework.NodeInfo, state, preemptionState *framework.CycleState) *framework.Status

func (*PDBChecker) PostVictimSearching

func (pdb *PDBChecker) PostVictimSearching(_ *v1.Pod, podInfo *framework.PodInfo, state, preemptionState *framework.CycleState, victimState *framework.VictimState) *framework.Status

func (*PDBChecker) VictimSearching

func (pdb *PDBChecker) VictimSearching(_ *v1.Pod, podInfo *framework.PodInfo, state, preemptionState *framework.CycleState, victimState *framework.VictimState) (framework.Code, string)

type PDBCommonState

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

func GetPDBCommonState

func GetPDBCommonState(commonState *framework.CycleState) (*PDBCommonState, bool, error)

func (*PDBCommonState) Clone

func (s *PDBCommonState) Clone() framework.StateData

func (*PDBCommonState) GetPDBItems

func (s *PDBCommonState) GetPDBItems() []framework.PDBItem

func (*PDBCommonState) GetPDBsAllowed

func (s *PDBCommonState) GetPDBsAllowed() []int32

type PDBPreemptionState

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

func (*PDBPreemptionState) Clone

func (*PDBPreemptionState) GetPDBsAllowed

func (s *PDBPreemptionState) GetPDBsAllowed() []int32

Jump to

Keyboard shortcuts

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