Skip to content

Conversation

@player-two
Copy link
Contributor

Fixes #13

Love the plugin - it's been incredibly helpful for making upgrades smooth. I think it would be very convenient to be able to replace diff with upgrade from a previous shell command and rerun it. That is one less way for me to make mistakes during the process. I'd imagine you don't want to start a trend of copying all the options for helm upgrade into this plugin. This one seems pretty crucial to me, but let me know what you think!

FWIW, I was not able to test this on Helm 2.7. I'm currently running 2.6, so I checked out v2.5.0+1 (HEAD~1 at time of writing) and branched off that to build and test. I then cherry-picked that commit into this branch. So all that said it'd be great if you can either a) test this on 2.7 yourself or b) give me a few weeks to upgrade my Tiller. I share it with a handful of people so I can't do it immediately, but this change seems simple enough I expect it to work.

Copy link
Owner

@databus23 databus23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. One minor nit.

main.go Outdated
f.BoolP("version", "v", false, "show version")
f.VarP(&diff.valueFiles, "values", "f", "specify values in a YAML file (can specify multiple)")
f.StringArrayVar(&diff.values, "set", []string{}, "set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)")
f.BoolVar(&diff.reuseValues, "reuse-values", false, "when upgrading, reuse the last release's values, and merge in any new values. If '--reset-values' is specified, this is ignored.")
Copy link
Owner

@databus23 databus23 Nov 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the second sentence was copy&pasted from helm and is a little misleading as helm-diff does not have a --reset-values flag.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're totally right 😄 , will fix

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated; I just shortened the description to remove the irrelevant bits.

@databus23 databus23 merged commit 3801474 into databus23:master Nov 14, 2017
@databus23
Copy link
Owner

Thanks!

@player-two player-two deleted the reuse-values branch November 14, 2017 23:12
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

Successfully merging this pull request may close these issues.

2 participants