Skip to content

Commit

Permalink
fix virtual machine service can't be created issue (#1029)
Browse files Browse the repository at this point in the history
Signed-off-by: xudong liu <xudong.liu@broadcom.com>
  • Loading branch information
XudongLiuHarold authored May 20, 2024
1 parent 8e4491e commit 58762d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cloudprovider/vsphereparavirtual/vmservice/vmservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 58762d5

Please sign in to comment.