mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Rename CAFile to CaFile for consistency
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
This commit is contained in:
parent
bdaa93b969
commit
7a22dd28d1
6 changed files with 7 additions and 7 deletions
|
|
@ -132,5 +132,5 @@ func addDependencySubcommandFlags(f *pflag.FlagSet, client *action.Dependency) {
|
|||
f.StringVar(&client.KeyFile, "key-file", "", "identify HTTPS client using this SSL key file")
|
||||
f.BoolVar(&client.InsecureSkipTLSverify, "insecure-skip-tls-verify", false, "skip tls certificate checks for the chart download")
|
||||
f.BoolVar(&client.PlainHTTP, "plain-http", false, "use insecure HTTP connections for the chart download")
|
||||
f.StringVar(&client.CAFile, "ca-file", "", "verify certificates of HTTPS-enabled servers using this CA bundle")
|
||||
f.StringVar(&client.CaFile, "ca-file", "", "verify certificates of HTTPS-enabled servers using this CA bundle")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ func newDependencyBuildCmd(out io.Writer) *cobra.Command {
|
|||
if len(args) > 0 {
|
||||
chartpath = filepath.Clean(args[0])
|
||||
}
|
||||
registryClient, err := newRegistryClient(client.CertFile, client.KeyFile, client.CAFile,
|
||||
registryClient, err := newRegistryClient(client.CertFile, client.KeyFile, client.CaFile,
|
||||
client.InsecureSkipTLSverify, client.PlainHTTP, client.Username, client.Password)
|
||||
if err != nil {
|
||||
return fmt.Errorf("missing registry client: %w", err)
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ func newDependencyUpdateCmd(_ *action.Configuration, out io.Writer) *cobra.Comma
|
|||
if len(args) > 0 {
|
||||
chartpath = filepath.Clean(args[0])
|
||||
}
|
||||
registryClient, err := newRegistryClient(client.CertFile, client.KeyFile, client.CAFile,
|
||||
registryClient, err := newRegistryClient(client.CertFile, client.KeyFile, client.CaFile,
|
||||
client.InsecureSkipTLSverify, client.PlainHTTP, client.Username, client.Password)
|
||||
if err != nil {
|
||||
return fmt.Errorf("missing registry client: %w", err)
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ func newPackageCmd(out io.Writer) *cobra.Command {
|
|||
return err
|
||||
}
|
||||
|
||||
registryClient, err := newRegistryClient(client.CertFile, client.KeyFile, client.CAFile,
|
||||
registryClient, err := newRegistryClient(client.CertFile, client.KeyFile, client.CaFile,
|
||||
client.InsecureSkipTLSverify, client.PlainHTTP, client.Username, client.Password)
|
||||
if err != nil {
|
||||
return fmt.Errorf("missing registry client: %w", err)
|
||||
|
|
@ -131,7 +131,7 @@ func newPackageCmd(out io.Writer) *cobra.Command {
|
|||
f.StringVar(&client.KeyFile, "key-file", "", "identify HTTPS client using this SSL key file")
|
||||
f.BoolVar(&client.InsecureSkipTLSverify, "insecure-skip-tls-verify", false, "skip tls certificate checks for the chart download")
|
||||
f.BoolVar(&client.PlainHTTP, "plain-http", false, "use insecure HTTP connections for the chart download")
|
||||
f.StringVar(&client.CAFile, "ca-file", "", "verify certificates of HTTPS-enabled servers using this CA bundle")
|
||||
f.StringVar(&client.CaFile, "ca-file", "", "verify certificates of HTTPS-enabled servers using this CA bundle")
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ type Dependency struct {
|
|||
Password string
|
||||
CertFile string
|
||||
KeyFile string
|
||||
CAFile string
|
||||
CaFile string
|
||||
InsecureSkipTLSverify bool
|
||||
PlainHTTP bool
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ type Package struct {
|
|||
Password string
|
||||
CertFile string
|
||||
KeyFile string
|
||||
CAFile string
|
||||
CaFile string
|
||||
InsecureSkipTLSverify bool
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue