Promote taint addition/removal to api/v1/helpers.go

This commit is contained in:
gmarek
2017-02-06 13:59:50 +01:00
parent 11bf535e03
commit e1e4370ecd
8 changed files with 218 additions and 118 deletions

View File

@@ -131,7 +131,7 @@ func reorganizeTaints(accessor metav1.Object, overwrite bool, taintsToAdd []v1.T
for _, oldTaint := range oldTaints {
existsInNew := false
for _, taint := range newTaints {
if taint.MatchTaint(oldTaint) {
if taint.MatchTaint(&oldTaint) {
existsInNew = true
break
}