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

Preserve scaling factor of prior deployment #2097

Merged

Conversation

ironcladlou
Copy link
Contributor

When scaling up a new deployment and a prior deployment exists,
preserve the replica count of the prior deployment. If no prior
deployment exists, use the template replica count.

When scaling up a new deployment and a prior deployment exists,
preserve the replica count of the prior deployment. If no prior
deployment exists, use the template replica count.
@ironcladlou
Copy link
Contributor Author

This replaces #2038 and addresses #2017.

/cc @smarterclayton @abhgupta

@abhgupta
Copy link
Member

abhgupta commented May 6, 2015

@ironcladlou overall LGTM

// DesiredReplicasAnnotation represents the desired number of replicas for a
// new deployment.
// TODO: This should be made public upstream.
DesiredReplicasAnnotation = "kubectl.kubernetes.io/desired-replicas"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an issue or pull for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do that now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smarterclayton
Copy link
Contributor

[merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/1825/) (Image: devenv-fedora_1451)

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/2037/)

@openshift-bot
Copy link
Contributor

Evaluated for origin up to 64ee9f7

openshift-bot pushed a commit that referenced this pull request May 6, 2015
@openshift-bot openshift-bot merged commit 8b21237 into openshift:master May 6, 2015
@ironcladlou ironcladlou deleted the recreate-preserve-scale-factor-2 branch May 6, 2015 20:24
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.

4 participants