f.BoolVar(&client.DryRun,"dry-run",false,"simulate an install")
f.BoolVar(&client.DisableHooks,"no-hooks",false,"prevent hooks from running during install")
f.BoolVar(&client.Replace,"replace",false,"re-use the given name, even if that name is already used. This is unsafe in production")
f.Int64Var(&client.Timeout,"timeout",300,"time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks)")
f.BoolVar(&client.Wait,"wait",false,"if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful. It will wait for as long as --timeout")
f.BoolVarP(&client.GenerateName,"generate-name","g",false,"generate the name (and omit the NAME parameter)")
f.StringVar(&client.NameTemplate,"name-template","","specify template used to name the release")
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.BoolVar(&client.DependencyUpdate,"dependency-update",false,"run helm dependency update before installing the chart")
f.StringSliceVarP(&v.ValueFiles,"values","f",[]string{},"specify values in a YAML file or a URL(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.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(&client.AllNamespaces,"all-namespaces",false,"list releases across all namespaces")
f.IntVarP(&client.Limit,"max","m",256,"maximum number of releases to fetch")
f.IntVarP(&client.Offset,"offset","o",0,"next release name in the list, used to offset from start value")
f.StringVarP(&client.Filter,"filter","f","","a regular expression (Perl compatible). Any releases that match the expression will be included in the results")
f.IntVarP(&client.Version,"version","v",0,"revision number to rollback to (default: rollback to previous release)")
f.BoolVar(&client.DryRun,"dry-run",false,"simulate a rollback")
f.BoolVar(&client.Recreate,"recreate-pods",false,"performs pods restart for the resource if applicable")
f.BoolVar(&client.Force,"force",false,"force resource update through delete/recreate if needed")
f.BoolVar(&client.DisableHooks,"no-hooks",false,"prevent hooks from running during rollback")
f.Int64Var(&client.Timeout,"timeout",300,"time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks)")
f.BoolVar(&client.Wait,"wait",false,"if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful. It will wait for as long as --timeout")
f.Int64Var(&client.Timeout,"timeout",300,"time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks)")
f.BoolVar(&client.ResetValues,"reset-values",false,"when upgrading, reset the values to the ones built into the chart")
f.BoolVar(&client.ReuseValues,"reuse-values",false,"when upgrading, reuse the last release's values and merge in any overrides from the command line via --set and -f. If '--reset-values' is specified, this is ignored.")
f.BoolVar(&client.Wait,"wait",false,"if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful. It will wait for as long as --timeout")
f.IntVar(&client.MaxHistory,"history-max",0,"limit the maximum number of revisions saved per release. Use 0 for no limit.")
f.BoolVar(&i.DryRun,"dry-run",false,"simulate an install")
f.BoolVar(&i.DisableHooks,"no-hooks",false,"prevent hooks from running during install")
f.BoolVar(&i.Replace,"replace",false,"re-use the given name, even if that name is already used. This is unsafe in production")
f.Int64Var(&i.Timeout,"timeout",300,"time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks)")
f.BoolVar(&i.Wait,"wait",false,"if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful. It will wait for as long as --timeout")
f.BoolVarP(&i.GenerateName,"generate-name","g",false,"generate the name (and omit the NAME parameter)")
f.StringVar(&i.NameTemplate,"name-template","","specify template used to name the release")
f.BoolVar(&i.Devel,"devel",false,"use development versions, too. Equivalent to version '>0.0.0-0'. If --version is set, this is ignored.")
f.BoolVar(&i.DependencyUpdate,"dependency-update",false,"run helm dependency update before installing the chart")
i.ValueOptions.AddFlags(f)
i.ChartPathOptions.AddFlags(f)
}
func(v*ValueOptions)AddFlags(f*pflag.FlagSet){
f.StringSliceVarP(&v.ValueFiles,"values","f",[]string{},"specify values in a YAML file or a URL(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.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(&l.AllNamespaces,"all-namespaces",false,"list releases across all namespaces")
f.IntVarP(&l.Limit,"max","m",256,"maximum number of releases to fetch")
f.IntVarP(&l.Offset,"offset","o",0,"next release name in the list, used to offset from start value")
f.StringVarP(&l.Filter,"filter","f","","a regular expression (Perl compatible). Any releases that match the expression will be included in the results")
f.IntVarP(&r.Version,"version","v",0,"revision number to rollback to (default: rollback to previous release)")
f.BoolVar(&r.DryRun,"dry-run",false,"simulate a rollback")
f.BoolVar(&r.Recreate,"recreate-pods",false,"performs pods restart for the resource if applicable")
f.BoolVar(&r.Force,"force",false,"force resource update through delete/recreate if needed")
f.BoolVar(&r.DisableHooks,"no-hooks",false,"prevent hooks from running during rollback")
f.Int64Var(&r.Timeout,"timeout",300,"time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks)")
f.BoolVar(&r.Wait,"wait",false,"if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful. It will wait for as long as --timeout")
}
// Run executes 'helm rollback' against the given release.
// Run executes 'helm rollback' against the given release.
f.Int64Var(&u.Timeout,"timeout",300,"time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks)")
f.BoolVar(&u.ResetValues,"reset-values",false,"when upgrading, reset the values to the ones built into the chart")
f.BoolVar(&u.ReuseValues,"reuse-values",false,"when upgrading, reuse the last release's values and merge in any overrides from the command line via --set and -f. If '--reset-values' is specified, this is ignored.")
f.BoolVar(&u.Wait,"wait",false,"if set, will wait until all Pods, PVCs, Services, and minimum number of Pods of a Deployment are in a ready state before marking the release as successful. It will wait for as long as --timeout")
f.IntVar(&u.MaxHistory,"history-max",0,"limit the maximum number of revisions saved per release. Use 0 for no limit.")