Skip to content

Commit

Permalink
WIP: add rbd namespace test
Browse files Browse the repository at this point in the history
Signed-off-by: Oded Viner <[email protected]>
  • Loading branch information
OdedViner committed Dec 12, 2024
1 parent d3a34a2 commit 3b3fe53
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/github-action-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,26 @@ deploy_csi_driver_default_ns() {
kubectl create -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/csi/rbd/pvc.yaml
kubectl create -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/csi/cephfs/storageclass.yaml
kubectl create -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/csi/cephfs/pvc.yaml

# rasdos namespace
kubectl create -f https://raw.githubusercontent.com/rook/rook/523cda2c5c22341205a7b0b2d3a02a00adac2ba8/deploy/examples/csi/rbd/cephblockpool.yaml
sleep 5
kubectl create -f https://raw.githubusercontent.com/rook/rook/523cda2c5c22341205a7b0b2d3a02a00adac2ba8/deploy/examples/csi/rbd/cephblockpoolradosnamespace.yaml
sleep 5
curl https://raw.githubusercontent.com/rook/rook/523cda2c5c22341205a7b0b2d3a02a00adac2ba8/deploy/examples/csi/rbd/storageclass-radosnamespace.yaml -o storageclass-rados-namespace.yaml
cluster_id=$(kubectl -n rook-ceph get cephblockpoolradosnamespace/namespace-a -o jsonpath='{.status.info.clusterID}')
sed -i "s|clusterID: clusterid|clusterID: ${cluster_id} |g" storageclass-rados-namespace.yaml
kubectl create -f storageclass-rados-namespace.yaml
sleep 5
curl https://raw.githubusercontent.com/rook/rook/523cda2c5c22341205a7b0b2d3a02a00adac2ba8/deploy/examples/csi/rbd/cephblockpoolradosnamespace.yaml -o cephblockpoolradosnamespace_b.yaml
sed -i "s|name: namespace-a|name: namespace-b |g" cephblockpoolradosnamespace_b.yaml
kubectl create -f cephblockpoolradosnamespace_b.yaml
sleep 5
curl https://raw.githubusercontent.com/rook/rook/master/deploy/examples/csi/rbd/pvc.yaml -o pvc-rados-namespace.yaml
sed -i "s|name: rbd-pvc|name: rbd-pvc-rados-namespace |g" pvc-rados-namespace.yaml
sed -i "s|storageClassName: rook-ceph-block|storageClassName: rook-ceph-block-rados-namespace |g" pvc-rados-namespace.yaml
kubectl create -f pvc-rados-namespace.yaml
sleep 10
}

deploy_csi_driver_custom_ns() {
Expand Down

0 comments on commit 3b3fe53

Please sign in to comment.