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

feat(bin): Add graceful shutdown for helm command #9520

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

idsulik
Copy link
Contributor

@idsulik idsulik commented Sep 6, 2024

Description
Added graceful shutdown for helm command

the CommandContext kills the process when we cancel the context
image

it leads to an inconsistent state in helm charts, the helm left chart in "pending-install" state.
image

How to reproduce the issue:

  1. start a deployment using the helm
  2. in the middle of the installation stop the process using Ctrl/CMD + C
  3. check the release status using helm status {releaseName}, the status will be "pending-install"
  4. try to deploy again and you won't be able to do it, because helm will return helm another operation (install/upgrade/rollback) is in progress

This fix gives the helm 15 seconds to rollback(if you pass --atomic) and/or save the actual(failed) state of the release

@idsulik
Copy link
Contributor Author

idsulik commented Nov 18, 2024

Hi @plumpy, please check the PR, because it's very important, especially with these changes #9451, because if a user executes parallel package installation and interrupts it, all the packages will remain in pending state, because skaffold kills the helm command execution on context cancellation.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants