Skip to content

Commit

Permalink
Add "--reset-values" flag
Browse files Browse the repository at this point in the history
Closes #25
  • Loading branch information
njam authored and databus23 committed Feb 15, 2018
1 parent 7270cac commit 3df938a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type diffCmd struct {
valueFiles valueFiles
values []string
reuseValues bool
resetValues bool
suppressedKinds []string
}

Expand Down Expand Up @@ -74,6 +75,7 @@ func main() {
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")
f.BoolVar(&diff.resetValues, "reset-values", false, "reset the values to the ones built into the chart and merge in any new values")
f.StringArrayVar(&diff.suppressedKinds, "suppress", []string{}, "allows suppression of the values listed in the diff output")

if err := cmd.Execute(); err != nil {
Expand Down Expand Up @@ -103,6 +105,7 @@ func (d *diffCmd) run() error {
chartPath,
helm.UpdateValueOverrides(rawVals),
helm.ReuseValues(d.reuseValues),
helm.ResetValues(d.resetValues),
helm.UpgradeDryRun(true),
)
if err != nil {
Expand Down

0 comments on commit 3df938a

Please sign in to comment.