kubernetes/pkg/controller/volume
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
..
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 controller/volume/ephemeral: Improve goroutine mgmt 2025-11-04 23:58:15 +01:00
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
protectionutil Deprecate obsolete slice utility functions 2026-02-16 10:04:33 +01:00
pvcprotection Move dump package from apimachinery to k8s.io/utils 2026-02-12 07:34:19 -05:00
pvprotection Move dump package from apimachinery to k8s.io/utils 2026-02-12 07:34:19 -05:00
selinuxwarning Merge pull request #136912 from dfajmon/selinux-ga 2026-03-03 22:07:29 +05:30
vacprotection Move dump package from apimachinery to k8s.io/utils 2026-02-12 07:34:19 -05:00
OWNERS add sig/storage label for pkg/controller/volume package PR 2022-11-10 09:57:36 +08:00