Skip to content

Commit

Permalink
Merge pull request #12357 from justinsb/ec2_pending_should_be_terminated
Browse files Browse the repository at this point in the history
Recognize pending EC2 instances as needed deletion
  • Loading branch information
k8s-ci-robot committed Sep 19, 2021
2 parents 7f7a78a + fc04d91 commit a68294c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resources/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a68294c

Please sign in to comment.