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

fix: crds getting removed on helm upgrades #519

Merged
merged 3 commits into from
Apr 16, 2024
Merged

Conversation

Abhinandan-Purkait
Copy link
Member

Why do we need this PR?

It was seen that on upgrade to 1.5.x the CRDs get removed causing the removal of CRs. This would prevent it.
It also adds annotations to let helm keep the CRDs on uninstall, which is configurable.

Copy link
Member

@avishnu avishnu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Signed-off-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
Signed-off-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
Signed-off-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
@Abhinandan-Purkait Abhinandan-Purkait merged commit 6d3d2ce into develop Apr 16, 2024
4 checks passed
@Ornias1993
Copy link

and this now leads to it bugging out when reinstalling in a cluster or installing on a cluster that previously used the crds folder.

Honestly: Does anyone here actually test these helm PR's, outside just a single initial install?
But even so, this behavior is already pretty clear by just reading the damn template... So what is going wrong here?

@Abhinandan-Purkait
Copy link
Member Author

Abhinandan-Purkait commented Apr 18, 2024

and this now leads to it bugging out when reinstalling in a cluster or installing on a cluster that previously used the crds folder.

Honestly: Does anyone here actually test these helm PR's, outside just a single initial install? But even so, this behavior is already pretty clear by just reading the damn template... So what is going wrong here?

For reinstalling or a fresh install with crds existing, users can use a simple set flag --set crds.csi.volumeSnapshots.enabled=false to them helm command.

I don't think that was too hard to figure out from the PR, anyway.

So I don't anything is going wrong here, we provided options, now users need to use what fits their use case.

If you still feel we don't know what we are doing please feel free to open an issue and you can contribute, we would be happy to review your PR.

@niladrih niladrih deleted the chart-changes branch April 18, 2024 14:13
@Ornias1993
Copy link

For reinstalling or a fresh install with crds existing, users can use a simple set flag --set crds.csi.volumeSnapshots.enabled=false to them helm command.

Obviously, but that was not the previous behavior.
So essentially you added quite big change in behavior without tagging it as break (which it, mater of factly is)

I don't think that was too hard to figure out from the PR, anyway.

No it isn't, but it's also not in your release notes as a clear breaking behavioral change.
It was also not hard to keep the "reinstall support" from previous version, within this change either.

So I don't anything is going wrong here, we provided options, now users need to use what fits their use case.

You significantly changed behavior, unneededly.

If you still feel we don't know what we are doing please feel free to open an issue and you can contribute, we would be happy to review your PR.

We likely are going to completely start rolling our own this summer, because the versioning and safety-of-updating of ZFS-LocalPV helm-charts is grossly unreliable, due to continuesly changing behavior.

@wolfgangwalther
Copy link

and this now leads to it bugging out when reinstalling in a cluster or installing on a cluster that previously used the crds folder.

"bugging out" as in "fails to install the chart, but doesn't destroy anything"?

Cool, I can very happily live with that - this is what I expected when I need to change some configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants