sigs.k8s.io/cluster-api@v1.7.1/docs/book/src/images/cluster-admission-machinepool-controller.plantuml (about) 1 @startuml 2 3 start 4 5 :MachinePool controller; 6 repeat 7 :MachinePool controller enqueues a Reconcile call; 8 if (Deleted?) then (yes) 9 :Reconcile deletion; 10 :Delete implementation-specific finalizer; 11 else (no) 12 :Add implementation-specific finalizer if needed; 13 if (Bootstrap config is ready) then (yes) 14 #LightBlue:Set Bootstrap.DataSecretName for machine pool if nil; 15 if (Infrastructure is ready) then (yes) 16 #LightBlue:Update MachinePool ProviderIDList and Status; 17 :Delete retired nodes; 18 #LightBlue:Update NodeRefs and Status replicas; 19 #LightBlue:Set MachinePool Phase; 20 else (no) 21 endif 22 else (no) 23 endif 24 endif 25 #LightBlue:Patch MachinePool back to API server; 26 repeat while (Reconcile returned RequeueError?) is (yes) 27 if (Reconcile returned error) then (yes) 28 #Pink:Error reconciling control plane; 29 else (no) 30 endif 31 stop 32 33 @enduml