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 CollectEvents ¶ added in v1.0.6
func GetNodeNames ¶ added in v1.0.0
Types ¶
type FakePredicate ¶ added in v1.1.0
func NewFakePredicate ¶ added in v1.1.0
func NewFakePredicate(name string, nodes []v1.Node, err error) *FakePredicate
func (*FakePredicate) Name ¶ added in v1.1.0
func (f *FakePredicate) Name() string
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) Predicate
NewHA returns a Predicate
func NewStableScheduling ¶ added in v1.0.0
func NewStableScheduling(kubeCli kubernetes.Interface, cli versioned.Interface) Predicate
NewStableScheduling returns a Predicate
Click to show internal directories.
Click to hide internal directories.