launchboxio / cluster-api-provider-proxmox

CAPI Provider for Proxmox
MIT License
3 stars 1 forks source link

Clone to target node in one step #29

Closed robwittman closed 1 year ago

robwittman commented 1 year ago

When a VM is created, but not yet finished initializing, the operator may move the node if it re-reconciles the resource. Rather than create, migrate, then initialize, we should add the target node to to the clone() operation

task, err := template.Clone(&proxmox.VirtualMachineCloneOptions{
  ... 
  Target: targetNode
})