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

helm rollback to current revision when nothing has changed #429

Open
dgn opened this issue Oct 16, 2024 · 3 comments
Open

helm rollback to current revision when nothing has changed #429

dgn opened this issue Oct 16, 2024 · 3 comments

Comments

@dgn
Copy link
Collaborator

dgn commented Oct 16, 2024

We will currently bump the revision number every time we reconcile a resource because we always perform an upgrade. That shouldn't be necessary in most cases. In order to restore the indended state of a helm chart, it is enough to rollback to the current revision.

@luksa
Copy link
Contributor

luksa commented Oct 16, 2024

I tried this at some point, but ran into some issues. Can't remember what they were. If we can't get rollback to work, we need to modify the code so that it renders the resources and then we compare them with the current state of those same resources and perform updates only when there's a difference.

@dgn
Copy link
Collaborator Author

dgn commented Oct 17, 2024

I tried this at some point, but ran into some issues. Can't remember what they were. If we can't get rollback to work, we need to modify the code so that it renders the resources and then we compare them with the current state of those same resources and perform updates only when there's a difference.

I thought about that, but wasn't sure comparing all the resources to desired state would be better than current behavior - we're blasting the API server with Get()s at that point. Rolling back to current revision worked in my limited local tests but maybe there's a catch, I do remember us looking at this previously.

@luksa
Copy link
Contributor

luksa commented Oct 17, 2024

No, gets are handled locally (they go to the local cache), not the API server.

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

No branches or pull requests

2 participants