Skip to content

Commit

Permalink
Merge pull request #12359 from hakman/automated-cherry-pick-of-#12357…
Browse files Browse the repository at this point in the history
…-upstream-release-1.22

Automated cherry pick of #12357: Recognize pending EC2 instances as needed deletion
  • Loading branch information
k8s-ci-robot committed Sep 19, 2021
2 parents 8db22dd + 7f7c7ae commit 247687a
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 247687a

Please sign in to comment.