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 }}
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 }}