Skip to content

Add helm.sh/resource-policy: keep in CRDs #1713

Open
@younusmohmmad

Description

@younusmohmmad

Hi,

I noticed that the CRD manifest files in the OpenTelemetry Operator Helm chart repository (link) do not include the label:

helm.sh/resource-policy: keep

As a result, when the Helm chart is uninstalled, the CRDs are also deleted. Since CRDs are cluster-scoped resources, it is common to install them once and have multiple namespaces use the corresponding Custom Resources.

We have a use case where we want to install the CRDs in a separate namespace and ensure that they persist even if the operator Helm chart is deleted. This allows us to manage CRs in different namespaces without affecting the CRDs.

Would it be possible to update the Helm chart to add the helm.sh/resource-policy: keep annotation to the CRD manifests? This would prevent Helm from deleting the CRDs during uninstallation and better support this multi-namespace use case.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions