kubernetes/pkg/controller/volume
Jan Safranek 045ca75c03 Deflake PV metrics unit test
Test 5-7 tries to delete a PVC at the very same time when it detects that
the PV controller started processing the PVC. The controller then sometimes
can't update the PVC and generate an event for it that the test expects.

From PV controller logs (not shown in CI):
> I1221 14:36:34.548160  104481 pv_controller.go:815] updating PersistentVolumeClaim[default/claim5-7] status: set phase Lost failed: cannot update claim claim5-7: claim not found

Typical error in CI:
> FAIL: TestControllerSync (83.22s)
> framework_test.go:202: Event "Warning ClaimLost" not emitted

Therefore wait for the PVC to be fully processed before deleting the PVC to
avoid races.
2021-12-21 15:36:44 +01:00
..
attachdetach Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
common generic ephemeral volume: graduation to GA 2021-10-11 20:54:20 +02:00
ephemeral Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
events hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
expand Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
persistentvolume Deflake PV metrics unit test 2021-12-21 15:36:44 +01:00
protectionutil hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
pvcprotection Remove StorageObjectInUseProtection feature gate logic 2021-11-03 00:13:50 +03:00
pvprotection Remove StorageObjectInUseProtection feature gate logic 2021-11-03 00:13:50 +03:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00