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
Proposal: Migrate Helm v2 releases in-place to v3 #6154
Comments
First shot at this folks. Appreciate your comments. /cc @adamreese @bacongobbler @mattfarina @michelleN @prydonius @SlickNik @technosophos @thomastaylor312 @jdolitsky @henrynash @rimusz |
+1 to writing this as a standalone project. Re-using related backup and restore tools like helm-backup and helm-restore would be useful here as it would cut down on development time significantly. You could probably re-use helm-backup as-is and just write the equivalent of a cc @maorfr |
I am not entirely sure on what these three points in section 3.2 are referring to:
Isn't the goal of the tool to not modify the current state of the Kubernetes resources as stated in section 3? Just want to make sure it is clear for those reading it
As far as I know, Otherwise, this is looking really great and straightforward |
+1 to reuse tools like |
re #6154 (comment) Thanks @bacongobbler for "heads up" about tools from @maorfr. I will take a look and go for re-use where possible. |
@thomastaylor312 When doing PoC, I used the upgrade function to add the mapped v2 releases to v3. This function also adds the underlying Kubernetes resources. Do we have a function that just add the release only or do we need to update this function with a flag? Same applies for the v2 delete function. I'll look again at |
@hickeyma if you use the |
I would love to help on this effort! |
Yep. Lines 50 to 52 in d360705
|
Deadly, thanks @thomastaylor312. Gotta love PoCing, nearly always taking the long road first! |
Sure @maorfr, thanks. Let me get it kicked off first. |
First draft of the plugin . Look forward to the feedback. Note: It is still WIP and requires lot more testing. I just thought it was worth getting it out there to get some reviews on it. |
@hickeyma glad you found the plugin-utils useful! ;) |
Nice work @maorfr. It helped simplify the implementation a lot. Let me know what you think and how we can improve it. |
@hickeyma |
@rimusz Good suggestion. How about a flag like |
+1 for the flag |
Re #6154 (comment) retain v2 releases, done: https://github.com/hickeyma/helm-2to3/issues/4 |
helm-2to3 plugin now moved to Helm Org. |
Closing this issue as resolved; let's follow up in the helm-2to3 plugin issue queue for any issues related to that project going forward. Thanks @hickeyma for leading the effort on this one! :) |
1. Overview
Helm v3 introduces quite a lot of change in the underlying architecture and plumbing from the previous release, Helm v2. One key change is around Release storage. The changes includes the Kubernetes resource for storage and the release object metadata contained in the resource. Releases will also be on a per user namespace instead of using the the Tiller namespace (for example, v2 default Tiller namespace
kube-system
).2. Use case
When Helm v3 is installed in a cluster that is currently managed by a Helm v2 installation, a common requirement will be to migrate releases in-place to Helm v3 (i.e. without deleting and re-deploying them).
Note: This proposal covers the migration use case of Helm v3 managing existing Helm v2 releases (i.e. converting v2 releases to v3 releases). Other migration use cases are covered by documentation: #5582.
3. Proposal
Note:
3.1 Implementation
A standalone migration tool that migrates from Helm v2 to Helm v3. (@prydonius
helm/community#67 (comment))
The primary function of the tool is to:
The suggestion is for a simple, Helm-org supported plugin named
helm 2to3
. The plugin should concentrate at the start on its primary function of converting releases from v2 to v3 through theconvert
subcommand. It should be able to be extended if need be. (@jdolitsky helm/community#67 (comment))4. Reference
Migration was raised at KubeCon/CloudNativeCon Seattle 2018 at the Helm Deep Dive session.
Ref: helm 2 to helm 3 upgrade story community#67.
@maorfr helm-plugin-utils and helm-backup
The text was updated successfully, but these errors were encountered: