Skip to content

helm3 deleted CRDs with uninstall #11564

Closed

Description

@DanTulovsky

Hi,

The docs (https://helm.sh/docs/topics/charts/#limitations-on-crds) say:

I just did a helm delete on a chart (kubernetes-external-secrets) and it completely deleted the CRDs (which then deleted the ExternalSecrets - these themselves are in a different chart).

I did this via the lens ide (https://k8slens.dev/) by clicking their delete button under helm releases. (I am assuming this simply does a helm delete)

Can you please clarify if this is in fact working as intended or not?

Activity

  1. transferred this issue fromhelm/communityon Nov 23, 2022
  2. hickeyma commented on Nov 23, 2022

    @hickeyma
    Contributor

    @DanTulovsky Helm doesn't automatically delete CRDs in Helm 3. It did in Helm 2.

    This would only be possible if configured in the chart(s) that you used or perhaps from the environment you are running on. I suggest checking the chart you ran or with the chart maintainers.

  3. DanTulovsky commented on Nov 23, 2022

    @DanTulovsky
    Author

    Thank you for your reply. How would this be configured in a chart?

  4. hickeyma commented on Nov 23, 2022

    @hickeyma
    Contributor

    It could be a number of things:

    • The CRDs maybe created a templates in the chart template directory instead of the crds/ directory. If this is the case and the CRD chart is a dependency on the chart you helm uninstall with then it will remove the CRD.
    • If you are using Helm v2
    • The environment you are using. For example, this "lens ide"
  5. github-actions commented on Feb 22, 2023

    @github-actions

    This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

  6. joejulian commented on Feb 22, 2023

    @joejulian
    Contributor

    Question has been answered. Closing.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions