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

kubectl: enhancements for deployment progress deadline #36171

Merged
merged 1 commit into from Nov 7, 2016
Merged

kubectl: enhancements for deployment progress deadline #36171

merged 1 commit into from Nov 7, 2016

Conversation

0xmichalis
Copy link
Contributor

@0xmichalis 0xmichalis commented Nov 3, 2016

Changes:

  • add deployment conditions in the describer
  • abort 'rollout status' for deployments that have exceeded their
    progress deadline

Depends on #35691.

@kubernetes/kubectl @kubernetes/deployment

Fixes #31319


This change is Reviewable

@0xmichalis 0xmichalis added this to the v1.5 milestone Nov 3, 2016
@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 Nov 3, 2016
@0xmichalis 0xmichalis added release-note-none Denotes a PR that doesn't merit a release note. and removed release-note-label-needed labels Nov 3, 2016
@@ -2161,6 +2161,13 @@ func (dd *DeploymentDescriber) Describe(namespace, name string, describerSetting
ru := d.Spec.Strategy.RollingUpdate
fmt.Fprintf(out, "RollingUpdateStrategy:\t%s max unavailable, %s max surge\n", ru.MaxUnavailable.String(), ru.MaxSurge.String())
}
if len(d.Status.Conditions) > 0 {
fmt.Fprint(out, "Conditions:\n Type\tStatus\tReason\n")
fmt.Fprint(out, " ----\t------\t------\n")
Copy link
Member

Choose a reason for hiding this comment

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

I think we can use tabwriter here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All the rest of the describers are not using it atm and I don't want to introduce a bigger change in this PR just before the code freeze.

Changes:
* add deployment conditions in the describer
* abort 'rollout status' for deployments that have exceeded their
progress deadline
@mfojtik
Copy link
Contributor

mfojtik commented Nov 7, 2016

LGTM

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

Jenkins unit/integration failed for commit f97666e. Full PR test history.

The magic incantation to run this job again is @k8s-bot unit test this. Please help us cut down flakes by linking to an open flake issue when you hit one in your PR.

@0xmichalis
Copy link
Contributor Author

@k8s-bot unit test this #36351

@0xmichalis 0xmichalis assigned mfojtik and unassigned j3ffml Nov 7, 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 7f74d48 into kubernetes:master Nov 7, 2016
@0xmichalis 0xmichalis deleted the kubectl-changes-for-failed-deployments branch November 8, 2016 09:46
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.

None yet

7 participants