-
Notifications
You must be signed in to change notification settings - Fork 22
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
Cleaning up resources that don't match the filter #80
Comments
@mjj209 That logic sounds great. I can't imagine a user passing a filter knowing it would match some network and not want to delete the things in that network. Would the team be able to make a PR with the current GCP objects they've updated to follow this logic and then we can see what other objects make sense after that? |
@nmahoney-pivotal @rowanjacobs Any thing y'all want to add? |
Hey @mjj209 @rowanjacobs! Are you still interested in merging this functionality upstream? |
Hi @mjj209. I was reviewing the point about record sets in a dns zone. If a dns zone contains the filter, leftovers does delete the record sets inside of it. leftovers/gcp/dns/managed_zone.go Line 20 in 46d59f7
leftovers/gcp/dns/record_sets.go Lines 27 to 52 in 46d59f7
I'm curious under what cases you've seen this cause leftovers to fail to clean up the gcp dns zone. |
Status:
|
The CF-Toolsmiths have implemented logic that cleans up GCP objects that don't match the explicit filter string. We wanted to recommend pushing this logic upstream into Leftovers. Would you consider cleaning up these GCP objects with Leftovers?
Specifically, we look for:
Any of the 4 objects listed above could cause Leftovers to fail. We've found that it's safe to delete these objects, even if they do not match the filter string. I think for some objects, such as VMs, Leftovers will delete all VMs that are attached to the network in question, even if the VM name does not contain the filter. I'm curious if you would want to add more GCP objects to have this same behavior?
The text was updated successfully, but these errors were encountered: