-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crd install hook #49
crd install hook #49
Conversation
The root cause of CI failures is helm/helm#5806. Any suggestions on how to move forward? |
did this issue just present itself with this PR? seems like it would be an issue no matter what. |
I'm not sure why this popped up with this change. It was never an issue before. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like helm/helm#5806 only crops up if the CRDs are installed via hooks, which explains why they only fail with this PR. With the hook, Helm creates the CRD and then checks that it's established before proceeding with the next step of the install, and in doing so tries to convert it into the appropriate schema, resulting in the unable to convert to CRD type: unable to convert unstructured object to apiextensions.k8s.io/v1beta1, Kind=CustomResourceDefinition: cannot convert int64 to float64
error.
Without the hooks, Helm just yeets the CRDs into Kubernetes and doesn't care what happens with them after, so the problem conversion never occurs. I think we're just blocked on this until/if there's a 2.x fix for that bug.
Yoel Spotts seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The next release (2.0.0) will be Helm 3-only, and use its CRDs directory. We've taken a different approach to handling the old templated CRDs, since they can't easily be separated from a release: #305 |
Make the crds
crd-install
hook.This will hopefully go the next step in providing helm 2 and helm 3 support seamlessly. The crd-install hook is ignored (AFAIK) in helm 3 so the crds wont be installed a second time in helm 3.
(If this works as designed, not sure we need the same warning as presented in: #34)