We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93e62e6 commit 1b15cefCopy full SHA for 1b15cef
cmd/kubeadm/app/cmd/phases/join/kubelet.go
@@ -148,7 +148,7 @@ func runKubeletStartJoinPhase(c workflow.RunData) (returnErr error) {
148
return errors.Wrapf(err, "cannot get Node %q", nodeName)
149
}
150
for _, cond := range node.Status.Conditions {
151
- if cond.Type == v1.NodeReady {
+ if cond.Type == v1.NodeReady && cond.Status == v1.ConditionTrue {
152
return errors.Errorf("a Node with name %q and status %q already exists in the cluster. "+
153
"You must delete the existing Node or change the name of this new joining Node", nodeName, v1.NodeReady)
154
0 commit comments