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

CloneSet: not create excessive pods when updating with maxSurge #285

Merged
merged 1 commit into from
Jun 10, 2020

Conversation

fatedier
Copy link
Contributor

Ⅰ. Describe what this PR does

Update 2 v1 pods to v2 with

replicas = 2, partition = 1, maxSurge = 2, maxUnavailable = 0

Now it will create 2 v2 pods first to use all maxSurge and then delete 1 v1 and 1 v2 pod.

We should only create 1 v2 pod at first instead.

Ⅱ. Does this pull request fix one issue?

Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.

Ⅳ. Describe how to verify it

Copy link
Member

@FillZpp FillZpp left a comment

Choose a reason for hiding this comment

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

LGTM

@FillZpp FillZpp merged commit 079c4ea into openkruise:master Jun 10, 2020
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