mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Wait for resizing condition
This commit is contained in:
parent
e397797f9e
commit
03df6320e5
@ -461,7 +461,6 @@ var _ = utils.SIGDescribe("CSI mock volume", func() {
|
|||||||
init(tp)
|
init(tp)
|
||||||
defer cleanup()
|
defer cleanup()
|
||||||
|
|
||||||
ns := f.Namespace.Name
|
|
||||||
sc, pvc, pod := createPod(false)
|
sc, pvc, pod := createPod(false)
|
||||||
gomega.Expect(pod).NotTo(gomega.BeNil(), "while creating pod for resizing")
|
gomega.Expect(pod).NotTo(gomega.BeNil(), "while creating pod for resizing")
|
||||||
|
|
||||||
@ -505,8 +504,9 @@ var _ = utils.SIGDescribe("CSI mock volume", func() {
|
|||||||
checkPVCSize()
|
checkPVCSize()
|
||||||
} else {
|
} else {
|
||||||
ginkgo.By("Checking for conditions on pvc")
|
ginkgo.By("Checking for conditions on pvc")
|
||||||
pvc, err = m.cs.CoreV1().PersistentVolumeClaims(ns).Get(pvc.Name, metav1.GetOptions{})
|
npvc, err := testsuites.WaitForPendingFSResizeCondition(pvc, m.cs)
|
||||||
framework.ExpectNoError(err, "While fetching pvc after controller resize")
|
framework.ExpectNoError(err, "While waiting for pvc to have fs resizing condition")
|
||||||
|
pvc = npvc
|
||||||
|
|
||||||
inProgressConditions := pvc.Status.Conditions
|
inProgressConditions := pvc.Status.Conditions
|
||||||
if len(inProgressConditions) > 0 {
|
if len(inProgressConditions) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user