mirror of
https://github.com/siderolabs/talos.git
synced 2026-05-04 20:06:18 +02:00
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:
parent
63e0d02aa9
commit
92cde0c2ea
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user