e2e: remove 1.17 based test enablement in cephfs

Considering we are far out of these release and only care about
kubernetes releases from v1.20, there is no need to have this
version check in place for the tests.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal 2021-11-03 17:37:36 +05:30 committed by mergify[bot]
parent 2ac3f129c0
commit 7090a18141

View File

@ -659,8 +659,6 @@ var _ = Describe("cephfs", func() {
})
By("Delete snapshot after deleting subvolume and snapshot from backend", func() {
// snapshot beta is only supported from v1.17+
if k8sVersionGreaterEquals(f.ClientSet, 1, 17) {
err := createCephFSSnapshotClass(f)
if err != nil {
e2elog.Failf("failed to create CephFS snapshotclass with error %v", err)
@ -712,7 +710,6 @@ var _ = Describe("cephfs", func() {
if err != nil {
e2elog.Failf("failed to delete CephFS snapshotclass with error %v", err)
}
}
})
By("Test snapshot retention feature", func() {
@ -720,8 +717,7 @@ var _ = Describe("cephfs", func() {
// this should work because of the snapshot
// retention feature. Restore a PVC from that
// snapshot.
// snapshot beta is only supported from v1.17+
if k8sVersionGreaterEquals(f.ClientSet, 1, 17) {
err := createCephFSSnapshotClass(f)
if err != nil {
e2elog.Failf("failed to create CephFS snapshotclass with error %v", err)
@ -791,12 +787,9 @@ var _ = Describe("cephfs", func() {
if err != nil {
e2elog.Failf("failed to delete CephFS snapshotclass with error %v", err)
}
}
})
By("create a PVC clone and bind it to an app", func() {
// snapshot beta is only supported from v1.17+
if k8sVersionGreaterEquals(f.ClientSet, 1, 17) {
var wg sync.WaitGroup
totalCount := 3
wgErrs := make([]error, totalCount)
@ -1014,7 +1007,6 @@ var _ = Describe("cephfs", func() {
}
validateSubvolumeCount(f, 0, fileSystemName, subvolumegroup)
}
})
By("create a PVC-PVC clone and bind it to an app", func() {