Skip to content

Commit c5fcfa3

Browse files
committed
fixup kpc e2e
Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
1 parent a0fa40c commit c5fcfa3

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

contrib/kcp/test/e2e/kcp_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import (
3131
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
3232
"k8s.io/apimachinery/pkg/runtime/schema"
3333
"k8s.io/apimachinery/pkg/util/wait"
34-
"k8s.io/client-go/dynamic"
3534
"k8s.io/client-go/rest"
3635

3736
"github.com/kube-bind/kube-bind/test/e2e/framework"
@@ -125,8 +124,8 @@ func TestKCPIntegration(t *testing.T) {
125124
func testKCPResourceSync(t *testing.T, consumerCfg, providerCfg *rest.Config) {
126125
serviceGVR := schema.GroupVersionResource{Group: "wildwest.dev", Version: "v1alpha1", Resource: "cowboys"}
127126

128-
consumerClient := dynamic.NewForConfigOrDie(consumerCfg).Resource(serviceGVR)
129-
providerClient := dynamic.NewForConfigOrDie(providerCfg).Resource(serviceGVR)
127+
consumerClient := framework.DynamicClient(t, consumerCfg).Resource(serviceGVR)
128+
providerClient := framework.DynamicClient(t, consumerCfg).Resource(serviceGVR)
130129

131130
cowboyInstance := `
132131
apiVersion: wildwest.dev/v1alpha1

0 commit comments

Comments
 (0)