Skip to content

How to show changes before running helm upgrade? #3156

Closed

Description

@canhnt

Question: Is there any formal way to figure out changes will apply when I run helm upgrade command like:

helm upgrade <release-name> <chart-name> --version=<chart-version> ...

For now I have to follow the workarounds as:

  1. Get current values with helm get <release-name> > current-values.yaml
  2. Run dry-run and debug with helm upgrade --dry-run --debug > next-values.yaml
  3. Compare current-values.yaml and next-values.yaml. Item orders in these files are not deterministic, so file comparison is not easy.

Activity

  1. bacongobbler commented on Nov 21, 2017

    @bacongobbler
    Member

    IIRC this is what helm-diff solves. Can you give that plugin a shot? :)

  2. canhnt commented on Nov 22, 2017

    @canhnt
    Author

    @bacongobbler: thanks! It solved my problem. However current plugin version requires the chart as a local file rather than in a repository. Looking forward to seeing next improvement.

  3. bacongobbler commented on Nov 22, 2017

    @bacongobbler
    Member

    Glad to hear it's working for you! I would follow up with any feature requests you're having using the plugin at https://github.com/databus23/helm-diff/issues since this is a community-owned project outside of Helm core.

    As a workaround, you can do

    $ helm fetch mychart
    $ helm diff <release name>mychart/
    

    Thanks!

  4. bacongobbler commented on Nov 22, 2017

    @bacongobbler
    Member

    Specifically I'd follow up on databus23/helm-diff#9

  5. eightnoteight commented on Aug 26, 2019

    @eightnoteight

    shouldn't this be part of helm? using helm in production needs diff and using helm according to the plugin release cycle doesn't feel right

  6. bacongobbler commented on Sep 2, 2019

    @bacongobbler
    Member

    That might be a good question to ask the maintainer of helm-diff. helm template was a plugin that was eventually rolled into core once there was a decent amount of users using it in prod so I don't see any technical issues why it couldn't be rolled into core.

    The big question in my mind would be how the code would be maintained going forward and the governance around that particular project. helm template was maintained by a few core maintainers so it was easy to roll into core, whereas helm diff is actively maintained by a few community members.

  7. mltsy commented on Jan 4, 2020

    @mltsy

    Note, for posterity: helm-diff does seem to work with repository charts now 😉

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions