Documentation ¶
Index ¶
Constants ¶
View Source
const ( // UnableToRunOnPreviousNodeReason represents the reason of event that we // cannot schedule the new pod of component member to its previous node. UnableToRunOnPreviousNodeReason = "UnableToRunOnPreviousNode" )
Variables ¶
This section is empty.
Functions ¶
func GetNodeNames ¶ added in v1.0.0
Types ¶
type Predicate ¶
type Predicate interface { // Name return the predicate name Name() string // Filter function receives a set of nodes and returns a set of candidate nodes. Filter(string, *apiv1.Pod, []apiv1.Node) ([]apiv1.Node, error) }
Predicate is an interface as extender-implemented predicate functions
func NewHA ¶
func NewHA(kubeCli kubernetes.Interface, cli versioned.Interface, recorder record.EventRecorder) Predicate
NewHA returns a Predicate
func NewStableScheduling ¶ added in v1.0.0
func NewStableScheduling(kubeCli kubernetes.Interface, cli versioned.Interface, recorder record.EventRecorder) Predicate
NewStableScheduling returns a Predicate
Click to show internal directories.
Click to hide internal directories.