diff --git a/k8s-test-runner/k8s_client/client.go b/k8s-test-runner/k8s_client/client.go index c8c6e2ed8..3cc20389e 100644 --- a/k8s-test-runner/k8s_client/client.go +++ b/k8s-test-runner/k8s_client/client.go @@ -32,7 +32,7 @@ type Client struct { } // GetLocalK8sDeps get local k8s context config -func GetLocalK8sDeps() (*kubernetes.Clientset, *rest.Config, error) { +func GetLocalK8sDeps(a int) (*kubernetes.Clientset, *rest.Config, error) { loadingRules := clientcmd.NewDefaultClientConfigLoadingRules() kubeConfig := clientcmd.NewNonInteractiveDeferredLoadingClientConfig(loadingRules, &clientcmd.ConfigOverrides{}) k8sConfig, err := kubeConfig.ClientConfig() @@ -48,7 +48,7 @@ func GetLocalK8sDeps() (*kubernetes.Clientset, *rest.Config, error) { // NewK8sClient creates a new k8s client with a REST config func NewClient() *Client { - cs, cfg, err := GetLocalK8sDeps() + cs, cfg, err := GetLocalK8sDeps(0) if err != nil { log.Fatal().Err(err).Send() }