Skip to content

Commit

Permalink
Merge pull request #1028 from XudongLiuHarold/fix-virtual-machine-ser…
Browse files Browse the repository at this point in the history
…vice-can-not-create

fix virtual machine service can't be created issue
  • Loading branch information
k8s-ci-robot committed May 20, 2024
2 parents 9ba6b7c + 537ff3c commit 4151267
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 4151267

Please sign in to comment.