Documentation ¶
Index ¶
- Constants
- func AddTaints(oldTaints []v1.Taint, newTaints *[]v1.Taint) bool
- func DeleteTaint(taints []v1.Taint, taintToDelete *v1.Taint) ([]v1.Taint, bool)
- func DeleteTaints(taintsToRemove []v1.Taint, newTaints *[]v1.Taint) ([]error, bool)
- func DeleteTaintsByKey(taints []v1.Taint, taintKey string) ([]v1.Taint, bool)
- func ReorganizeTaints(node *v1.Node, overwrite bool, taintsToAdd []v1.Taint, ...) (string, []v1.Taint, error)
- func ValidateNoTaintOverwrites(node *v1.Node, taints []v1.Taint) error
Constants ¶
View Source
const ( // MODIFIED ... MODIFIED = "modified" // TAINTED ... TAINTED = "tainted" // UNTAINTED ... UNTAINTED = "untainted" )
Variables ¶
This section is empty.
Functions ¶
func AddTaints ¶
AddTaints adds the newTaints list to existing ones and updates the newTaints List. TODO: This needs a rewrite to take only the new values instead of appended newTaints list to be consistent.
func DeleteTaint ¶
DeleteTaint removes all the the taints that have the same key and effect to given taintToDelete.
func DeleteTaints ¶
DeleteTaints deletes the given taints from the node's taintlist.
func DeleteTaintsByKey ¶
DeleteTaintsByKey removes all the taints that have the same key to given taintKey
func ReorganizeTaints ¶
func ReorganizeTaints(node *v1.Node, overwrite bool, taintsToAdd []v1.Taint, taintsToRemove []v1.Taint) (string, []v1.Taint, error)
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.