From 4b0a1daac631dff2e34404368be06c25bce18178 Mon Sep 17 00:00:00 2001 From: mayuka-c Date: Sun, 16 Nov 2025 19:26:15 +0530 Subject: [PATCH] Fix Static check job failure staticcheck fix: QF1008 --- modules/auth/pkg/args/args.go | 2 +- modules/common/client/init.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/auth/pkg/args/args.go b/modules/auth/pkg/args/args.go index 5028c9e966a3..409b4cdabfe6 100644 --- a/modules/auth/pkg/args/args.go +++ b/modules/auth/pkg/args/args.go @@ -31,7 +31,7 @@ var ( argKubeconfig = pflag.String("kubeconfig", "", "path to kubeconfig file") argApiServerHost = pflag.String("apiserver-host", "", "address of the Kubernetes API server to connect to in the format of protocol://address:port, leave it empty if the binary runs inside cluster for local discovery attempt") argApiServerSkipTLSVerify = pflag.Bool("apiserver-skip-tls-verify", false, "enable if connection with remote Kubernetes API server should skip TLS verify") - argApiServerCaBundle = pflag.String("apiserver-ca-bundle", "", "file containing the x509 certificates used for HTTPS connection to the API Server") + argApiServerCaBundle = pflag.String("apiserver-ca-bundle", "", "file containing the x509 certificates used for HTTPS connection to the API Server") ) func init() { diff --git a/modules/common/client/init.go b/modules/common/client/init.go index d13df93d8903..ab6d8467550a 100644 --- a/modules/common/client/init.go +++ b/modules/common/client/init.go @@ -63,7 +63,7 @@ func (in *configBuilder) buildBaseConfig() (config *rest.Config, err error) { if len(in.caBundlePath) > 0 { klog.InfoS("Using custom CA Bundle", "caBundle", in.caBundlePath) - config.TLSClientConfig.CAFile = in.caBundlePath + config.CAFile = in.caBundlePath } if err != nil {