mirror of https://github.com/kubernetes/kops.git
Recognize pending EC2 instances as needed deletion
They should be deleted as they will presumably be running shortly. Also, this function is used from `kops dump cluster` where presumably instances are more likely to be pending.
This commit is contained in:
parent
7f7a78a285
commit
fc04d91bc7
|
@ -394,7 +394,7 @@ func ListInstances(cloud fi.Cloud, clusterName string) ([]*resources.Resource, e
|
|||
case "terminated", "shutting-down":
|
||||
continue
|
||||
|
||||
case "running", "stopped":
|
||||
case "running", "stopped", "pending":
|
||||
// We need to delete
|
||||
klog.V(4).Infof("instance %q has state=%q", id, stateName)
|
||||
|
||||
|
|
Loading…
Reference in New Issue