kubernetes-cronhpa-controller
kubernetes-cronhpa-controller copied to clipboard
Don't need crds.yaml in chart/kubeernetes-cronhpa-controller/templates
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.
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"