postgres-operator-examples icon indicating copy to clipboard operation
postgres-operator-examples copied to clipboard

Allow Helm CRD management to be disabled

Open ron1 opened this issue 2 years ago • 1 comments

It is common for mainstream CRD-based workloads to allow Helm CRD management to be externalized from the main chart. One approach used by Rancher, the Elastic Cloud on Kubernetes Operator, and others externalizes crds into their own chart, for example, charts eck-operator and eck-operator-crds.

Another lighter-weight approach adopted by jetstack/cert-manager and kyverno/kyverno to name a few leverages an "installCRDs" boolean property to allow Helm CRD management to be disabled. This approach at least provides the option to disable CRD management.

The current approach used by this chart that relies on the "/crds" directory to install crds but not update them is problematic, especially for gitops scenarios. Consider adopting one of the other strategies described above.

ron1 avatar Nov 18 '21 19:11 ron1

I only know a few charts handling this correctly:

Other methods are partial, and the eck-operator way requires extra manual steps.

sathieu avatar Nov 23 '21 09:11 sathieu

I've entered this into the backlog, but would welcome if anyone wants to open a PR for that.

benjaminjb avatar Oct 14 '22 19:10 benjaminjb