Skip to content

Commit

Permalink
fix: use cluster info from orka api (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattegawel authored Dec 13, 2023
1 parent 0a2bad5 commit 6d90dfd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions builder/orka/orka_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit 6d90dfd

Please sign in to comment.