Skip to content

Commit a4f96a0

Browse files
committed
fix CA file usage with custom bundle path
1 parent f8bb2cb commit a4f96a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/common/client/init.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (in *configBuilder) buildBaseConfig() (config *rest.Config, err error) {
6161

6262
if len(in.caBundlePath) > 0 {
6363
klog.InfoS("Using custom CA Bundle", "caBundle", in.caBundlePath)
64-
config.TLSClientConfig.CertificateAuthority = in.caBundlePath
64+
config.TLSClientConfig.CAFile = in.caBundlePath
6565
}
6666

6767
config, err = clientcmd.BuildConfigFromFlags(in.masterUrl, in.kubeconfigPath)

0 commit comments

Comments
 (0)