Repository navigation
Commit d8e2adb
committed
test(dataplane): wait for initial deployment reconcile
Deployment webhook tests create deployments that reference a NodeSet absent from the test namespace. The controller initializes status on the initial reconcile, then schedules a retry. If that retry runs after a synthetic running condition is written, it can reset the condition and allow deletion.
Wait until Status.ObservedGeneration matches metadata.generation before setting synthetic conditions. Mark each test deployment as deployed in the same status update, causing queued retries to return early and preserving the condition for webhook validation.1 parent bd0e67e commit d8e2adb
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
38 | 47 | | |
39 | 48 | | |
40 | 49 | | |
| 50 | + | |
| 51 | + | |
41 | 52 | | |
42 | 53 | | |
43 | 54 | | |
| |||
53 | 64 | | |
54 | 65 | | |
55 | 66 | | |
| 67 | + | |
56 | 68 | | |
57 | 69 | | |
58 | 70 | | |
| |||
0 commit comments