Merge pull request #97819 from damemi/bz1876918-priorities-test-refactor

Move deferred taint cleanup call to ensure all are removed
This commit is contained in:
Kubernetes Prow Robot
2021-02-06 21:37:12 -08:00
committed by GitHub
2 changed files with 41 additions and 10 deletions

View File

@@ -584,6 +584,14 @@ func CreatePodsPerNodeForSimpleApp(c clientset.Interface, namespace, appName str
return podLabels
}
// RemoveTaintsOffNode removes a list of taints from the given node
// It is simply a helper wrapper for RemoveTaintOffNode
func RemoveTaintsOffNode(c clientset.Interface, nodeName string, taints []v1.Taint) {
for _, taint := range taints {
RemoveTaintOffNode(c, nodeName, taint)
}
}
// RemoveTaintOffNode removes the given taint from the given node.
func RemoveTaintOffNode(c clientset.Interface, nodeName string, taint v1.Taint) {
err := removeNodeTaint(c, nodeName, nil, &taint)