Skip to content

Commit

Permalink
e2e: add filesystem PVC resize test for radosNamespace
Browse files Browse the repository at this point in the history
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 1f17d25)
  • Loading branch information
clwluvw authored and mergify[bot] committed Jan 6, 2021
1 parent cb3ba5f commit 96245a3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions e2e/rbd.go
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,7 @@ var _ = Describe("RBD", func() {
if err != nil {
e2elog.Failf("failed to validate pvc and application binding with error %v", err)
}

// Resize Block PVC and check Device size within the namespace
// Block PVC resize is supported in kubernetes 1.16+
if k8sVersionGreaterEquals(f.ClientSet, 1, 16) {
Expand All @@ -1123,6 +1124,15 @@ var _ = Describe("RBD", func() {
}
}

// Resize Filesystem PVC and check application directory size
// Resize 0.3.0 is only supported from v1.15+
if k8sVersionGreaterEquals(f.ClientSet, 1, 15) {
err := resizePVCAndValidateSize(pvcPath, appPath, f)
if err != nil {
e2elog.Failf("failed to resize filesystem PVC %v", err)
}
}

// Create a PVC clone and bind it to an app within the namespace
// snapshot beta is only supported from v1.17+
if k8sVersionGreaterEquals(f.ClientSet, 1, 17) {
Expand Down

0 comments on commit 96245a3

Please sign in to comment.