sigs.k8s.io/cluster-api@v1.6.3/docs/proposals/images/machinepool-machines/infraref-changed-sequence.plantuml (about)

     1  @startuml
     2  :MachinePool infrastructure reference has changed;
     3  if (status.InfrastructureSelector exists) then (no)
     4      :create and delete Machines owned by the MachinePool to match replica count
     5       with no infraMachineRef;
     6  else (yes)
     7      :Find the infrastructure resources defined by the selector, API version, and kind;
     8      repeat :infraMachineRef as Infrastructure Machine Reference
     9          :create a Machine owned by the MachinePool
    10          :set ownership of the infrastructure machine to the newly created Machine;
    11      repeat while (more infraMachineRefs)
    12      :delete Machines which don't own infrastructure resources found by the selector
    13          Clean up after instances that no longer exist;
    14  endif
    15  :continue reconciling MachinePool...;
    16  stop
    17  @enduml