mirror of https://github.com/k3s-io/k3s
Merge pull request #27271 from jsafrane/integration-flake-2
Automatic merge from submit-queue volume integration: wait for PVs before creating PVCs The test should wait until all volumes are processed by volume controller (i.e. in the controller cache) before creating a PVC. Without that, the "best" matching PV could not be in the cache and controller might bind the PVC to suboptiomal one. This fixes integration test flake "Bind mismatch! Expected pvc-2 capacity 50000000000 but got pvc-2 capacity 52000000000". Fixes #27179 (together with #26894)pull/6/head
commit
913241c721
|
@ -296,6 +296,7 @@ func TestPersistentVolumeMultiPVs(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Errorf("Failed to create PersistentVolume %d: %v", i, err)
|
||||
}
|
||||
waitForPersistentVolumePhase(testClient, pvs[i].Name, watchPV, api.VolumeAvailable)
|
||||
}
|
||||
t.Log("volumes created")
|
||||
|
||||
|
|
Loading…
Reference in New Issue