kubernetes/pkg/controller/volume
MyoungHaSong 8e586c5071
Fix goroutine leaks in ephemeral volume controller test (#137970)
* Fix goroutine leaks in ephemeral volume controller test

Use context.WithCancel and properly shut down the informer factory
and workqueue in TestSyncHandler to prevent goroutine leaks.

Previously, the test used context.Background() which never cancels,
leaving informer and workqueue goroutines running after test completion.
Now that context support has been added to tools/cache (#126387),
the informers can be cleanly shut down via context cancellation.

Also add goleak.VerifyTestMain to detect goroutine leak regressions.

* Remove year from copyright header in main_test.go

* Drop main_test.go per review feedback
2026-04-23 04:15:52 +05:30
..
attachdetach Merge pull request #136827 from atombrella/feature/fix_nilness_controller 2026-03-10 15:15:11 +05:30
common generic ephemeral volume: graduation to GA 2021-10-11 20:54:20 +02:00
ephemeral Fix goroutine leaks in ephemeral volume controller test (#137970) 2026-04-23 04:15:52 +05:30
events hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
expand remove featureGate from PluginManager 2026-01-19 11:35:30 +08:00
persistentvolume persistentvolume: deflake TestControllerSync 5-2-3 startup race 2026-03-14 11:58:33 -04:00
pvcprotection update resize e2e tests to check only resize conditions 2026-03-18 17:08:11 -04:00
pvprotection move protectionutil pkg to controller/util 2026-03-18 15:27:56 +00:00
selinuxwarning Merge pull request #136912 from dfajmon/selinux-ga 2026-03-03 22:07:29 +05:30
vacprotection move protectionutil pkg to controller/util 2026-03-18 15:27:56 +00:00
OWNERS add sig/storage label for pkg/controller/volume package PR 2022-11-10 09:57:36 +08:00