aws / aws-k8s-tester

AWS Kubernetes tester, kubetest2 deployer implementation
Apache License 2.0
163 stars 82 forks source link

Improve leaked ENI cleanup #412

Closed cartermckinnon closed 9 months ago

cartermckinnon commented 9 months ago

Description of changes:

Leaked ENI's may not have reached the available status when the cleanup is done, and left-behind ENI's will block VPC deletion. This is more likely to happen when the --unmanaged-nodes option is used, or with partitions other than aws. This PR adds a waiter for the available status on all ENI's in the VPC before deleting them.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.