Commit c4fbdc0
authored
Reset status conditions in GatewayAPI translator (#516)
* Reset status conditions in GatewayAPI translator
* reset the conditions field within the listeners field (Gateway status)
and the the parents field (HTTPRoute Status) before further setting any
newer conditions so older conditons that are no longer true can be
reset.
* Enhance the status updater to merge the listener and parents
conditions so existing older conditions that are same as the newer
ones (except the LastTransitionTime field) can be retained and writes
to the API Server can be mitigated
Fixes: #415
Signed-off-by: Arko Dasgupta <[email protected]>
* test
Signed-off-by: Arko Dasgupta <[email protected]>
* use reflect.DeepEqual
Signed-off-by: Arko Dasgupta <[email protected]>
* rm merge logic and rely on cmp status
Signed-off-by: Arko Dasgupta <[email protected]>
Signed-off-by: Arko Dasgupta <[email protected]>1 parent 3ec7db1 commit c4fbdc0
File tree
5 files changed
+23
-44
lines changed- internal
- gatewayapi
- provider/kubernetes
- status
5 files changed
+23
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 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 | 23 | | |
55 | 24 | | |
56 | 25 | | |
| |||
135 | 104 | | |
136 | 105 | | |
137 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
138 | 111 | | |
139 | 112 | | |
140 | 113 | | |
| |||
213 | 186 | | |
214 | 187 | | |
215 | 188 | | |
216 | | - | |
| 189 | + | |
217 | 190 | | |
218 | 191 | | |
219 | 192 | | |
| |||
295 | 268 | | |
296 | 269 | | |
297 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
298 | 275 | | |
299 | 276 | | |
300 | 277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 30 | | |
39 | 31 | | |
40 | 32 | | |
| |||
53 | 45 | | |
54 | 46 | | |
55 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
56 | 51 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| |||
637 | 639 | | |
638 | 640 | | |
639 | 641 | | |
| 642 | + | |
| 643 | + | |
640 | 644 | | |
641 | 645 | | |
642 | 646 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
| 335 | + | |
335 | 336 | | |
336 | 337 | | |
337 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
338 | 341 | | |
339 | 342 | | |
340 | 343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
0 commit comments