Commit 358a216
feat: remove monitor task system (#89)
Remove the entire MonitorTask subsystem — no concrete use case remains.
This simplifies the reconcile loop and removes the sidecar client
dependency from the reconciler.
Deleted:
- monitor.go + monitor_test.go (ensureMonitorTasks, pollMonitorTasks)
- plan_execution.go (buildSidecarClient, reconcileRuntimeTasks)
- reconcileRunningTasks method from controller.go
- BuildSidecarClientFn field from SeiNodeReconciler
- MonitorTask type and MonitorTasks field from SeiNodeStatus CRD
- SnapshotUploadMonitorTask, ResultExportMonitorTask from planner
- TaskSnapshotUpload, TaskResultExport constants
- Monitor task metrics (sidecarUnreachableTotal, monitorTaskCompletedTotal,
monitorTaskStatus) and associated emit/cleanup functions
- All monitor-related tests (~200 lines)
Kept:
- ResultExportConfig type and ReplayerSpec.ResultExport field (the config
stays on the CRD; how we manage its lifecycle is TBD)
- Platform config result-export fields
- observeCurrentImage (still runs for Running nodes, will be moved into
plans in a follow-up)
The reconcile loop is now: ensureNodeFinalizer → reconcilePeers →
ResolvePlan → ExecutePlan → emit metrics → observeCurrentImage (Running).
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 23bf638 commit 358a216
13 files changed
Lines changed: 9 additions & 1270 deletions
File tree
- api/v1alpha1
- config/crd
- internal
- controller/node
- planner
- manifests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | 208 | | |
232 | 209 | | |
233 | 210 | | |
| |||
251 | 228 | | |
252 | 229 | | |
253 | 230 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | 231 | | |
260 | 232 | | |
261 | 233 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | 576 | | |
618 | 577 | | |
619 | 578 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | | - | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
47 | 44 | | |
48 | 45 | | |
49 | 46 | | |
| |||
133 | 130 | | |
134 | 131 | | |
135 | 132 | | |
136 | | - | |
137 | | - | |
| 133 | + | |
138 | 134 | | |
139 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
143 | 142 | | |
144 | 143 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | 144 | | |
162 | 145 | | |
163 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 20 | | |
27 | 21 | | |
28 | 22 | | |
| |||
56 | 50 | | |
57 | 51 | | |
58 | 52 | | |
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 | 53 | | |
84 | 54 | | |
85 | 55 | | |
| |||
88 | 58 | | |
89 | 59 | | |
90 | 60 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 61 | | |
95 | 62 | | |
96 | 63 | | |
97 | 64 | | |
98 | 65 | | |
99 | 66 | | |
100 | 67 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | 68 | | |
124 | 69 | | |
125 | 70 | | |
126 | | - | |
127 | 71 | | |
128 | | - | |
129 | 72 | | |
130 | 73 | | |
0 commit comments