Skip to content

Commit

Permalink
Allow specifying the chart version when running diff upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
databus23 committed Apr 13, 2018
1 parent e21ba66 commit a536dfc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
type diffCmd struct {
release string
chart string
chartVersion string
client helm.Interface
valueFiles valueFiles
values []string
Expand Down Expand Up @@ -60,6 +61,7 @@ func newChartCommand() *cobra.Command {
}

f := cmd.Flags()
f.StringVar(&diff.chartVersion, "version", "", "specify the exact chart version to use. If this is not specified, the latest version is used")
f.BoolP("suppress-secrets", "q", false, "suppress secrets in the output")
f.Bool("no-color", false, "remove colors from the output")
f.VarP(&diff.valueFiles, "values", "f", "specify values in a YAML file (can specify multiple)")
Expand All @@ -73,7 +75,7 @@ func newChartCommand() *cobra.Command {
}

func (d *diffCmd) run() error {
chartPath, err := locateChartPath(d.chart, "", false, "")
chartPath, err := locateChartPath(d.chart, d.chartVersion, false, "")
if err != nil {
return err
}
Expand Down

0 comments on commit a536dfc

Please sign in to comment.