@@ -49,10 +49,10 @@ func expandPVCSize(c kubernetes.Interface, pvc *v1.PersistentVolumeClaim, size s
4949 Expect (err ).ShouldNot (HaveOccurred ())
5050
5151 start := time .Now ()
52- framework .Logf ("Waiting up to %v to be in Resized state" , pvc )
52+ framework .Logf ("Waiting up to %v to be in Resized state" , updatedPVC )
5353
5454 return wait .PollUntilContextTimeout (ctx , poll , timeout , true , func (ctx context.Context ) (bool , error ) {
55- framework .Logf ("waiting for PVC %s (%d seconds elapsed)" , pvcName , int (time .Since (start ).Seconds ()))
55+ framework .Logf ("waiting for PVC %s to be resized (%d seconds elapsed)" , pvcName , int (time .Since (start ).Seconds ()))
5656 updatedPVC , err = c .CoreV1 ().
5757 PersistentVolumeClaims (pvcNamespace ).
5858 Get (ctx , pvcName , metav1.GetOptions {})
@@ -66,6 +66,9 @@ func expandPVCSize(c kubernetes.Interface, pvc *v1.PersistentVolumeClaim, size s
6666 }
6767 pvcConditions := updatedPVC .Status .Conditions
6868 if len (pvcConditions ) > 0 {
69+ for _ , con := range pvcConditions {
70+ framework .Logf ("pvc %s condition %v" , pvcName , con )
71+ }
6972 framework .Logf ("pvc state %v" , pvcConditions [0 ].Type )
7073 if pvcConditions [0 ].Type == v1 .PersistentVolumeClaimResizing ||
7174 pvcConditions [0 ].Type == v1 .PersistentVolumeClaimFileSystemResizePending {
0 commit comments