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 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.30.8
Published
Dec 10, 2024
Platform
js/wasm
Imports
3 packages
Last checked
3 minutes ago

Tools for package owners.