utils

package
v0.0.0-...-3bbe1c5 Latest Latest
Warning

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

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

Documentation

Index

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

Jump to

Keyboard shortcuts

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