-
Notifications
You must be signed in to change notification settings - Fork 799
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
Remove crd-install hook, as it break CRD updates #441
Remove crd-install hook, as it break CRD updates #441
Conversation
/cc @EricFortin please let me know if you have any issues with me moving your config to /cc @smoya FYI, since you first proposed this. Unfortunately crd-install hooks are really broken 😭 , but I wanted to give you a heads up on the workaround I put in the docs - feedback appreciated. |
eef48ec
to
eb2d07f
Compare
This is a problem that Helm is going to solve going forward, but for now if you use the crd-install hook, then you can only install CRDs, and not update them at any point during a chart lifecycle. Also, prior to Helm 2.12, if you installed chart with a crd-install hook that did not have one previously, it deleted the CRDs. Therefore, removing the crd-install hook, so that CRDs are again managed by the Helm charts. Added a `agones.crd.install` parameter, in case someone wants to subchart this chart, then can set this to false, and copy the Agones CRDs into their own charts to be included in the right place for their chart lifecycle. Also, since we have a `agones.crd` config section, moved `agones.enableHelmCleanupHooks` into `agones.crds.cleanupOnDelete` Unfortunately, with this back and forth on the crd-install hook, if you are using the Helm chart, you will need to do a full Agones `helm delete --purge` and cleanup any remaining CRDs to upgrade. More context on helm + crds: - helm/helm#4697 - istio/istio#9604 - istio/istio#7688 - helm/community#64 - helm/helm#4863 - helm/helm#4709
eb2d07f
to
422768e
Compare
Build Failed 😱 Build Id: 36d3e4c7-7322-410f-9f5e-7475e983246c Build Logs
|
Build Succeeded 👏 Build Id: 3058f107-108f-43eb-b0cc-0bf4ec3c5f6e The following development artifacts have been built, and will exist for the next 30 days:
To install this version:
|
Thanks for taking care @markmandel ! And thanks for mentioning me as well. Good solution btw. |
@markmandel note Istio came up with a slightly different solution: See: istio/istio#10562 And specifically This tool works around the problem of CRDs being deleted. Note, this tool is specific to Istio, but the solution could be generalized. Just thought I'd share. Cheers |
@sdake I'm struggling to work out what they are doing here. Can you give a quick summary? |
This is a problem that Helm is going to solve going forward, but for now, if you use the crd-install hook, then you can only install CRDs, and not update them at any point during a chart lifecycle.
Also, prior to Helm 2.12, if you installed chart with a crd-install hook that did not have one previously, it deleted the CRDs.
Therefore, removing the crd-install hook, so that CRDs are again managed by the Helm charts.
Added a
agones.crd.install
parameter, in case someone wants to subchart this chart, then can set this to false, and copy the Agones CRDs into their own charts to be included in the right place for their chart lifecycle.Also, since we have a
agones.crd
config section, movedagones.enableHelmCleanupHooks
intoagones.crds.cleanupOnDelete
Unfortunately, with this back and forth on the crd-install hook, if you are using the Helm chart, you will need to do a full Agones
helm delete --purge
and cleanup any remaining CRDs to upgrade.More context on helm + crds: