mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-25 02:45:12 +00:00
Automatic merge from submit-queue (batch tested with PRs 67596, 67520, 67605). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Wait for Available in PV protection test **What this PR does / why we need it**: Just after creating a PV, its phase is "Pending" and its finalizers doesn't contain "kubernetes.io/pv-protection". If the e2e test performs so faster than the target k8s cluster, the test fails because the PV is not ready. This adds WaitForPersistentVolumePhase() for waiting the phase "Available" to avoid such situation. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #67519 **Release note**: NONE