Commit 09572f8
fix: disable WatchListClient feature gate in installation tests
k8s.io/client-go v0.35.0 defaults the WatchListClient feature gate to
true. This causes reflectors to use watch-list semantics which require
bookmark events from the API server. The fake clientset doesn't send
bookmark events, causing informers to hang indefinitely on HasSynced().
Set KUBE_FEATURE_WatchListClient=false in an init() function in the
test suite to ensure it takes effect before any informer is created.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ba04c98 commit 09572f8
File tree
1 file changed
+9
-0
lines changed- pkg/controller/installation
1 file changed
+9
-0
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
28 | 37 | | |
29 | 38 | | |
30 | 39 | | |
| |||
0 commit comments