Commit 4cfb628
OCPBUGS-83281: Wait for Gateway deletion before removing GatewayClass in test cleanup
The Gateway API test cleanup was deleting Gateways and immediately
proceeding to delete the GatewayClass and istiod without waiting for
the Gateway resources to be fully removed. Since the gateway
deployment and pods have an owner reference to the Gateway, they are
cascade-deleted by Kubernetes GC only after the Gateway is gone. If
the GatewayClass and istiod are removed first, the gateway pods lose
their control plane and crash-loop, generating pathological "Back-off
restarting failed container" events that fail CI invariant monitors.
Add a shared waitForGatewayDeletion helper that both the upgrade test
Teardown and the controller test AfterEach use to ensure Gateways are
fully deleted before proceeding with GatewayClass cleanup.
https://redhat.atlassian.net/browse/OCPBUGS-83281
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent 9df27cd commit 4cfb628
2 files changed
Lines changed: 19 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
240 | 239 | | |
241 | 240 | | |
242 | 241 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | 242 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
| 243 | + | |
258 | 244 | | |
259 | 245 | | |
260 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
155 | 160 | | |
156 | 161 | | |
157 | 162 | | |
| |||
1324 | 1329 | | |
1325 | 1330 | | |
1326 | 1331 | | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
1327 | 1345 | | |
1328 | 1346 | | |
1329 | 1347 | | |
| |||
0 commit comments