Skip to content

Commit

Permalink
example breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
skudasov committed Sep 11, 2024
1 parent 7d88077 commit 1822be8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k8s-test-runner/k8s_client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
}
Expand Down

0 comments on commit 1822be8

Please sign in to comment.