Consider using VSphereVM instead of unstructured in VimMachineService.ReconcileNormal #2056
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
In VimMachineService.ReconcileNormal we initially use VSphereVM when we call createOrPatchVSphereVM. Then suddenly we're switching to Unstructured. Even though the object will always be a VSphereVM.
I wonder if it would make sense to consistently use VSphereVM instead. I'm probably missing something but it would make a lot of the code a lot easier to just work with the typed object.
cluster-api-provider-vsphere/pkg/services/vimmachine.go
Lines 131 to 174 in 7c043af
The text was updated successfully, but these errors were encountered: