diff --git a/pkg/cloudprovider/vsphereparavirtual/vmservice/vmservice.go b/pkg/cloudprovider/vsphereparavirtual/vmservice/vmservice.go index bd014a294..5c4b2f979 100644 --- a/pkg/cloudprovider/vsphereparavirtual/vmservice/vmservice.go +++ b/pkg/cloudprovider/vsphereparavirtual/vmservice/vmservice.go @@ -328,6 +328,10 @@ func (s *vmService) lbServiceToVMService(service *v1.Service, clusterName string } vmService := &vmopv1alpha1.VirtualMachineService{ + TypeMeta: metav1.TypeMeta{ + APIVersion: vmopclient.VirtualMachineServiceGVR.Group + "/" + vmopclient.VirtualMachineServiceGVR.Version, + Kind: "VirtualMachineService", + }, ObjectMeta: metav1.ObjectMeta{ Labels: label, Name: s.GetVMServiceName(service, clusterName),