kubernetesk8s.io/kubernetes/pkg/util/tolerations Index | Files

package tolerations

import "k8s.io/kubernetes/pkg/util/tolerations"

Package tolerations provides utilities to work with pod spec tolerations.

Index

Functions

func AreEqual

func AreEqual(first, second api.Toleration) bool

AreEqual checks if two provided tolerations are equal or not.

func AreTolerationSecondsEqual

func AreTolerationSecondsEqual(ts1, ts2 *int64) bool

AreTolerationSecondsEqual checks if two provided TolerationSeconds are equal or not.

func ConvertTolerationToAMap

func ConvertTolerationToAMap(in []api.Toleration) map[key]api.Toleration

ConvertTolerationToAMap converts toleration list into a map[string]api.Toleration

func EqualTolerations

func EqualTolerations(first []api.Toleration, second []api.Toleration) bool

EqualTolerations returns true if two sets of tolerations are equal, otherwise false it assumes no duplicates in individual set of tolerations

func IsConflict

func IsConflict(first []api.Toleration, second []api.Toleration) bool

IsConflict returns true if the key of two tolerations match but one or more other fields differ, otherwise returns false

func MergeTolerations

func MergeTolerations(first []api.Toleration, second []api.Toleration) []api.Toleration

MergeTolerations merges two sets of tolerations into one it does not check for conflicts

func VerifyAgainstWhitelist

func VerifyAgainstWhitelist(tolerations []api.Toleration, whitelist []api.Toleration) bool

VerifyAgainstWhitelist checks if the provided tolerations satisfy the provided whitelist and returns true, otherwise returns false

Source Files

doc.go tolerations.go

Version
v1.13.0-beta.2
Published
Nov 23, 2018
Platform
js/wasm
Imports
1 packages
Last checked
1 minute ago

Tools for package owners.