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

Any ability to move objects from one helm release to another #9648

Closed
mark007 opened this issue Apr 26, 2021 · 2 comments
Closed

Any ability to move objects from one helm release to another #9648

mark007 opened this issue Apr 26, 2021 · 2 comments

Comments

@mark007
Copy link

mark007 commented Apr 26, 2021

Output of helm version: na
Output of kubectl version: na
Cloud Provider/Platform (AKS, GKE, Minikube etc.): na

Hi, I have come across a number of occasions where I have some large parent helm charts, that contain many dependencies, but for various reasons, have had the need to move a child chart from one of those parent charts to another one, and without actually losing any data.

I had thought it might be possible to 'move' a child service from one helm release to another, without removing its pods/pvcs etc, so that data is not lost and traffic is not impacted. However I cannot find a straight forward way to do this. Would it be a feature request to support 'moving' services from one release to another?

One approach looked at was creating some sort of a script (or upgrade in changes) to annotate an existing releases objects with 'helm.sh/resource-policy: keep', upgrading that object out of the first release, and possibly try to use 'lookup' to bring the child back into the other/second release as part of an upgrade.

However this approach involves a lot of annotations and addition of 'lookup' in possibly many tens of files (to avoid the second helm releases upgrade from giving errors that some objects already exist). This is why I'm looking to see is there some other / more elegant approach to move a service from helm chart 1 / release 1, to helm chart 2 / release 2, without data loss or deletion of the running pods.

Many thanks for any ideas or inputs.

@bacongobbler
Copy link
Member

This appears to be a duplicate request for #2730. Can you confirm?

@mark007
Copy link
Author

mark007 commented Apr 28, 2021

Thank you, you are correct, that's exactly it. I will follow that one. Thanks again.

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

No branches or pull requests

2 participants