-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Refactor toolbox dump & dump structured instances #3719
Refactor toolbox dump & dump structured instances #3719
Conversation
This will enable log collection even if nodes don't register. AWS: Dumps ids & addresses GCE: Dumps names - addresses to follow Others: Not yet!
4d50513
to
a18363f
Compare
Hi @andrewsykim want to take a look at this one? I think you previously split out the tracker package to make it easier to implement DO, but I think this may be an easier way... The idea is that we have the base package |
Also @andrewsykim not urgent, and let me know if you want me to break it up into the refactor and the dump-instances bit - I should have done that, but the dump-instances bit is sufficiently simple that you might let me get away with it ;-) |
@@ -180,7 +176,7 @@ func RunDeleteCluster(f *util.Factory, out io.Writer, options *DeleteClusterOpti | |||
|
|||
fmt.Fprintf(out, "\n") | |||
|
|||
err = d.DeleteResources(clusterResources) | |||
err = resources.DeleteResources(cloud, clusterResources) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put DeleteResources
into resource/utils
to be consistent with ListResources
? Or does that create a circular dependency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We definitely can :-) Did that as a separate additional commit in #3720 to (hopefully) make it easier to review.
This does suggest that maybe this should be pkg/resource/operations
instead of pkg/resources/utils
- maybe?
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewsykim The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. |
This will enable log collection even if nodes don't register.
AWS: Dumps ids & addresses
GCE: Dumps names - addresses to follow
Others: Not yet!