Files
kubernetes/test
Krzysztof Ostrowski 80cc27ae50 kep-3926: fix 60s shutdown timeout in transformation tests
Cancel informer watch connections before tearing down the test
apiserver to avoid hitting the 60s http.Server.Shutdown drain timeout.
Each subtest was blocking on open watch connections, adding ~300s to
the total suite runtime.

Decouple the informer lifecycle from the apiserver by using a separate
cancellable context for factory.Start(). Go's defer LIFO ordering
ensures the informer stops before test.cleanUp() shuts down the
server.

Also reduce EncryptionConfigFileChangePollDuration to 1s in TestMain.
2026-03-05 18:44:52 +01:00
..
2026-02-05 17:21:34 +00:00