Documentation ¶
Index ¶
- type ScheduleOption
- func AreTaintsTolerated(tolerations []core.Toleration, taints []core.Taint) ScheduleOption
- func IsNodeSchedulableForPod(node *core.Node, pod *core.Pod) ScheduleOption
- func IsNodeSchedulableForPods(node *core.Node, pods ...*core.Pod) ScheduleOption
- func IsTaintTolerated(tolerations []core.Toleration, taint core.Taint) ScheduleOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScheduleOption ¶
type ScheduleOption int
const ( ScheduleBlocked ScheduleOption = iota ScheduleOptional ScheduleAllowed )
func AreTaintsTolerated ¶
func AreTaintsTolerated(tolerations []core.Toleration, taints []core.Taint) ScheduleOption
func IsNodeSchedulableForPod ¶
func IsNodeSchedulableForPod(node *core.Node, pod *core.Pod) ScheduleOption
func IsNodeSchedulableForPods ¶
func IsNodeSchedulableForPods(node *core.Node, pods ...*core.Pod) ScheduleOption
func IsTaintTolerated ¶
func IsTaintTolerated(tolerations []core.Toleration, taint core.Taint) ScheduleOption
func (ScheduleOption) Schedulable ¶
func (s ScheduleOption) Schedulable() bool
Click to show internal directories.
Click to hide internal directories.