Skip to content
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

Add scale up/down controls on deployments, replica sets, and replication controllers #1451

Merged
merged 1 commit into from
May 10, 2016

Conversation

paulbellamy
Copy link
Contributor

@paulbellamy paulbellamy commented May 9, 2016

@tomwilkie, ptal

Was debating adding a test for the CaptureResource method, as it's a bit involved.

@@ -326,3 +341,18 @@ func (r *Reporter) podTopology(services []Service, replicaSets []ReplicaSet) (re
})
return pods, err
}

func addScalingControls(t report.Topology) {

This comment was marked as abuse.

@tomwilkie
Copy link
Contributor

Looks good, but I think we might be able to make this more generic by using the Meta type in CaptureResource. Will think on it.

@paulbellamy
Copy link
Contributor Author

using the Meta type

Ah, maybe.. The tricky bit, at the moment, is mapping some "ReplicaSet" nodes back to replication controllers. Maybe that can be handled more gracefully, which would simplify CaptureResource.

@tomwilkie
Copy link
Contributor

Will think on it.

I didn't think of a better way. LGTM

@tomwilkie tomwilkie merged commit 291c9af into master May 10, 2016
@tomwilkie tomwilkie deleted the scale-controls branch May 10, 2016 10:43
@tomwilkie tomwilkie added this to the 0.15.0 milestone May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants