tolerations

package
v0.0.0-...-5006184 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TolerationKeyNodeNotReady         = "node.kubernetes.io/not-ready"
	TolerationKeyNodeAlphaUnreachable = "node.alpha.kubernetes.io/unreachable"
	TolerationKeyNodeUnreachable      = "node.kubernetes.io/unreachable"
)

Variables

This section is empty.

Functions

func AddTolerationIfNotFound

func AddTolerationIfNotFound(source []core.Toleration, toAdd core.Toleration) []core.Toleration

AddTolerationIfNotFound adds the given tolerations, if no such toleration has been set in the given source.

func AddTolerationsIfNotFound

func AddTolerationsIfNotFound(source []core.Toleration, toAdd ...core.Toleration) []core.Toleration

AddTolerationsIfNotFound add the given tolerations, if no such toleration has been set in the given source.

func CopyTolerations

func CopyTolerations(source []core.Toleration) []core.Toleration

func MergeTolerationsIfNotFound

func MergeTolerationsIfNotFound(source []core.Toleration, toAdd ...[]core.Toleration) []core.Toleration

MergeTolerationsIfNotFound merge the given tolerations lists, if no such toleration has been set in the given source.

func NewNoExecuteToleration

func NewNoExecuteToleration(key string, duration TolerationDuration) core.Toleration

NewNoExecuteToleration is a helper to create a Toleration with Key=key, Operator='Exists' Effect='NoExecute', TolerationSeconds=tolerationDuration.Seconds().

Types

type TolerationDuration

type TolerationDuration struct {
	Forever  bool
	TimeSpan time.Duration
}

TolerationDuration is a duration spec for tolerations.

Jump to

Keyboard shortcuts

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