kubernetes/pkg
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
..
admission/plugin Add policy manifest loader, source, and plugin wiring 2026-03-11 23:47:55 -07:00
api Fix ImageVolume validation for empty reference in Pod templates (#135989) 2026-04-23 03:19:30 +05:30
apis Merge pull request #137960 from cuiweixie/fix/networkpolicy-endport-invalid-value 2026-04-23 04:15:44 +05:30
auth
capabilities
certauthorization
client staging: extract CRI streaming modules with client-go compatibility 2026-03-12 09:59:55 -04:00
cluster/ports
controller Fix goroutine leaks in ephemeral volume controller test (#137970) 2026-04-23 04:15:52 +05:30
controlplane Merge pull request #137377 from atombrella/feature/pkg_controlplane 2026-04-23 03:20:25 +05:30
credentialprovider Remove redundant re-assignment in for-loops under pkg 2026-03-02 08:47:43 +01:00
features Merge pull request #135336 from carlory/clean-AnyVolumeDataSource 2026-04-23 03:18:57 +05:30
fieldpath
generated Merge pull request #136935 from troychiu/enable-optionalorrequired-linter-for-resource 2026-04-23 03:20:09 +05:30
kubeapiserver Merge pull request #138210 from Mujib-Ahasan/featuregate-WorkloadWithJob 2026-04-09 23:12:21 +05:30
kubectl Create Workload API v1alpha2 (#136976) 2026-03-10 07:59:10 +05:30
kubelet Merge pull request #137671 from bishal7679/fix/windows-volume-reconciler-race-condition 2026-04-23 04:14:53 +05:30
kubemark remove portworx from in-tree volume plugins 2026-01-19 11:35:30 +08:00
printers Merge pull request #135964 from jaehanbyun/fix-storageclass-multiple-defaults 2026-04-23 03:19:13 +05:30
probe Remove redundant re-assignment in for-loops under pkg 2026-03-02 08:47:43 +01:00
proxy Fix TestGetConntrackMax to align with capped conntrack max values 2026-03-18 15:25:21 +05:30
quota/v1 Make quota evaluators in admission conditional on enabled resources 2026-02-20 11:34:33 -05:00
registry Merge pull request #135336 from carlory/clean-AnyVolumeDataSource 2026-04-23 03:18:57 +05:30
routes build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
scheduler Merge pull request #137814 from dims/dsrinivas/0008-volumebinding-cache-sync 2026-04-23 04:15:15 +05:30
security build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
securitycontext
serviceaccount Service account controller: Wire through context 2025-12-04 19:30:55 -05:00
util Add kernel 5.9+ version check for MemoryQoS 2026-03-18 14:22:07 -04:00
volume Add MemoryReservationPolicy to kubeletconfig for MemoryQoS feature 2026-03-16 11:24:34 -04:00
windows/service build: remove deprecated '// +build' tag 2025-12-18 12:16:21 +01:00
.import-restrictions
OWNERS