<!-- Thanks for sending a pull request! Here are some tips for you:
<!-- Thanks for sending a pull request! Here are some tips for you:
1. Make sure to read the Contributing Guide before submitting your PR: https://github.com/helm/helm/blob/master/CONTRIBUTING.md
1. Make sure to read the Contributing Guide before submitting your PR: https://github.com/helm/helm/blob/main/CONTRIBUTING.md
2. If this PR closes another issue, add 'closes #<issuenumber>' somewhere in the PR summary. GitHub will automatically close that issue when this PR gets merged. Alternatively, adding 'refs #<issuenumber>' will not close the issue, but help provide the reviewer more context.-->
2. If this PR closes another issue, add 'closes #<issuenumber>' somewhere in the PR summary. GitHub will automatically close that issue when this PR gets merged. Alternatively, adding 'refs #<issuenumber>' will not close the issue, but help provide the reviewer more context.-->
f.StringVar(&c.Version,"version","","specify the exact chart version to use. If this is not specified, the latest version is used")
f.StringVar(&c.Version,"version","","specify a version constraint for the chart version to use. This constraint can be a specific tag (e.g. 1.1.1) or it may reference a valid range (e.g. ^2.0.0). If this is not specified, the latest version is used")
f.BoolVar(&c.Verify,"verify",false,"verify the package before using it")
f.BoolVar(&c.Verify,"verify",false,"verify the package before using it")
f.StringVar(&c.Keyring,"keyring",defaultKeyring(),"location of public keys used for verification")
f.StringVar(&c.Keyring,"keyring",defaultKeyring(),"location of public keys used for verification")
f.StringVar(&c.RepoURL,"repo","","chart repository url where to locate the requested chart")
f.StringVar(&c.RepoURL,"repo","","chart repository url where to locate the requested chart")
@ -56,6 +57,7 @@ func addChartPathOptionsFlags(f *pflag.FlagSet, c *action.ChartPathOptions) {
f.StringVar(&c.KeyFile,"key-file","","identify HTTPS client using this SSL key file")
f.StringVar(&c.KeyFile,"key-file","","identify HTTPS client using this SSL key file")
f.BoolVar(&c.InsecureSkipTLSverify,"insecure-skip-tls-verify",false,"skip tls certificate checks for the chart download")
f.BoolVar(&c.InsecureSkipTLSverify,"insecure-skip-tls-verify",false,"skip tls certificate checks for the chart download")
f.StringVar(&c.CaFile,"ca-file","","verify certificates of HTTPS-enabled servers using this CA bundle")
f.StringVar(&c.CaFile,"ca-file","","verify certificates of HTTPS-enabled servers using this CA bundle")
f.BoolVar(&c.PassCredentialsAll,"pass-credentials",false,"pass credentials to all domains")
}
}
// bindOutputFlag will add the output flag to the given command and bind the
// bindOutputFlag will add the output flag to the given command and bind the
f.StringVar(&client.NameTemplate,"name-template","","specify template used to name the release")
f.StringVar(&client.NameTemplate,"name-template","","specify template used to name the release")
f.StringVar(&client.Description,"description","","add a custom description")
f.StringVar(&client.Description,"description","","add a custom description")
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.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.BoolVar(&client.DependencyUpdate,"dependency-update",false,"update dependencies if they are missing before installing the chart")
f.BoolVar(&client.DisableOpenAPIValidation,"disable-openapi-validation",false,"if set, the installation process will not validate rendered templates against the Kubernetes OpenAPI Schema")
f.BoolVar(&client.DisableOpenAPIValidation,"disable-openapi-validation",false,"if set, the installation process will not validate rendered templates against the Kubernetes OpenAPI Schema")
f.BoolVar(&client.Atomic,"atomic",false,"if set, the installation process deletes the installation on failure. The --wait flag will be set automatically if --atomic is used")
f.BoolVar(&client.Atomic,"atomic",false,"if set, the installation process deletes the installation on failure. The --wait flag will be set automatically if --atomic is used")
f.BoolVar(&client.SkipCRDs,"skip-crds",false,"if set, no CRDs will be installed. By default, CRDs are installed if not already present")
f.BoolVar(&client.SkipCRDs,"skip-crds",false,"if set, no CRDs will be installed. By default, CRDs are installed if not already present")
f.BoolVarP(&client.AllNamespaces,"all-namespaces","A",false,"list releases across all namespaces")
f.BoolVarP(&client.AllNamespaces,"all-namespaces","A",false,"list releases across all namespaces")
f.IntVarP(&client.Limit,"max","m",256,"maximum number of releases to fetch")
f.IntVarP(&client.Limit,"max","m",256,"maximum number of releases to fetch")
f.IntVar(&client.Offset,"offset",0,"next release name in the list, used to offset from start value")
f.IntVar(&client.Offset,"offset",0,"next release index 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.StringVarP(&client.Filter,"filter","f","","a regular expression (Perl compatible). Any releases that match the expression will be included in the results")
f.StringVarP(&client.Selector,"selector","l","","Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Works only for secret(default) and configmap storage backends.")
f.StringVarP(&client.Selector,"selector","l","","Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Works only for secret(default) and configmap storage backends.")
f.StringVar(&o.caFile,"ca-file","","verify certificates of HTTPS-enabled servers using this CA bundle")
f.StringVar(&o.caFile,"ca-file","","verify certificates of HTTPS-enabled servers using this CA bundle")
f.BoolVar(&o.insecureSkipTLSverify,"insecure-skip-tls-verify",false,"skip tls certificate checks for the repository")
f.BoolVar(&o.insecureSkipTLSverify,"insecure-skip-tls-verify",false,"skip tls certificate checks for the repository")
f.BoolVar(&o.allowDeprecatedRepos,"allow-deprecated-repos",false,"by default, this command will not allow adding official repos that have been permanently deleted. This disables that behavior")
f.BoolVar(&o.allowDeprecatedRepos,"allow-deprecated-repos",false,"by default, this command will not allow adding official repos that have been permanently deleted. This disables that behavior")
f.BoolVar(&o.passCredentialsAll,"pass-credentials",false,"pass credentials to all domains")