Unverified Commit 0757e05e authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #64368 from justinsb/ccm_instanceid_fix

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. ccm: recognize InstanceNotFound from InstanceID Otherwise we won't actually delete Nodes in this code path. ```release-note NONE ```
parents 54900d77 ec12fe1e
...@@ -449,6 +449,9 @@ func ensureNodeExistsByProviderID(instances cloudprovider.Instances, node *v1.No ...@@ -449,6 +449,9 @@ func ensureNodeExistsByProviderID(instances cloudprovider.Instances, node *v1.No
var err error var err error
providerID, err = instances.InstanceID(context.TODO(), types.NodeName(node.Name)) providerID, err = instances.InstanceID(context.TODO(), types.NodeName(node.Name))
if err != nil { if err != nil {
if err == cloudprovider.InstanceNotFound {
return false, nil
}
return false, err return false, err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment