package taints implements utilities for working with taints
const ( MODIFIED = "modified" TAINTED = "tainted" UNTAINTED = "untainted" )
AddOrUpdateTaint tries to add a taint to annotations list. Returns a new copy of updated Node and true if something was updated false otherwise.
CheckIfTaintsAlreadyExists checks if the node already has taints that we want to add and returns a string with taint keys.
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
NewTaintsVar wraps api.Taint in a struct that implements flag.Value to allow taints to be bound to command line flags.
ParseTaints takes a spec which is an array and creates slices for new taints to be added, taints to be deleted. It also validates the spec. For example, the form `<key>` may be used to remove a taint, but not to add one.
RemoveTaint tries to remove a taint from annotations list. Returns a new copy of updated Node and true if something was updated false otherwise.
ReorganizeTaints returns the updated set of taints, taking into account old taints that were not updated, old taints that were updated, old taints that were deleted, and new taints.
TaintExists checks if the given taint exists in list of taints. Returns true if exists false otherwise.