package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev

# Functions

AddOrUpdateTaint tries to add a taint to annotations list.
CheckIfTaintsAlreadyExists checks if the node already has taints that we want to add and returns a string with taint keys.
CheckTaintValidation checks if the given taint is valid.
DeleteTaint removes all the taints that have the same key and effect to given taintToDelete.
DeleteTaintsByKey removes all the taints that have the same key to given taintKey.
ParseTaints takes a spec which is an array and creates slices for new taints to be added, taints to be deleted.
RemoveTaint tries to remove a taint from annotations list.
TaintExists checks if the given taint exists in list of taints.
TaintKeyExists checks if the given taint key exists in list of taints.
TaintSetDiff finds the difference between two taint slices and returns all new and removed elements of the new slice relative to the old slice.
TaintSetFilter filters from the taint slice according to the passed fn function to get the filtered taint slice.

# Constants