fix: node taint doesn't contain value anymore

As code was looking for existing taint with `value == true`, it failed
to find existing taint and tried to add another one which never
succeeds.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
This commit is contained in:
Andrey Smirnov 2020-12-03 23:50:57 +03:00 committed by talos-bot
parent 63e0d02aa9
commit 92cde0c2ea

View File

@ -213,7 +213,7 @@ func (h *Client) LabelNodeAsMaster(name string, taintNoSchedule bool) (err error
// TODO: with K8s 1.21, add new taint LabelNodeRoleControlPlane
for _, taint := range n.Spec.Taints {
if taint.Key == constants.LabelNodeRoleMaster && taint.Value == "true" {
if taint.Key == constants.LabelNodeRoleMaster {
taintFound = true
break