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

test: wait for complete rollouts in WaitForDeploymentStatusValid #34942

Merged
merged 1 commit into from
Oct 17, 2016
Merged

test: wait for complete rollouts in WaitForDeploymentStatusValid #34942

merged 1 commit into from
Oct 17, 2016

Conversation

0xmichalis
Copy link
Contributor

@0xmichalis 0xmichalis commented Oct 17, 2016

@kubernetes/deployment should fix #34816 once and forever


This change is Reviewable

@k8s-github-robot k8s-github-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. release-note-label-needed labels Oct 17, 2016
@0xmichalis 0xmichalis added release-note-none Denotes a PR that doesn't merit a release note. and removed release-note-label-needed labels Oct 17, 2016
return true, nil

// When the deployment status and its underlying resources reach the desired state, we're done
if deployment.Status.Replicas == deployment.Spec.Replicas &&
Copy link
Contributor

Choose a reason for hiding this comment

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

i thought we have helper method for this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's somewhere in the perma-failed PR i think:) I will refactor this once I get the API merged (so the impl will get its turn)

return true, nil
}

reason = fmt.Sprintf("deployment status: %#v", deployment.Status)
Copy link
Contributor

Choose a reason for hiding this comment

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

you don't need this var, just Logf

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I need it in case we timeout. Will be printed instead of "timed out waiting for the condition".

@mfojtik
Copy link
Contributor

mfojtik commented Oct 17, 2016

LGTM

@0xmichalis 0xmichalis added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 17, 2016
@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 772b27d into kubernetes:master Oct 17, 2016
@0xmichalis 0xmichalis deleted the e2e-fix branch October 17, 2016 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[k8s.io] Deployment scaled rollout deployment should not block on annotation check {Kubernetes e2e suite}
5 participants