Skip to content

Commit 7a22dd2

Browse files
committed
Rename CAFile to CaFile for consistency
Signed-off-by: Evans Mungai <[email protected]>
1 parent bdaa93b commit 7a22dd2

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

cmd/helm/dependency.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,5 @@ func addDependencySubcommandFlags(f *pflag.FlagSet, client *action.Dependency) {
132132
f.StringVar(&client.KeyFile, "key-file", "", "identify HTTPS client using this SSL key file")
133133
f.BoolVar(&client.InsecureSkipTLSverify, "insecure-skip-tls-verify", false, "skip tls certificate checks for the chart download")
134134
f.BoolVar(&client.PlainHTTP, "plain-http", false, "use insecure HTTP connections for the chart download")
135-
f.StringVar(&client.CAFile, "ca-file", "", "verify certificates of HTTPS-enabled servers using this CA bundle")
135+
f.StringVar(&client.CaFile, "ca-file", "", "verify certificates of HTTPS-enabled servers using this CA bundle")
136136
}

cmd/helm/dependency_build.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func newDependencyBuildCmd(out io.Writer) *cobra.Command {
5454
if len(args) > 0 {
5555
chartpath = filepath.Clean(args[0])
5656
}
57-
registryClient, err := newRegistryClient(client.CertFile, client.KeyFile, client.CAFile,
57+
registryClient, err := newRegistryClient(client.CertFile, client.KeyFile, client.CaFile,
5858
client.InsecureSkipTLSverify, client.PlainHTTP, client.Username, client.Password)
5959
if err != nil {
6060
return fmt.Errorf("missing registry client: %w", err)

cmd/helm/dependency_update.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func newDependencyUpdateCmd(_ *action.Configuration, out io.Writer) *cobra.Comma
5858
if len(args) > 0 {
5959
chartpath = filepath.Clean(args[0])
6060
}
61-
registryClient, err := newRegistryClient(client.CertFile, client.KeyFile, client.CAFile,
61+
registryClient, err := newRegistryClient(client.CertFile, client.KeyFile, client.CaFile,
6262
client.InsecureSkipTLSverify, client.PlainHTTP, client.Username, client.Password)
6363
if err != nil {
6464
return fmt.Errorf("missing registry client: %w", err)

cmd/helm/package.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func newPackageCmd(out io.Writer) *cobra.Command {
7575
return err
7676
}
7777

78-
registryClient, err := newRegistryClient(client.CertFile, client.KeyFile, client.CAFile,
78+
registryClient, err := newRegistryClient(client.CertFile, client.KeyFile, client.CaFile,
7979
client.InsecureSkipTLSverify, client.PlainHTTP, client.Username, client.Password)
8080
if err != nil {
8181
return fmt.Errorf("missing registry client: %w", err)
@@ -131,7 +131,7 @@ func newPackageCmd(out io.Writer) *cobra.Command {
131131
f.StringVar(&client.KeyFile, "key-file", "", "identify HTTPS client using this SSL key file")
132132
f.BoolVar(&client.InsecureSkipTLSverify, "insecure-skip-tls-verify", false, "skip tls certificate checks for the chart download")
133133
f.BoolVar(&client.PlainHTTP, "plain-http", false, "use insecure HTTP connections for the chart download")
134-
f.StringVar(&client.CAFile, "ca-file", "", "verify certificates of HTTPS-enabled servers using this CA bundle")
134+
f.StringVar(&client.CaFile, "ca-file", "", "verify certificates of HTTPS-enabled servers using this CA bundle")
135135

136136
return cmd
137137
}

pkg/action/dependency.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type Dependency struct {
4242
Password string
4343
CertFile string
4444
KeyFile string
45-
CAFile string
45+
CaFile string
4646
InsecureSkipTLSverify bool
4747
PlainHTTP bool
4848
}

pkg/action/package.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type Package struct {
5151
Password string
5252
CertFile string
5353
KeyFile string
54-
CAFile string
54+
CaFile string
5555
InsecureSkipTLSverify bool
5656
}
5757

0 commit comments

Comments
 (0)