Commit 131f085
committed
NETOBSERV-2375: make consistent status handling
Address some old "TODOs" in status management. All statuses now follow
this pattern:
- They are initialized unknown
- When controller found unused, status set to unused
- At any point, if an error occurs, it's set with that error
- Deployment/DaemonSet check progress set status either as InProgress,
or Ready
- New Degraded condition can be optionally set; a degraded status does
not prevent it from being "ready".
Make the LokiStack status fit in this model (it was previously using an
entirely different pattern)
Also, previously, in 2 different places LokiStack was fetched to get its
status (for propagating status into FlowCollector status and into console plugin config)
Now consolidated into a single entry point to get the loki status.
Status changes:
- New status: EBPFAgents
- New status: WebConsole
- New status: DemoLoki
- New status: LokiStack
- Renamed status: FlowCollectorLegacy => FlowCollectorController
- Removed: LokiIssue and LokiWarning1 parent 32b413d commit 131f085
File tree
20 files changed
+627
-751
lines changed- internal
- controller
- consoleplugin
- demoloki
- config
- ebpf
- flp
- lokistack
- reconcilers
- pkg
- cluster
- manager/status
20 files changed
+627
-751
lines changedLines changed: 8 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | 524 | | |
541 | 525 | | |
542 | | - | |
| 526 | + | |
543 | 527 | | |
544 | 528 | | |
545 | 529 | | |
| |||
555 | 539 | | |
556 | 540 | | |
557 | 541 | | |
558 | | - | |
559 | | - | |
| 542 | + | |
560 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
561 | 549 | | |
562 | 550 | | |
563 | 551 | | |
| |||
Lines changed: 27 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
61 | 77 | | |
62 | 78 | | |
63 | 79 | | |
| |||
84 | 100 | | |
85 | 101 | | |
86 | 102 | | |
87 | | - | |
| 103 | + | |
88 | 104 | | |
89 | 105 | | |
90 | 106 | | |
| |||
114 | 130 | | |
115 | 131 | | |
116 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
117 | 138 | | |
118 | 139 | | |
119 | 140 | | |
| |||
180 | 201 | | |
181 | 202 | | |
182 | 203 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
| 204 | + | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
0 commit comments