kubeadm: add missing taint for upgrade health check

This is part of the "master" -> "control-plane" rename
that we missed. It's not critical for 1.21 as the
"control-plane" taint is still not added to CP nodes,
but it would be best to add the toleration preemptively
like the KEP planned.
This commit is contained in:
Lubomir I. Ivanov 2021-03-06 23:09:28 +02:00
parent 92c3349cef
commit 3e95f9d491

View File

@ -126,7 +126,11 @@ func createJob(client clientset.Interface, cfg *kubeadmapi.ClusterConfiguration)
},
Tolerations: []v1.Toleration{
{
Key: "node-role.kubernetes.io/master",
Key: constants.LabelNodeRoleOldControlPlane,
Effect: v1.TaintEffectNoSchedule,
},
{
Key: constants.LabelNodeRoleControlPlane,
Effect: v1.TaintEffectNoSchedule,
},
},