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.
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 thanaws
. This PR adds a waiter for theavailable
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.