From 6d90dfd9d2c6d6ce70a122310ead5c03ae5f7a0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gawe=C5=82?= Date: Wed, 13 Dec 2023 15:27:24 +0100 Subject: [PATCH] fix: use cluster info from orka api (#48) --- builder/orka/orka_client.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/builder/orka/orka_client.go b/builder/orka/orka_client.go index 55cc589..b40aafc 100644 --- a/builder/orka/orka_client.go +++ b/builder/orka/orka_client.go @@ -15,7 +15,6 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/client-go/rest" "sigs.k8s.io/controller-runtime/pkg/client" - "sigs.k8s.io/controller-runtime/pkg/client/config" ) type OrkaClient interface { @@ -60,8 +59,7 @@ func GetOrkaClient(orkaEndpoint, authToken string) (*RealOrkaClient, error) { return nil, err } - restConfig := config.GetConfigOrDie() - restConfig = &rest.Config{ + restConfig := &rest.Config{ Host: clusterInfo.ApiEndpoint, BearerToken: authToken, TLSClientConfig: rest.TLSClientConfig{