e2e: no need to set Namespace for StorageClass

StorageClasses are cluster-wide, and do not need to have a Namespace
set.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2022-05-05 15:31:38 +02:00 committed by mergify[bot]
parent 70674565df
commit 5c1584671e
2 changed files with 0 additions and 2 deletions

View File

@ -99,7 +99,6 @@ func createCephfsStorageClass(
} }
sc.Parameters["clusterID"] = fsID sc.Parameters["clusterID"] = fsID
} }
sc.Namespace = cephCSINamespace
timeout := time.Duration(deployTimeout) * time.Minute timeout := time.Duration(deployTimeout) * time.Minute

View File

@ -149,7 +149,6 @@ func createRBDStorageClass(
delete(sc.Parameters, k) delete(sc.Parameters, k)
} }
} }
sc.Namespace = cephCSINamespace
if scOptions["volumeBindingMode"] == "WaitForFirstConsumer" { if scOptions["volumeBindingMode"] == "WaitForFirstConsumer" {
value := scv1.VolumeBindingWaitForFirstConsumer value := scv1.VolumeBindingWaitForFirstConsumer