Skip to content

Annotation "helm.sh/resource-policy: keep" should never delete a resource #3673

Closed

Description

@alebsack

I noticed that the annotation "helm.sh/resource-policy: keep" on a resource is not honored when the name of the resource is changed.

This is a big problem in my case where I used the annotation on a namespace, and a misconfiguration of the name resulted in the removal of the namespace.

Activity

  1. added
    bug
    and removed on Jun 5, 2018
  2. pastukhov commented on Oct 9, 2018

    @pastukhov

    It also delete resource when helm upgrade cause

  3. jsravn commented on Dec 14, 2018

    @jsravn

    Just got bitten by this. Also if you remove the resource from the helm chart (by accident), helm deletes it! Whoops.

  4. jsravn commented on Jan 28, 2019

    @jsravn

    @bacongobbler what are your thoughts on this bug? Would you be open to a contribution to fix this?

  5. added 2 commits that reference this issue on Jan 29, 2019
    3470f4f
    7757ebf
  6. jsravn commented on Jan 29, 2019

    @jsravn

    I made #5225 to try and fix this.

  7. added a commit that references this issue on Jan 29, 2019
    ab0ba3a
  8. added a commit that references this issue on Mar 21, 2019
    9c038f3
  9. ml0renz0 commented on Apr 25, 2022

    @ml0renz0

    Helm still does delete resources marked with "helm.sh/resource-policy": keep when running helm uninstall
    I see it was fixed for Update method but not for Delete method, am I right?

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions