Skip to content

Commit 00d97d3

Browse files
committed
override client config to after config exiss
1 parent a4f96a0 commit 00d97d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/common/client/init.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,13 @@ func (in *configBuilder) buildBaseConfig() (config *rest.Config, err error) {
5959
klog.InfoS("Using apiserver-host location", "masterUrl", in.masterUrl)
6060
}
6161

62+
config, err = clientcmd.BuildConfigFromFlags(in.masterUrl, in.kubeconfigPath)
63+
6264
if len(in.caBundlePath) > 0 {
6365
klog.InfoS("Using custom CA Bundle", "caBundle", in.caBundlePath)
6466
config.TLSClientConfig.CAFile = in.caBundlePath
6567
}
6668

67-
config, err = clientcmd.BuildConfigFromFlags(in.masterUrl, in.kubeconfigPath)
6869
if err != nil {
6970
return nil, err
7071
}

0 commit comments

Comments
 (0)