kubernetes/pkg/controller
Davanum Srinivas 72b6f1b590
persistentvolume: deflake TestControllerSync 5-2-3 startup race
Subtest 5-2-3 starts the controller with both the claim and the volume
already present and with the volume annotated as controller-bound. That
setup depends on watch/list ordering during controller startup: if the
initial objects are observed in a different order, the test can time out
even though the controller later converges to the expected state.

Model the scenario more explicitly. Start with the unbound volume only,
then inject the claim through AddClaimEvent after the controller is
running. Also drop the pre-set controller-bound annotation from the
initial volume since the binding is what the test wants the controller to
establish.

Tested:
go test -race ./pkg/controller/volume/persistentvolume -run TestControllerSync -count=50
2026-03-14 11:58:33 -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 Fix goroutine leak in TestNodeSyncResync 2025-11-11 21:19:28 +05:30
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 persistentvolume: deflake TestControllerSync 5-2-3 startup race 2026-03-14 11:58:33 -04:00
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