Skip to content

nelm release install with --auto-rollback should rollback on SIGINT, SIGTERM #59

@pznamensky

Description

@pznamensky

Before proceeding

  • I didn't find a similar issue

Version

werf 2.6.0

How to reproduce

  1. Run an upgrade for any chart using --atomic flag: werf helm upgrade --install some-chart --atomic -f values.yaml
  2. Press Ctrl+C (or send SIGINT signal)

Result

Werf will print "Release my-release has been cancelled" and the chart will remain in "pending-*" state.
You can check it like this: helm ls -a

Expected result

The release will be rolled back due --atomic is set.

Additional information

This is how helm works:

^CRelease my-release has been cancelled.
Error: release my-release failed, and has been uninstalled due to atomic being set: context canceled

It would be great if werf could work the same way there.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions