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
support cleanup targeting one specific release #122
Comments
@bitsofinfo There is capability like this which is currently available with the The idea of the |
I think it makes sense to support cleanup for the specific release as well. |
@hickeyma ok, i wasn't aware of that feature, it could sort of work, however my use-case is to a) convert X of Y total releases, one by one verify I just think it would provide overall more flexibility for migrations, and having a targeted release argument on the |
@bitsofinfo I understand having this capability adds flexibility for the user. I am just a bit reluctant as the plugin was envisaged to be used to do an in-situ migration asap. The reason I am interested in your use case is that I wanted to understand how you are using the plugin. In the Helm migration doc, there are 2 use cases shown:
Your use case is a hybrid of the two, in that you convert some releases but want to maintain some of the v2 releases as is. This should work but the onus will be on you to manage releases as Helm v2 could conflict with Helm v3 if try to deploy the same chart with same release name (conflict with k8s resources). |
don't know, to me it seems pretty clear and a legitimate use-case. Yeah the onus is on the operator, however if I validate that the releases I successfully converted to v3, tested and accepted are good to go, there should be not need to force me to retain v2 references to them, because I can't cleanup them up in a targeted manner AFTER the In all reality, all of our releases and supporting charts will covert over fine. But let's say I have releaseA and releaseB.
I don't know, its not a big deal to me, I just see no harm in being able to target cleanup specific releases from the v2 releases db, vs only being able to do it as part of the thats said, its a great tool, thank you, so far working great! |
I agree adding the capability is good and provides flexibility to the user. The issue is labeled as an enhancement to be added. I am just a little wary about mixing 2 migration types/use-cases. Mixing both migrating and maintaining releases might lead to issues rather than strangling or migrating fully in-situ. As you say that is the responsibility of the operator. |
@bitsofinfo Pushed PR #132 for this functionality. Can you give it a try and see how it works for you? |
awesome! thanks. Handing off to @boarder981 to test this, they're working w/ me on this |
Is there a new version of the plugin that I can install with |
@boarder981 You can clone the repo, get the PR fix and build that.
|
I did what you posted above and installed the plugin manually. This is what I see when I list plugins:
And just to confirm that I see the new -n option:
Targeted release cleanup appears to work for me, but ONLY when using the long option name I see my release when I list with helm2
I do not see it when listing with helm3, which is expected:
Now I convert the release
Now I see it using both helm2 and helm3
At first I was using the short option
I then discovered that it DOES work when using the long option
Hopefully this was helpful. Let me know if you need to know anything else. Thanks! |
I forgot to mention that when I did the cleanup for real (the one I posted above was dry run), it did purge the release data from helm2. I still see it in helm3. Also one other suggestion. When you perform a dry run, this warning appears:
Can you make it print the release name please? That way there is more certainty of what exactly will be deleted before you type |
@boarder981 Thanks for testing and the great feedback. @marckhouzam got in first about Good suggestion about the warning message. Will take on board. |
PR #132 merged. |
support cleanup targeting one specific release, right now it appears its all or nothing?
The text was updated successfully, but these errors were encountered: