Skip to content

Commit

Permalink
Remove client
Browse files Browse the repository at this point in the history
  • Loading branch information
grischperl committed Jul 18, 2023
1 parent 887b744 commit c90e75b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 70 deletions.
27 changes: 0 additions & 27 deletions pkg/k8s/client.go

This file was deleted.

32 changes: 0 additions & 32 deletions pkg/k8s/mocks/client.go

This file was deleted.

11 changes: 0 additions & 11 deletions testutils/integration/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ import (
eventingv1alpha1 "github.com/kyma-project/eventing-manager/api/v1alpha1"
"github.com/kyma-project/eventing-manager/internal/controller/eventing"
eventingcontroller "github.com/kyma-project/eventing-manager/internal/controller/eventing"
"github.com/kyma-project/eventing-manager/pkg/k8s"
"github.com/kyma-project/eventing-manager/testutils"
"github.com/onsi/gomega"
"github.com/stretchr/testify/require"
"go.uber.org/zap"
apiclientset "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
k8stypes "k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/dynamic"
Expand Down Expand Up @@ -42,7 +40,6 @@ type TestEnvironment struct {
EnvTestInstance *envtest.Environment
k8sClient client.Client
K8sDynamicClient *dynamic.DynamicClient
KubeClient *k8s.Client
Reconciler *eventing.Reconciler
Logger *zap.SugaredLogger
Recorder *record.EventRecorder
Expand Down Expand Up @@ -101,13 +98,6 @@ func NewTestEnvironment(projectRootDir string, celValidationEnabled bool) (*Test
}
recorder := ctrlMgr.GetEventRecorderFor("eventing-manager")

// init custom kube client wrapper
apiClientSet, err := apiclientset.NewForConfig(ctrlMgr.GetConfig())
if err != nil {
return nil, err
}
kubeClient := k8s.NewKubeClient(ctrlMgr.GetClient(), apiClientSet, "eventing-manager")

// setup reconciler
eventingReconciler := eventingcontroller.NewReconciler(
ctrlMgr.GetClient(),
Expand All @@ -134,7 +124,6 @@ func NewTestEnvironment(projectRootDir string, celValidationEnabled bool) (*Test
Context: ctx,
k8sClient: k8sClient,
K8sDynamicClient: dynamicClient,
KubeClient: &kubeClient,
Reconciler: eventingReconciler,
Logger: sugaredLogger,
Recorder: &recorder,
Expand Down

0 comments on commit c90e75b

Please sign in to comment.