support chart version with "--version" flag

This commit is contained in:
Alexei Ledenev
2017-07-31 17:16:41 +03:00
parent 1e1b2a720a
commit a60d270141
3 changed files with 14 additions and 2 deletions
+7 -1
View File
@@ -35,9 +35,14 @@ func main() {
},
cli.StringFlag{
Name: "chart",
Usage: "Kubernetes helm release",
Usage: "Kubernetes helm chart name",
EnvVar: "PLUGIN_CHART,CHART",
},
cli.StringFlag{
Name: "version",
Usage: "specify the exact chart version to use. If this is not specified, the latest version is used",
EnvVar: "PLUGIN_VERSION,VERSION",
},
cli.StringFlag{
Name: "values",
Usage: "Kubernetes helm release",
@@ -134,6 +139,7 @@ func run(c *cli.Context) error {
ValuesFiles: c.String("values_files"),
Release: c.String("release"),
Chart: c.String("chart"),
Version: c.String("version"),
Debug: c.Bool("debug"),
DryRun: c.Bool("dry-run"),
Secrets: c.StringSlice("secrets"),