package tolerations
import "k8s.io/kubernetes/pkg/util/tolerations"
Package tolerations provides utilities to work with pod spec tolerations.
Index ¶
- func MergeTolerations(first, second []api.Toleration) []api.Toleration
- func VerifyAgainstWhitelist(tolerations, whitelist []api.Toleration) bool
Functions ¶
func MergeTolerations ¶
func MergeTolerations(first, second []api.Toleration) []api.Toleration
MergeTolerations merges two sets of tolerations into one. If one toleration is a superset of another, only the superset is kept.
func VerifyAgainstWhitelist ¶
func VerifyAgainstWhitelist(tolerations, 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.16.13
- Published
- Jul 15, 2020
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 2 minutes ago –
Tools for package owners.