-
Notifications
You must be signed in to change notification settings - Fork 25
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
[k8up] Attach CRDs to GitHub release #419
Comments
Hi. I don't remember which issue or conversation, but it was a conscious decision to not include the CRDs in the chart.
Due to the high risk of accidental removal of CRDs we opted to go for the CRD management outside of the chart. This puts the user in charge of CRDs and not Helm or its "hidden" features. |
Hi, thanks for your response. I understand those points but my idea is simpler than that. Sorry for not being specific in the first post. I would love to have the CRDs published in the same "GitHub release". It is perfectly fine to not include them in the chart archive. This would allow to get the correct CRD version easily without my workaround. Thanks for your help. |
ah, sorry for misinterpreting it. "Bundle CRDs with chart" in the title is entirely ambiguous :) But to understand you correctly, all you're asking is that the GitHub release (e.g. https://github.com/appuio/charts/releases/tag/k8up-2.0.3) has the K8up's crd.yaml redistributed as an additional attachment in the assets? |
Yes, exactly. This allows for much easier retrieval of the corresponding version. Sorry for the confusion. |
I've discussed this with the engineering team internally. In the shortterm we would be accepting a PR that at least implements and automates your proposal if you're willing to help. In the longterm, we'll investigate the possibility that this K8up chart may go the the K8up repository itself and become a single-chart repo. That way, we have the chart + code in one place. Again, this is neither a current priority nor a promise. If you would like to contribute towards this short-term automation, please let me know so I can point you into the right direction. |
If the CRDs are not included in the Helm chart, that should at least be well documented. Currently https://k8up.io/k8up/2.3/how-tos/installation.html#_helm has no suggestion that you need an extra step to manually install the CRDs, leaving you with just a crashing operator. |
@bo0tzz thanks for pointing that out. I've opened k8up-io/k8up#692 to replace the instructions with a link to the chart for the time being. |
Summary
As a k8up user
I want to install the chart and the corresponding CRDs automatically
So that I don't have to manually find the right CRD version for the app.
Context
Currently the chart releases for k8up do not contain the necessary CRDs. They are instead published alongside the binary releases in https://github.com/k8up-io/k8up. To install the correct CRD file one needs to look into the Chart.yaml, extract the appVersion, find the relevant release in the binary repo and fetch the CRDs from this release.
Because of the different versioning schemes it is also not possible (to my knowledge and according to several tries) to use renovate to automate those steps.
I created a workaround that automates those steps and republishes the CRDs as a helm chart with the appVersion as version.
This works for me, but I think the better solution would be to publish the CRDs directly with the chart in this repo here.
Thank you very much.
Further links
Acceptance criteria
The text was updated successfully, but these errors were encountered: