Skip to content

Annotation "helm.sh/resource-policy: keep" is ignored on helm upgrade #7677

Closed

Description

@jgoeres

I use the annotation "helm.sh/resource-policy": keep to protect some PVCs from deletion on helm uninstall, which works fine. Alas, on helm upgrade, the PVCs are deleted, taking my data with them.
Observed on Helm 3.0.3 and Helm 3.1.1.

This seems to be a regression, as I found this issue:
#3673

Activity

  1. added
    bug
    v3.x
    on Feb 25, 2020
  2. mattfarina commented on Feb 25, 2020

    @mattfarina
    Collaborator

    Thanks for catching this. The fix for v2 was merged after the v3 branch had been created and we missed pulling the fix over.

  3. added a commit that references this issue on Mar 2, 2020
    9744e9f
  4. alexluft commented on Mar 3, 2020

    @alexluft

    This is very serious and leads to data loss / corruption. Please merge ASAP.

  5. midestefanis commented on Apr 8, 2020

    @midestefanis

    I was having the same problem with helm v3.1.2. Please I need this solution. Thank you

  6. jgoeres commented on Apr 23, 2020

    @jgoeres
    Author

    Works with Helm 3.2.0, thank you. :-)

  7. added a commit that references this issue on May 8, 2020
    f68c282
  8. added a commit that references this issue on Oct 2, 2020
    f9f638c
  9. zze326 commented on Apr 12, 2022

    @zze326

    The problems still exist in the latest version.

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