kubernetes-cronhpa-controller icon indicating copy to clipboard operation
kubernetes-cronhpa-controller copied to clipboard

Don't need crds.yaml in chart/kubeernetes-cronhpa-controller/templates

Open yccharles opened this issue 3 years ago • 1 comments

if you install cronhpa by helm3.+, it will install all crds in charts/kubernetes-cronhpa-controller/crds folder if crds is not defined in cluster.

It's greate feature, we don't need crds.yaml in chart/kubeernetes-cronhpa-controller/templates anymore.

yccharles avatar Jan 07 '22 02:01 yccharles

I have the same problem on Helm v3.8.0. I resolve an error I met after I remove templates/crds.yaml.

A command I tried

helm install mycronhpa ./

Error I met

Error: rendered manifests contain a resource that already exists. Unable to continue with install: CustomResourceDefinition "cronhorizontalpodautoscalers.autoscaling.alibabacloud.com" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "mycronhpa"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "default"

pomcho555 avatar Feb 24 '22 04:02 pomcho555