From 961c0a8d85035a5ee4854e3960ce1b8df8b90166 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Fri, 27 Sep 2024 14:32:11 +0200 Subject: [PATCH] e2e: enable more k8s storage tests enable more rbd specific storage tests Signed-off-by: Madhu Rajanna --- scripts/k8s-storage/driver-rbd-rwo.yaml | 8 ++++---- scripts/k8s-storage/volumesnapshotclass-rbd.yaml.in | 11 +++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 scripts/k8s-storage/volumesnapshotclass-rbd.yaml.in diff --git a/scripts/k8s-storage/driver-rbd-rwo.yaml b/scripts/k8s-storage/driver-rbd-rwo.yaml index c2c888e67..a0827aca7 100644 --- a/scripts/k8s-storage/driver-rbd-rwo.yaml +++ b/scripts/k8s-storage/driver-rbd-rwo.yaml @@ -6,7 +6,7 @@ StorageClass: SnapshotClass: # Must be set to enable snapshotting tests - FromName: true + FromExistingClassName: k8s-storage-e2e-rbd DriverInfo: # Internal name of the driver, display name in the test case and test objects @@ -51,7 +51,7 @@ DriverInfo: volumeLimits: false # Support for volume expansion in controllers - controllerExpansion: false + controllerExpansion: true # Support for volume expansion in nodes nodeExpansion: true @@ -66,7 +66,7 @@ DriverInfo: topology: false # Support populate data from snapshot - snapshotDataSource: false + snapshotDataSource: true # Support populated data from PVC - pvcDataSource: false + pvcDataSource: true diff --git a/scripts/k8s-storage/volumesnapshotclass-rbd.yaml.in b/scripts/k8s-storage/volumesnapshotclass-rbd.yaml.in new file mode 100644 index 000000000..499c70e68 --- /dev/null +++ b/scripts/k8s-storage/volumesnapshotclass-rbd.yaml.in @@ -0,0 +1,11 @@ +--- +apiVersion: snapshot.storage.k8s.io/v1 +kind: VolumeSnapshotClass +metadata: + name: k8s-storage-e2e-rbd +driver: rbd.csi.ceph.com +parameters: + clusterID: @@CLUSTER_ID@@ + csi.storage.k8s.io/snapshotter-secret-name: rook-csi-rbd-provisioner + csi.storage.k8s.io/snapshotter-secret-namespace: rook-ceph +deletionPolicy: Delete