Daniel Lipovetsky
653c710b0d
Update v1.Taint parser to accept `key:effect`, `key=:effect-`, `key`, and `key-` forms
...
Also add missing tests for `key=:value` form.
2019-03-11 14:20:59 -07:00
Dr. Stefan Schimanski
012b085ac8
pkg/apis/core: mechanical import fixes in dependencies
2017-11-09 12:14:08 +01:00
Xing Zhou
86813f161e
Added unit test cases for the public methods of pkg/util/taints.go
...
Added unit test cases for the public methods of pkg/util/taints.go
2017-10-25 13:51:14 +08:00
Xing Zhou
9cd219969f
Need to validate taint effect when removing taints.
...
Instead of reporting taint not found, it's better to report user
that the effect is invalid. This will help user to check errors.
So when user tries to remove a taint, two conditions will be checked:
1. Whether or not the effect is an empty string.
2. Whether or not the non-empty effect is a valid taint effect.
2017-09-18 15:42:31 +08:00
Xing Zhou
fff9940a3d
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.
2017-08-10 09:36:17 +08:00
Kevin
f4d3339612
make kubectl respect taint effect NoExecute
2017-02-26 22:41:57 +08:00
Mike Danese
e225625a80
add a configuration for kubelet to register as a node with taints
...
and deprecate register-schedulable
2016-12-06 10:32:54 -08:00