Skip to content

Commit

Permalink
testutil: fix import name for fake client library
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischdi committed Aug 9, 2024
1 parent a4089cf commit e402ff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/util/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"k8s.io/klog/v2"
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
bootstrapv1 "sigs.k8s.io/cluster-api/bootstrap/kubeadm/api/v1beta1"
testclient "sigs.k8s.io/controller-runtime/pkg/client/fake"
"sigs.k8s.io/controller-runtime/pkg/client/fake"

vmwarev1 "sigs.k8s.io/cluster-api-provider-vsphere/apis/vmware/v1beta1"
capvcontext "sigs.k8s.io/cluster-api-provider-vsphere/pkg/context"
Expand Down Expand Up @@ -162,7 +162,7 @@ func CreateClusterContext(cluster *clusterv1.Cluster, vsphereCluster *vmwarev1.V
}, &capvcontext.ControllerManagerContext{
Logger: klog.Background().WithName("controller-manager-logger"),
Scheme: scheme,
Client: testclient.NewClientBuilder().WithScheme(scheme).WithStatusSubresource(
Client: fake.NewClientBuilder().WithScheme(scheme).WithStatusSubresource(
&vmoprv1.VirtualMachineService{},
&vmoprv1.VirtualMachine{},
).Build(),
Expand Down

0 comments on commit e402ff3

Please sign in to comment.