mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-30 15:02:23 +00:00
Kubeadm: fix Ready condition check
This commit is contained in:
parent
f8e62e33c9
commit
68dcc17155
@ -148,7 +148,7 @@ func runKubeletStartJoinPhase(c workflow.RunData) (returnErr error) {
|
||||
return errors.Wrapf(err, "cannot get Node %q", nodeName)
|
||||
}
|
||||
for _, cond := range node.Status.Conditions {
|
||||
if cond.Type == v1.NodeReady {
|
||||
if cond.Type == v1.NodeReady && cond.Status == v1.ConditionTrue {
|
||||
return errors.Errorf("a Node with name %q and status %q already exists in the cluster. "+
|
||||
"You must delete the existing Node or change the name of this new joining Node", nodeName, v1.NodeReady)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user