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

Feature Request: Workflow to simplify upgrades #563

Closed
mikhailadvani opened this issue Apr 24, 2019 · 4 comments · Fixed by #593
Closed

Feature Request: Workflow to simplify upgrades #563

mikhailadvani opened this issue Apr 24, 2019 · 4 comments · Fixed by #593

Comments

@mikhailadvani
Copy link

Background

We have a setup which involves several charts from the stable repo as well as self hosted repos. We would like to periodically update the charts in a convenient manner.

Proposed Solution:

  1. New flag --force-latest for apply and diff commands which would apply/diff the charts with the latest version (should ideally not be run with --skip-repo-update)
  2. New subcommand freeze. Would populate the version number in helmfile.yaml/helmfile.d with what is installed in the cluster. Similar to a pip freeze functionality of python.
@mumoshu
Copy link
Collaborator

mumoshu commented May 5, 2019

@mikhailadvani Hey! Could this be a duplicate of #483 (comment) / Can we discuss about this feature there?

@mumoshu
Copy link
Collaborator

mumoshu commented May 5, 2019

Notes: --force-latest could better be named --dev or --force-dev-versions to be consistent with helm's --dev flag.

Regarding 2, I've proposed helmfile.lock.yaml generated as part of helm dependency update in #483. Perhaps it can be updated via a command similar to pip freeze - helmfile update, helmfile freeze, etc?

@sstarcher
Copy link
Contributor

Yep, this looks like it fits well into the lockfile concept with a freeze(pip)/ensure(go dep) and update.

@mumoshu
Copy link
Collaborator

mumoshu commented May 14, 2019

#593 enhances helmfile deps for this use-case.

One thing to note:

New flag --force-latest for apply and diff commands which would apply/diff the charts with the latest version (should ideally not be run with --skip-repo-update)

You should add version constraint to each release in the helmfile state file, like version: > 1.5.0 if you want to avoid getting latest chart versions on helmfile deps.

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

Successfully merging a pull request may close this issue.

3 participants