mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Wait for resizing condition
This commit is contained in:
		@@ -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 {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user