Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CRD keep annotation 'helm.sh/resource-policy' #587

Open
nonamef opened this issue Jun 11, 2024 · 1 comment
Open

Add CRD keep annotation 'helm.sh/resource-policy' #587

nonamef opened this issue Jun 11, 2024 · 1 comment

Comments

@nonamef
Copy link

nonamef commented Jun 11, 2024

Describe the problem/challenge you have
If you delete the helm chart, all CRDs will be removed. Would like to keep the CRDs/CRs when deleting the chart.

Describe the solution you'd like
Add an option to append the annotation 'helm.sh/resource-policy: keep' to all CRDs.
e.g
metadata: {{- if .Values.crds.keep }} annotations: helm.sh/resource-policy: keep {{- end }}

@jenting
Copy link
Collaborator

jenting commented Jun 18, 2024

cleanUpCRDs: false

The clean up CRD default is false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants