Skip to content
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

Closed
wants to merge 1 commit into from
Closed

crd install hook #49

wants to merge 1 commit into from

Conversation

yspotts
Copy link
Contributor

@yspotts yspotts commented Feb 14, 2020

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)

@yspotts yspotts mentioned this pull request Feb 14, 2020
@hbagdi
Copy link
Member

hbagdi commented Feb 14, 2020

The root cause of CI failures is helm/helm#5806.

Any suggestions on how to move forward?

@yspotts
Copy link
Contributor Author

yspotts commented Feb 14, 2020

did this issue just present itself with this PR? seems like it would be an issue no matter what.

@hbagdi
Copy link
Member

hbagdi commented Feb 14, 2020

I'm not sure why this popped up with this change. It was never an issue before.

Copy link
Contributor

@rainest rainest left a 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.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


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.

@stale
Copy link

stale bot commented Mar 20, 2021

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.

@stale stale bot added the stale Will be closed unless advocated for within 7 days label Mar 20, 2021
@rainest
Copy link
Contributor

rainest commented Mar 22, 2021

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

@rainest rainest closed this Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI problem Issue in Helm needs-investigation stale Will be closed unless advocated for within 7 days
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants