-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcluster-delete.puml
52 lines (34 loc) · 1.15 KB
/
cluster-delete.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@startuml
header **CB-Ladybug** (v0.7.0-cortado)
title Delete a cluster
hide footbox
participant "Client" as webtool #d1e0ff
participant "Ladybug" as provider
database "Ladybug data" as db
participant "Tumblebug" as tumblebug #d1e0ff
activate webtool
webtool -> provider : DELETE\n/ns/:ns/clusters/:cluster
activate provider
provider -> tumblebug : GET /ns/:ns
tumblebug --> provider : {namespace}
provider -> webtool : error (if it does not exist)
provider -> tumblebug : GET\n/ns/:ns/mcis/:mcis
tumblebug --> provider : {mcis}
provider -> db : UpdatePhase()
alt if mcis exists
provider -> tumblebug : GET\n/ns/:ns/control/mcis/:mcis?action=terminate
tumblebug --> provider
provider -> tumblebug : DELETE\n/ns/:ns/mcis/:mcis
tumblebug --> provider
alt if there is an error
provider -> tumblebug : [if it exists]\nGET\n/ns/:ns/control/mcis/:mcis?action=refine
tumblebug --> provider : {status}
provider -> tumblebug : DELETE\n/ns/:ns/mcis/:mcis
tumblebug --> provider : {status}
end
end
provider -> db : delete
provider --> webtool : {result}
deactivate provider
deactivate webtool
@enduml