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.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 3 hours ago –
Tools for package owners.