Documentation ¶
Index ¶
- Constants
- func NewPDBChecker(_ runtime.Object, handle handle.PodFrameworkHandle) (framework.Plugin, error)
- type PDBChecker
- func (pdb *PDBChecker) ClusterPrePreempting(_ *v1.Pod, state, commonState *framework.CycleState) *framework.Status
- func (pdb *PDBChecker) Name() string
- func (pdb *PDBChecker) NodePostPreempting(_ *v1.Pod, victims []*v1.Pod, _, _ *framework.CycleState) *framework.Status
- func (pdb *PDBChecker) NodePrePreempting(_ *v1.Pod, _ framework.NodeInfo, state, preemptionState *framework.CycleState) *framework.Status
- func (pdb *PDBChecker) PostVictimSearching(_ *v1.Pod, podInfo *framework.PodInfo, ...) *framework.Status
- func (pdb *PDBChecker) VictimSearching(_ *v1.Pod, podInfo *framework.PodInfo, ...) (framework.Code, string)
- type PDBCommonState
- type PDBPreemptionState
Constants ¶
View Source
const ( PDBCheckerName = "PDBChecker" SearchingPDBCheckKey = "Searching-" + PDBCheckerName )
Variables ¶
This section is empty.
Functions ¶
func NewPDBChecker ¶
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 (s *PDBPreemptionState) Clone() framework.StateData
func (*PDBPreemptionState) GetPDBsAllowed ¶
func (s *PDBPreemptionState) GetPDBsAllowed() []int32
Click to show internal directories.
Click to hide internal directories.