I noticed that sometimes when I install the consul helm chart it fails to register/install the CRDs. The problem is almost always resolved when reinstalling the chart again.
consul-helm version: 0.36.0
consul version: 1.10.3
kubernetes version: 1.20.7
I did a bit more testing. I think the CRD issue only happens if I uninstall the consul helm chart and my custom chart (which uses consul CRDs) at the same time. After both charts are uninstalled the existing consul CRDS are not properly cleaned up and then when reinstall first the consul chart and then my chart I get following errors:
when running helm install on my chart
Error: unable to build kubernetes objects from release manifest: [unable to recognize “”: no matches for kind “ServiceDefaults” in version “consul.hashicorp.com/v1alpha1”, unable to recognize “”: no matches for kind “ServiceIntentions” in version “consul.hashicorp.com/v1alpha1”]
Ahh yes uninstalling is difficult. Because if you have resources created from the CRD then those can’t be deleted because there’s a finalizer. But the finalizer can only be removed from our controller. If the controller is uninstalled the the resource is never deleted and then the CRD can’t be deleted.