forked from kubernetes-retired/cluster-api-provider-nested
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathncp-activity.plantuml
117 lines (104 loc) · 2.56 KB
/
ncp-activity.plantuml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
@startuml
skinparam roundcorner 20
skinparam ParticipantPadding 20
skinparam BoxPadding 50
skinparam Shadowing false
skinparam NoteBorderColor #444
skinparam NoteBackgroundColor #fff
skinparam NoteFontColor #444
skinparam EntityBackgroundColor #fff
skinparam EntityBorderColor #444
skinparam ArrowFontColor #444
skinparam ArrowColor #444
skinparam ArrowLollipopColor #444
skinparam ArrowThickness 1
skinparam ControlBorderColor #444
skinparam ControlBackgroundColor #fff
skinparam ParticipantBorderColor #444
skinparam ParticipantBackgroundColor #fff
skinparam ParticipantFontSize 17
skinparam ParticipantFontColor #444
skinparam ActorBorderColor #444
skinparam ActorFontColor #444
skinparam ActorFontSize 17
skinparam ActorBackgroundColor #fff
skinparam GroupBorderColor #444
skinparam GroupBorderThickness 1
skinparam GroupHeaderFontColor #444
skinparam GroupFontColor #444
skinparam SequenceLifeLineBorderColor #444
skinparam ActivityBorderColor #444
skinparam ActivityBackgroundColor #fff
skinparam ActivityDiamondBorderColor #444
skinparam ActivityDiamondBackgroundColor #fff
title NestedControlPlane Creation
start
if (NCP exists?) then (no)
:return nil;
end
else (yes)
endif
if (deletionTimestamp?) then (yes)
:handle deletion;
end
endif
if (component CRs exist?) then (no)
:emit event;
:return retryAfter;
end
else (yes)
if (has ownerReferences?) then (no)
:setup OwnerReferences back;
endif
endif
if (cluster CA/Certs exists?) then (no)
:call secret.NewCertificatesForInitialControlPlane;
:store certs as secrets;
if (errors?) then (yes)
:return err;
end
elseif (error with Conflicts?) then (yes)
:return retryAfter;
end
else (no)
endif
endif
if (ControlPlaneEndpoint set?) then (no)
:return nil;
end
endif
if (admin kubeconfig exists?) then (no)
:get ControlPlaneEndpoint;
:create kubeconfig;
if (errors?) then (yes)
:return err;
end
endif
elseif (kubeconfig owned?) then (no)
:adopt kubeconfig;
else (yes)
if (certs need rotation?) then (yes)
:regenerate and store;
if (errors?) then (yes)
:return err;
end
endif
endif
endif
if (conditions updated?) then (no)
if (etcd managed?) then (yes)
:try to fetch common status fields;
if (errors?) then (yes)
:set etcd as unknown state;
endif
endif
:get nested component statuses;
:update NestedControlPlane status;
if (errors?) then (yes)
:return err;
end
endif
endif
:return nil;
end
@enduml