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

provision/kubernetes: support deploy cancelation #2030

Merged
merged 9 commits into from
May 2, 2018

Conversation

andrestc
Copy link
Member

@andrestc andrestc commented Apr 27, 2018

This implements cancelation for kubernetes deploys.

@andrestc andrestc changed the title WIP: provision/kubernetes: cancelation for deploys WIP: provision/kubernetes: support deploy cancelation Apr 27, 2018
@andrestc andrestc changed the title WIP: provision/kubernetes: support deploy cancelation provision/kubernetes: support deploy cancelation Apr 30, 2018
err = errors.Errorf("timeout after %v", timeout)
case <-ctx.Done():
if onCancel == nil {
err = errors.Errorf("canceled after %v", time.Since(start))
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 should call err = errors.Wrapf(ctx.Err(), ... here. This way we would be able to differentiate between DeadlineExceeded and explicit cancelation of events.

@andrestc andrestc merged commit 27609b3 into tsuru:master May 2, 2018
@andrestc andrestc deleted the kube-deploy-cancel branch May 2, 2018 19:54
@andrestc andrestc added this to the 1.6 milestone May 2, 2018
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