-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update MachinePool Machines proposal with diagrams
- Loading branch information
Showing
9 changed files
with
173 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
docs/proposals/images/machinepool-machines/inframachinepool-create-replicas.plantuml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@startuml inframachinepool-create-replicas | ||
:InfraMachinePool create replicas reconciliation; | ||
if (status.InfrastructureMachineKind is set on InfraMachinePool) then (no) | ||
:set status.InfrastructureMachineKind to InfraMachinePoolMachine; | ||
else (yes) | ||
endif | ||
repeat | ||
:create provider specific resource representing a replica; | ||
repeat while (~# replicas < # desired replicas ?) is (yes) | ||
->no; | ||
repeat | ||
:create InfraMachinePoolMachine representing a replica; | ||
repeat while (every replica has an InfraMachinePoolMachine?) is (no) | ||
->yes; | ||
:continue reconciling InfraMachinePool...; | ||
stop | ||
@enduml |
Binary file added
BIN
+23.8 KB
docs/proposals/images/machinepool-machines/inframachinepool-create-replicas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions
33
docs/proposals/images/machinepool-machines/inframachinepool-delete-replicas.plantuml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@startuml inframachinepool-delete-replicas | ||
:InfraMachinePool delete replicas reconciliation; | ||
:fetch all InfraMachinePoolMachines; | ||
:fetch owner Machine for each InfraMachinePoolMachine; | ||
if (any owner Machine is missing) then | ||
:wait for owner Machine to be created; | ||
:requeue; | ||
stop | ||
else | ||
endif | ||
repeat | ||
if (replica backing Machine does not exist) then (yes) | ||
:delete Machine; | ||
:Machine controller deletes InfraMachinePoolMachine; | ||
else (no) | ||
endif | ||
repeat while (more Machines?) is (yes) | ||
repeat | ||
if (a Machine has clusterv1.DeleteMachineAnnotation) then (yes) | ||
:select this Machine for deletion; | ||
else (no) | ||
:select any Machine using any ordering, | ||
i.e. oldest first; | ||
endif | ||
:delete selected Machine; | ||
:Machine controller cordons and drains node; | ||
:Machine controller deletes InfraMachinePoolMachine; | ||
:InfraMachinePoolMachine controller deletes provider instance; | ||
repeat while (~# replicas > # desired replicas?) is (yes) | ||
->no; | ||
:continue reconciling InfraMachinePool...; | ||
stop | ||
@enduml |
Binary file added
BIN
+49 KB
docs/proposals/images/machinepool-machines/inframachinepool-delete-replicas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 0 additions & 17 deletions
17
docs/proposals/images/machinepool-machines/infraref-changed-sequence.plantuml
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-32.3 KB
docs/proposals/images/machinepool-machines/infraref-changed-sequence.png
Binary file not shown.
23 changes: 23 additions & 0 deletions
23
docs/proposals/images/machinepool-machines/machinepool-machines-reconcile.plantuml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@startuml machinepool-machine-reconcile | ||
:MachinePool reconciliation begins; | ||
if (status.InfrastructureMachineKind is set on InfraMachinePool) then (no) | ||
:reconcile MachinePool replicas without MachinePool Machines; | ||
else (yes) | ||
:find the InfraMachinePoolMachines matching the kind | ||
with the matching MachinePool name and Cluster name label; | ||
repeat | ||
:select an InfraMachinePoolMachine; | ||
if (a owner Machine exists for a InfraMachinePoolMachine) then (no); | ||
:create a Machine owned by the MachinePool with | ||
infraRef pointing to the InfraMachinePoolMachine; | ||
:Machine controller automatically sets ownerRef | ||
of InfraMachinePoolMachine to Machine; | ||
else (yes) | ||
:ensure Machine has an ownerRef to the MachinePool; | ||
endif | ||
repeat while (more InfraMachinePoolMachines?) is (yes) | ||
->no; | ||
endif | ||
:continue reconciling MachinePool...; | ||
stop | ||
@enduml |
Binary file added
BIN
+40.8 KB
docs/proposals/images/machinepool-machines/machinepool-machines-reconcile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.