cloudnative-pg / charts

CloudNativePG Helm Charts
Apache License 2.0
174 stars 82 forks source link

CRDs are not in the standard `crds/` directory #319

Open rorynickolls-skyral opened 3 months ago

rorynickolls-skyral commented 3 months ago

For Helm to detect CRDs correctly and install them in the correct order, they need to be placed in the chart-root/crds directory.

Running helm show crds . from the chart root shows that Helm does not currently detect them because they are in the chart-root/templates/crds directory.

This means that they are not installed according to the flow here: https://helm.sh/docs/topics/charts_hooks/#hooks-and-the-release-lifecycle which causes problems when used in a subchart that deploys resources using the CRDs.

Stevenpc3 commented 1 month ago

This is a good example https://github.com/jaegertracing/helm-charts/tree/main/charts/jaeger-operator

also allowing CRDs to be in another folder and OPTINALLY deployed would be nice as sometimes you don't want to deploy the CRD again, but you do want to upgrade or redeploy the operator.