mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Log new size and old sizes
This commit is contained in:
parent
fb9db79d3f
commit
50f1e16e4d
@ -246,7 +246,7 @@ func (p *ephemeralTestSuite) DefineTests(driver storageframework.TestDriver, pat
|
|||||||
currentPvcSize := pvc.Spec.Resources.Requests[v1.ResourceStorage]
|
currentPvcSize := pvc.Spec.Resources.Requests[v1.ResourceStorage]
|
||||||
newSize := currentPvcSize.DeepCopy()
|
newSize := currentPvcSize.DeepCopy()
|
||||||
newSize.Add(resource.MustParse("1Gi"))
|
newSize.Add(resource.MustParse("1Gi"))
|
||||||
framework.Logf("currentPvcSize %v, newSize %v", currentPvcSize, newSize)
|
framework.Logf("currentPvcSize %s, requested new size %s", currentPvcSize.String(), newSize.String())
|
||||||
|
|
||||||
newPVC, err := ExpandPVCSize(pvc, newSize, f.ClientSet)
|
newPVC, err := ExpandPVCSize(pvc, newSize, f.ClientSet)
|
||||||
framework.ExpectNoError(err, "While updating pvc for more size")
|
framework.ExpectNoError(err, "While updating pvc for more size")
|
||||||
@ -255,7 +255,7 @@ func (p *ephemeralTestSuite) DefineTests(driver storageframework.TestDriver, pat
|
|||||||
|
|
||||||
pvcSize := pvc.Spec.Resources.Requests[v1.ResourceStorage]
|
pvcSize := pvc.Spec.Resources.Requests[v1.ResourceStorage]
|
||||||
if pvcSize.Cmp(newSize) != 0 {
|
if pvcSize.Cmp(newSize) != 0 {
|
||||||
framework.Failf("error updating pvc size %q", pvc.Name)
|
framework.Failf("error updating pvc %s from %s to %s size", pvc.Name, currentPvcSize.String(), newSize.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
ginkgo.By("Waiting for cloudprovider resize to finish")
|
ginkgo.By("Waiting for cloudprovider resize to finish")
|
||||||
|
Loading…
Reference in New Issue
Block a user