tolerations

package
v1.12.1-lite5 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package tolerations provides utilities to work with pod spec tolerations.

Index

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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