Unverified Commit f51189c0 authored by Taylor Thomas's avatar Taylor Thomas Committed by GitHub

Merge pull request #3848 from thomastaylor312/fix/missing-package-flag

fix(package): Adds missing `set-string` flag and parameter
parents b687e9e8 b718b1c8
......@@ -55,6 +55,7 @@ type packageCmd struct {
path string
valueFiles valueFiles
values []string
stringValues []string
key string
keyring string
version string
......@@ -99,6 +100,7 @@ func newPackageCmd(out io.Writer) *cobra.Command {
f := cmd.Flags()
f.VarP(&pkg.valueFiles, "values", "f", "specify values in a YAML file or a URL(can specify multiple)")
f.StringArrayVar(&pkg.values, "set", []string{}, "set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)")
f.StringArrayVar(&pkg.stringValues, "set-string", []string{}, "set STRING values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)")
f.BoolVar(&pkg.save, "save", true, "save packaged chart to local chart repository")
f.BoolVar(&pkg.sign, "sign", false, "use a PGP private key to sign this package")
f.StringVar(&pkg.key, "key", "", "name of the key to use when signing. Used if --sign is true")
......@@ -137,7 +139,7 @@ func (p *packageCmd) run() error {
return err
}
overrideVals, err := vals(p.valueFiles, p.values)
overrideVals, err := vals(p.valueFiles, p.values, p.stringValues)
if err != nil {
return err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment