Skip to content

Commit 5a2e14b

Browse files
committed
ci: deploy the NVMe-oF gateway with Rook
Signed-off-by: Niels de Vos <ndevos@ibm.com>
1 parent e852b98 commit 5a2e14b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/rook.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ function deploy_rook() {
5656
kubectl_retry create -f "${TEMP_DIR}/cluster-test.yaml"
5757
fi
5858

59+
curl -o "${TEMP_DIR}/nvmeof-test.yaml" "${ROOK_URL}/nvmeof-test.yaml"
60+
sed -i 's|pool: nvmeof|pool: replicapool|g' "${TEMP_DIR}/nvmeof-test.yaml"
61+
kubectl_retry create -f "${TEMP_DIR}/nvmeof-test.yaml"
62+
5963
rm -rf "${TEMP_DIR}"
6064

6165
kubectl_retry create -f "${ROOK_URL}/toolbox.yaml"
@@ -85,6 +89,7 @@ function deploy_rook() {
8589

8690
function teardown_rook() {
8791
create_or_delete_subvolumegroup "delete"
92+
kubectl delete -f "${ROOK_URL}/nvmeof-test.yaml"
8893
kubectl delete -f "${ROOK_URL}/pool-test.yaml"
8994
kubectl delete -f "${ROOK_URL}/filesystem-test.yaml"
9095
kubectl delete -f "${ROOK_URL}/toolbox.yaml"

0 commit comments

Comments
 (0)