kubernetes/pkg/controller
Davanum Srinivas 5d3e8d9db6
nodeipam: buffer TestNodeSyncResync report notifications
TestNodeSyncResync closes opChan after observing the first resync and then
waits for the loop to exit. There is still a small window where the 1ms
resync timer fires again before the select notices the closed channel.
When that happens ReportResult sends a second notification on the
unbuffered reportChan, the loop blocks in the send, and the test waits
forever on doneChan.

Allow one queued notification so the loop can drain that race and reach
the closed opChan case. The test still validates that a resync happened;
it just stops depending on exact scheduling between two ready events.

Tested:
go test -race ./pkg/controller/nodeipam/ipam/sync -run TestNodeSyncResync -count=200
2026-03-14 11:58:31 -04:00
..
apis/config Make ConcurrentResourceClaimSyncs configurable (#134701) 2026-01-08 19:31:39 +05:30
bootstrap Move dump package from apimachinery to k8s.io/utils 2026-02-12 07:34:19 -05:00
certificates Remove redundant re-assignment in for-loops under pkg 2026-03-02 08:47:43 +01:00
clusterroleaggregation simplify cluster role aggregation and remove update path 2026-02-02 22:39:27 +00:00
cronjob Remove redundant re-assignment in for-loops under pkg 2026-03-02 08:47:43 +01:00
daemon Fix vet error 2026-03-05 18:11:02 -05:00
deployment Fix vet error 2026-03-05 18:11:02 -05:00
devicetainteviction DRA device taints: graduate to beta 2026-03-12 18:26:02 +01:00
disruption Update pkg/controller to use slices.Contains 2026-02-26 10:17:13 +01:00
endpoint controller/endpoint: Improve goroutine mgmt 2025-10-29 19:00:31 +01:00
endpointslice Drop TopologyAwareHints and ServiceTraficDistribution feature gates 2026-01-09 12:42:34 -05:00
endpointslicemirroring Fix unit tests 2026-01-29 17:55:08 -05:00
garbagecollector Merge pull request #136817 from kairosci/fix-gc-notfound-136525 2026-03-11 03:53:09 +05:30
history Add index for controller revision 2026-01-13 19:46:34 +00:00
job Merge pull request #137297 from atombrella/feature/pkg_forvar_modernize 2026-03-05 00:28:20 +05:30
namespace controller/namespace: Improve goroutine mgmt 2025-10-29 19:04:37 +01:00
nodeipam nodeipam: buffer TestNodeSyncResync report notifications 2026-03-14 11:58:31 -04:00
nodelifecycle nodelifecycle: fix processing deleted pod events, which are currently missed 2026-01-31 10:49:15 +08:00
podautoscaler Merge pull request #136178 from omerap12/promote-hpa-metrics 2026-03-10 01:19:13 +05:30
podgc controller/podgc: Improve goroutine mgmt 2025-10-29 19:04:37 +01:00
replicaset Add the ability for the replicaset controller to read its own writes 2026-02-25 17:15:53 +00:00
replication Add the ability for the replicaset controller to read its own writes 2026-02-25 17:15:53 +00:00
resourceclaim Update pkg/controller to use slices.Contains 2026-02-26 10:17:13 +01:00
resourcequota Merge pull request #136040 from petern48/error-level-logs 2026-01-28 03:27:48 +05:30
serviceaccount golangci-lint: bump to logtools v0.10.1 2026-03-04 12:08:18 +01:00
servicecidrs Update pkg/controller to use slices.Contains 2026-02-26 10:17:13 +01:00
statefulset Merge pull request #136827 from atombrella/feature/fix_nilness_controller 2026-03-10 15:15:11 +05:30
storageversiongc Merge pull request #134432 from Karthik-K-N/fix-sv-test 2025-11-05 06:56:52 -08:00
storageversionmigrator Remove CRD stored versions from status upon SVM migration 2026-03-11 00:50:27 +00:00
tainteviction KEP-5471: Extend tolerations operators (#134665) 2025-11-10 12:42:54 -08:00
testutil Replace NewFake with NewFakeWithOptions in pkg/controller 2025-09-11 08:39:49 +08:00
ttl controller/ttl: Improve goroutine mgmt 2025-10-29 19:04:37 +01:00
ttlafterfinished controller/ttlafterfinished: Improve goroutine mgmt 2025-10-29 19:04:37 +01:00
util Add the ability for the job controller to read its own writes 2026-02-25 01:19:48 +00:00
validatingadmissionpolicystatus controller/validatingadmissionpolicystatus: Improve goroutine mgmt 2025-10-29 19:07:10 +01:00
volume Merge pull request #134290 from huww98/kcm-no-get-pv 2026-03-12 05:13:35 +05:30
controller_ref_manager.go kube-controller-manager: finish conversion to contextual logging 2023-07-12 14:57:29 +02:00
controller_ref_manager_test.go
controller_utils.go Add the ability for the job controller to read its own writes 2026-02-25 01:19:48 +00:00
controller_utils_test.go Add the ability for the job controller to read its own writes 2026-02-25 01:19:48 +00:00
doc.go remove import doc comments 2024-12-02 16:59:34 +01:00
OWNERS Add jefftree to OWNERS 2025-08-04 19:12:13 +00:00