-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tolerate two subnets and Introduce Cleanup command #5
Conversation
This also refacctors some common code to common.go
…em in the same run
Othewise we panic because the NIC is still using the subnet
@nandajavarma let me know what you think on the change? I'm happy to add docs, but wanted to get feedback first. |
@kylos101 Thanks a lot for making this change Kyle!! ❤️ The code looks good and really happy to see the improved usability now! ⭐ |
This way, we stop using NICs, before attempting to delete security groups, after cleaning up when diagnosing.
Clean works as advertised:
|
Diagnose does cleanup properly (again) at the end (needed to move the wait), so clean isn't needed unless there's been a failuire:
|
All set, @nandajavarma ! |
Description
Some customers reuse subnets, but when this happens, it causes the checker to fail (because the security group already exists).
Also, while troubleshooting, I noticed that we're not tagging related resources, which makes it difficult to find and delete them later on.
Related Issue(s)
Fixes ENT-473
How to test
Setup a YAML file like so:
And then:
go run . diagnose
to testgo run . clean
to find and remove lingering test resourcesDocumentation
/hold