-
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.
- Loading branch information
Showing
13 changed files
with
104 additions
and
54 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
14 changes: 6 additions & 8 deletions
14
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 |
---|---|---|
@@ -1,17 +1,15 @@ | ||
@startuml inframachinepool-create-replicas | ||
:InfraMachinePool create replicas reconciliation; | ||
:Begin reconciling InfraMachinePool; | ||
if (status.InfrastructureMachineKind is set on InfraMachinePool) then (no) | ||
:set status.InfrastructureMachineKind to InfraMachinePoolMachine; | ||
else (yes) | ||
endif | ||
repeat | ||
while (~# replicas < # desired replicas ?) is (yes) | ||
:create provider specific resource representing a replica; | ||
repeat while (~# replicas < # desired replicas ?) is (yes) | ||
->no; | ||
repeat | ||
endwhile (no) | ||
while (every replica has an InfraMachinePoolMachine?) is (no) | ||
:create InfraMachinePoolMachine representing a replica; | ||
repeat while (every replica has an InfraMachinePoolMachine?) is (no) | ||
->yes; | ||
:continue reconciling InfraMachinePool...; | ||
endwhile (yes) | ||
:Continue reconciling InfraMachinePool (see additional diagram below); | ||
stop | ||
@enduml |
Binary file modified
BIN
+105 Bytes
(100%)
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.
31 changes: 13 additions & 18 deletions
31
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
Binary file modified
BIN
-11.4 KB
(77%)
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.
39 changes: 39 additions & 0 deletions
39
docs/proposals/images/machinepool-machines/inframachinepool-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,39 @@ | ||
@startuml inframachinepool-reconcile | ||
repeat :begin reconciling InfraMachinePool; | ||
if (status.InfrastructureMachineKind is set on InfraMachinePool) then (no) | ||
:set status.InfrastructureMachineKind to InfraMachinePoolMachine; | ||
else (yes) | ||
endif | ||
while (~# replicas < # desired replicas ?) is (yes) | ||
:create provider specific resource representing a replica; | ||
endwhile (no) | ||
while (every replica has an InfraMachinePoolMachine?) is (no) | ||
:create InfraMachinePoolMachine representing a replica; | ||
endwhile (yes) | ||
' :Enter second diagram; | ||
' stop | ||
:fetch all InfraMachinePoolMachines; | ||
:fetch owner Machine for each InfraMachinePoolMachine; | ||
backward:wait for owner Machine to be created; | ||
repeat while (any owner Machine is missing) is (yes) | ||
-> no; | ||
while (for each Machine) | ||
if (replica backing Machine does not exist?) then (yes) | ||
:delete Machine; | ||
else (no) | ||
endif | ||
endwhile | ||
->no; | ||
while (~# replicas > # desired replicas?) is (yes) | ||
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; | ||
endwhile | ||
->no; | ||
:end reconciling InfraMachinePool; | ||
stop | ||
@enduml |
Binary file added
BIN
+58.3 KB
docs/proposals/images/machinepool-machines/inframachinepool-reconcile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions
13
docs/proposals/images/machinepool-machines/machinepool-machine-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,13 @@ | ||
@startuml machinepool-machine-reconcile | ||
:begin reconciling Machine; | ||
if (is deleting?) then (no) | ||
:ensure InfraMachinePoolMachine has ownerRef to Machine; | ||
else (yes) | ||
:cordon and drain node; | ||
:delete InfraMachinePoolMachine; | ||
:wait for InfraMachinePoolMachine to be deleted; | ||
:delete node; | ||
endif | ||
:continue reconciling Machine; | ||
stop | ||
@enduml |
Binary file added
BIN
+16.1 KB
docs/proposals/images/machinepool-machines/machinepool-machine-reconcile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 0 additions & 23 deletions
23
docs/proposals/images/machinepool-machines/machinepool-machines-reconcile.plantuml
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-40.8 KB
docs/proposals/images/machinepool-machines/machinepool-machines-reconcile.png
Binary file not shown.
19 changes: 19 additions & 0 deletions
19
docs/proposals/images/machinepool-machines/machinepool-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,19 @@ | ||
@startuml machinepool-reconcile | ||
:begin reconciling MachinePool; | ||
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; | ||
while (for each InfraMachinePoolMachines) | ||
if (a owner Machine exists for a InfraMachinePoolMachine) then (no) | ||
:create a Machine with infraRef pointing | ||
to the InfraMachinePoolMachine; | ||
else (yes) | ||
endif | ||
:ensure Machine has an ownerRef to the MachinePool; | ||
endwhile | ||
endif | ||
:continue reconciling MachinePool...; | ||
stop | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.