Skip to content

Support --reuse-values #14

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

Merged
merged 1 commit into from
Nov 14, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ type diffCmd struct {
// out io.Writer
client helm.Interface
// version int32
valueFiles valueFiles
values []string
valueFiles valueFiles
values []string
reuseValues bool
}

func main() {
Expand Down Expand Up @@ -61,6 +62,7 @@ func main() {
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, "reuse the last release's values and merge in any new values")

if err := cmd.Execute(); err != nil {
os.Exit(1)
Expand Down Expand Up @@ -88,6 +90,7 @@ func (d *diffCmd) run() error {
d.release,
chartPath,
helm.UpdateValueOverrides(rawVals),
helm.ReuseValues(d.reuseValues),
helm.UpgradeDryRun(true),
)
if err != nil {
Expand Down