Documentation ¶
Index ¶
- Constants
- func AddTolerationIfNotFound(source []core.Toleration, toAdd core.Toleration) []core.Toleration
- func AddTolerationsIfNotFound(source []core.Toleration, toAdd ...core.Toleration) []core.Toleration
- func CopyTolerations(source []core.Toleration) []core.Toleration
- func MergeTolerationsIfNotFound(source []core.Toleration, toAdd ...[]core.Toleration) []core.Toleration
- func NewNoExecuteToleration(key string, duration TolerationDuration) core.Toleration
- type TolerationDuration
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 ¶
TolerationDuration is a duration spec for tolerations.
Click to show internal directories.
Click to hide internal directories.