Skip to content

Commit

Permalink
Merge pull request #3147 from chrischdi/pr-fix-fake-import
Browse files Browse the repository at this point in the history
🌱 testutil: fix import name for fake client library
  • Loading branch information
k8s-ci-robot authored Aug 9, 2024
2 parents a4089cf + e402ff3 commit ae5a234
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 ae5a234

Please sign in to comment.