Repository navigation
Fix for existing CRDs are deleted when crd-install hook is introduced - #4709
Merged
Merged
Conversation
Signed-off-by: mmerrill3 <[email protected]>
mmerrill3
force-pushed
the
feature/fix_crd_deletion
branch
from
September 27, 2018 15:12
18bdbc0 to
402dcac
Compare
Contributor
|
Could one of you two take a look at this? I'm not so familiar with this area of the code, but I think this is a very important PR (and worthy of back-porting too). Without it, I have heard stories of users with 1k+ custom resources having them all deleted. |
33 tasks done
Member
|
@technosophos if you have time, would you mind taking a look? |
technosophos
approved these changes
Nov 29, 2018
technosophos
left a comment
Member
There was a problem hiding this comment.
LGTM -- thanks for the tests
splisson
pushed a commit
to splisson/helm
that referenced
this pull request
Dec 6, 2018
…helm#4709) Signed-off-by: mmerrill3 <[email protected]> Signed-off-by: Sebastien Plisson <[email protected]>
splisson
pushed a commit
to splisson/helm
that referenced
this pull request
Dec 6, 2018
…helm#4709) Signed-off-by: mmerrill3 <[email protected]> Signed-off-by: Sebastien Plisson <[email protected]>
splisson
pushed a commit
to splisson/helm
that referenced
this pull request
Dec 6, 2018
…helm#4709) Signed-off-by: mmerrill3 <[email protected]>
splisson
pushed a commit
to splisson/helm
that referenced
this pull request
Dec 6, 2018
…helm#4709) Signed-off-by: mmerrill3 <[email protected]>
markmandel
added a commit
to markmandel/agones
that referenced
this pull request
Dec 8, 2018
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
markmandel
added a commit
to markmandel/agones
that referenced
this pull request
Dec 8, 2018
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
markmandel
added a commit
to markmandel/agones
that referenced
this pull request
Dec 8, 2018
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
markmandel
added a commit
to agones-dev/agones
that referenced
this pull request
Dec 9, 2018
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
Member
|
This PR introduced a few bugs, so we're going to have to revert this and cut a 2.12.1 without it. @mmerrill3 if you wouldn't mind having a look at #5054 and helm/charts#9941 to see if you can address those issues, that'd be much appreciated. Thanks. |
bacongobbler
pushed a commit
that referenced
this pull request
Dec 19, 2018
…troduced (#4709)" (#5067) This reverts commit e2a0e7f. Signed-off-by: Matthew Fisher <[email protected]>
adamreese
pushed a commit
that referenced
this pull request
Dec 19, 2018
…troduced (#4709)" (#5067) This reverts commit e2a0e7f. Signed-off-by: Matthew Fisher <[email protected]>
consolewitch
pushed a commit
to consolewitch/helm
that referenced
this pull request
Jan 7, 2019
…helm#4709) Signed-off-by: mmerrill3 <[email protected]>
consolewitch
pushed a commit
to consolewitch/helm
that referenced
this pull request
Jan 7, 2019
…troduced (helm#4709)" (helm#5067) This reverts commit e2a0e7f. Signed-off-by: Matthew Fisher <[email protected]>
eraac
pushed a commit
to eraac/helm
that referenced
this pull request
Mar 21, 2019
…helm#4709) Signed-off-by: mmerrill3 <[email protected]> Signed-off-by: Kevin Labesse <[email protected]>
eraac
pushed a commit
to eraac/helm
that referenced
this pull request
Mar 21, 2019
…troduced (helm#4709)" (helm#5067) This reverts commit e2a0e7f. Signed-off-by: Matthew Fisher <[email protected]> Signed-off-by: Kevin Labesse <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The PR addresses #4704, where the crd-install helm hook in introduced into an existing helm chart on CustomResourceDefinitions manifests.