k3s/pkg/util/taints
Kubernetes Submit Queue be1f14391c Merge pull request #49699 from xingzhou/kube-49384-bug
Automatic merge from submit-queue (batch tested with PRs 50537, 49699, 50160, 49025, 50205)

AddOrUpdateTaint should ignore duplicate Taint.

The parameter of AddOrUpdateTaint is Taint pointer, so should use
Taint object itself to compare with the node's taint list to ignore
duplicate taint.

While doing #49384, found this issue and fixed.

Fixed part of #49384, other test cases will be added in the following patch

**Release note**:
```
None
```
2017-08-11 19:43:57 -07:00
..
BUILD Merge pull request #49699 from xingzhou/kube-49384-bug 2017-08-11 19:43:57 -07:00
taints.go AddOrUpdateTaint should ignore duplicate Taint. 2017-08-10 09:36:17 +08:00
taints_test.go AddOrUpdateTaint should ignore duplicate Taint. 2017-08-10 09:36:17 +08:00