sigs.k8s.io/cluster-api-provider-aws@v1.5.5/docs/proposal/20220712-garbage-collection-delete.plantuml (about) 1 @startuml 2 autonumber 3 actor User 4 database APIServer 5 control CAPIController 6 control InfraClusterController 7 participant gc_service 8 collections other_services 9 participant network_service 10 participant aws 11 User -> APIServer: delete cluster 12 CAPIController -> APIServer: watch 13 activate CAPIController 14 CAPIController -> APIServer: delete infra (set timestamp) 15 16 InfraClusterController -> APIServer: watch (delete) 17 activate InfraClusterController 18 InfraClusterController -> other_services: Reconcile Delete 19 other_services -> aws: Delete non-network infra 20 opt if gc feature enabled 21 InfraClusterController -> gc_service: ReconcileDelete 22 opt if gc annotation != false OR "" 23 gc_service -> aws: Delete tenant created resources (lb/sg) 24 end 25 end 26 InfraClusterController -> network_service: Reconcile Delete 27 network_service -> aws: delete network infra 28 InfraClusterController -> InfraClusterController: Remove infra finalizer 29 InfraClusterController -> APIServer: patch 30 deactivate InfraClusterController 31 deactivate CAPIController 32 APIServer -> APIServer: Delete infra cluster 33 34 @enduml