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.
4.9 KiB
4.9 KiB