Skip to content

feat: add terminationGracePeriodSeconds to provisioner chart #9048

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

Merged
merged 5 commits into from
Aug 15, 2023

Conversation

spikecurtis
Copy link
Contributor

This should help avoid killing builds when redeploying provisioner daemon via the Helm chart.

Signed-off-by: Spike Curtis <spike@coder.com>
Signed-off-by: Spike Curtis <spike@coder.com>
shutdown, shutdownCancel := context.WithTimeout(ctx, time.Minute)
defer shutdownCancel()
err = srv.Shutdown(shutdown)
err = srv.Shutdown(ctx)
Copy link
Member

Choose a reason for hiding this comment

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

What effect will this have outside of a Kubernetes environment if we have a build in progress that just hangs indefinitely?

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 will do what we describe earlier in this file:

"Interrupt caught, gracefully exiting. Use ctrl+\\ to force quit", that is, we'll wait indefinitely until we get a more aggressive signal like SIGQUIT (ctrl + \) or SIGKILL.

@spikecurtis spikecurtis enabled auto-merge (squash) August 15, 2023 06:13
Signed-off-by: Spike Curtis <spike@coder.com>
@spikecurtis spikecurtis merged commit 41433cd into main Aug 15, 2023
@spikecurtis spikecurtis deleted the spike/provisioner-helm-termination branch August 15, 2023 08:39
@github-actions github-actions bot locked and limited conversation to collaborators Aug 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants