It creates the new namespace with givem values to flag '--namespace-labels'.
If not if provider, the default 'name=<namespace-name>' is used.
Signed-off-by: Mateus Caruccio <mateus.caruccio@getupcloud.com>
f.BoolVar(&client.CreateNamespace,"create-namespace",false,"create the release namespace if not present")
f.StringToStringVarP(&client.NamespaceLabels,"namespace-labels","L",nil,"Labels that would be added to created namespace. Should be divided by comma. If --create-namespace is not set, this is ignored. Default is 'name=<namespace-name>'")
// --dry-run options with expected outcome:
// - Not set means no dry run and server is contacted.
// - Set with no value, a value of client, or a value of true and the server is not contacted
f.BoolVar(&createNamespace,"create-namespace",false,"if --install is set, create the release namespace if not present")
f.StringToStringVarP(&namespaceLabels,"namespace-labels","L",nil,"Labels that would be added to created namespace. Should be divided by comma. If --create-namespace is not set, this is ignored. Default is 'name=<namespace-name>'")
f.BoolVarP(&client.Install,"install","i",false,"if a release by this name doesn't already exist, run an install")
f.BoolVar(&client.Devel,"devel",false,"use development versions, too. Equivalent to version '>0.0.0-0'. If --version is set, this is ignored")
f.StringVar(&client.DryRunOption,"dry-run","","simulate an install. If --dry-run is set with no option being specified or as '--dry-run=client', it will not attempt cluster connections. Setting '--dry-run=server' allows attempting cluster connections.")