sigs.k8s.io/cluster-api@v1.7.1/docs/proposals/images/machinepool-machines/machinepool-reconcile.plantuml (about) 1 @startuml machinepool-reconcile 2 :begin reconciling MachinePool; 3 if (status.InfrastructureMachineKind is set on InfraMachinePool) then (no) 4 :reconcile MachinePool replicas without MachinePool Machines; 5 else (yes) 6 :find the InfraMachinePoolMachines matching the kind 7 with the matching MachinePool name and Cluster name label; 8 while (for each InfraMachinePoolMachines) 9 if (a owner Machine exists for a InfraMachinePoolMachine) then (no) 10 :create a Machine with infraRef pointing 11 to the InfraMachinePoolMachine; 12 else (yes) 13 endif 14 :ensure Machine has an ownerRef to the MachinePool; 15 endwhile 16 endif 17 :continue reconciling MachinePool...; 18 stop 19 @enduml