Skip to content

[Helm 3] helm install --atomic deletes existing resources on failure #6407

Closed

Description

@jlegrone

When helm install --atomic encounters an error, any resources that already existed in the cluster and conflict with resources which would be created by helm install are deleted during rollback. The --atomic argument should allow existing resources to be left intact instead of deleting them.

Output of helm version:

version.BuildInfo{Version:"v3.0+unreleased", GitCommit:"d285097f58818533bb20eb8dff1cfb0a88e1878f", GitTreeState:"clean", GoVersion:"go1.12.9"}

Activity

  1. hickeyma commented on Sep 18, 2019

    @hickeyma
    Contributor

    @thomastaylor312 Is this the expected behaviour for --atomic?

  2. added
    bug
    and removed on Sep 18, 2019
  3. thomastaylor312 commented on Sep 18, 2019

    @thomastaylor312
    Contributor

    Nope, that is definitely a bug. Good catch on this @jlegrone. I'll take a look at the code when I am in there tomorrow working on porting some stuff

  4. added
    v3.x
    on Sep 19, 2019
  5. bacongobbler commented on Sep 23, 2019

    @bacongobbler
    Member

    After pairing on this issue, @thomastaylor312 and I identified a bigger design issue. For --atomic, we just need pkg/kube to return the results of the install/upgrade - including what resources failed to create - then reconcile those resources.

    However, there's a similar case where we want to reconcile a failed helm install/upgrade. Because Helm doesn't know the resources that Helm failed to create, a helm delete results in deleting all resources the release was tracking (see #3319).

    It'd be great if we can identify a fix that addresses both issues at the same time.

  6. added a commit that references this issue on Sep 30, 2019
    36f3a4b
  7. thomastaylor312 commented on Oct 1, 2019

    @thomastaylor312
    Contributor

    Closed in #6542

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugv3.x

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions