mirror of https://github.com/k3s-io/k3s
ccm: recognize InstanceNotFound from InstanceID
Otherwise we won't actually delete Nodes in this code path.pull/8/head
parent
d057795f3b
commit
ec12fe1e84
|
@ -445,6 +445,9 @@ func ensureNodeExistsByProviderID(instances cloudprovider.Instances, node *v1.No
|
|||
var err error
|
||||
providerID, err = instances.InstanceID(context.TODO(), types.NodeName(node.Name))
|
||||
if err != nil {
|
||||
if err == cloudprovider.InstanceNotFound {
|
||||
return false, nil
|
||||
}
|
||||
return false, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue