New CLI flag --values-directory (or) -d for loading directory name
which has the values YAML files.
This flag will be used by the following commands:
1. Install
2. Lint
3. Package
4. Upgrade
The values directory(s) (or the values inside the values YAML files
inside the specified directory(s)) are processed first. i.e., values
from other input types (--values, --set-json, --set, --set-string,
--set-file, --set-literal) can all overwrite values from directories
if matching keys.
Fixes#10416
Signed-off-by: Bhargav Ravuri <bhargav.ravuri@infracloud.io>
f.StringSliceVarP(&v.ValueFiles,"values","f",[]string{},"specify values in a YAML file or a URL (can specify multiple)")
f.StringSliceVarP(&v.ValueFiles,"values","f",[]string{},"specify values in a YAML file or a URL (can specify multiple)")
f.StringSliceVarP(&v.ValuesDirectories,"values-directory","d",[]string{},"specify values directory to recursively read for value's YAML files. Note: The YAML files in the directory are read in the lexical order. (can specify multiple)")
f.StringArrayVar(&v.Values,"set",[]string{},"set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)")
f.StringArrayVar(&v.Values,"set",[]string{},"set values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)")
f.StringArrayVar(&v.StringValues,"set-string",[]string{},"set STRING values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)")
f.StringArrayVar(&v.StringValues,"set-string",[]string{},"set STRING values on the command line (can specify multiple or separate values with commas: key1=val1,key2=val2)")
f.StringArrayVar(&v.FileValues,"set-file",[]string{},"set values from respective files specified via the command line (can specify multiple or separate values with commas: key1=path1,key2=path2)")
f.StringArrayVar(&v.FileValues,"set-file",[]string{},"set values from respective files specified via the command line (can specify multiple or separate values with commas: key1=path1,key2=path2)")