Documentation ¶
Overview ¶
Package tolerations provides utilities to work with pod spec tolerations.
Index ¶
- func AreEqual(first, second api.Toleration) bool
- func AreTolerationSecondsEqual(ts1, ts2 *int64) bool
- func ConvertTolerationToAMap(in []api.Toleration) map[key]api.Toleration
- func EqualTolerations(first []api.Toleration, second []api.Toleration) bool
- func IsConflict(first []api.Toleration, second []api.Toleration) bool
- func MergeTolerations(first []api.Toleration, second []api.Toleration) []api.Toleration
- func VerifyAgainstWhitelist(tolerations []api.Toleration, whitelist []api.Toleration) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreEqual ¶
func AreEqual(first, second api.Toleration) bool
AreEqual checks if two provided tolerations are equal or not.
func AreTolerationSecondsEqual ¶
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
Types ¶
This section is empty.