#!/bin/bash set -ex test_scratch_device=/dev/nvme0n1 if [ $# -ge 1 ] ; then test_scratch_device=$1 fi lsblk if [ ! -b "${test_scratch_device}" ] ; then echo "invalid scratch device, not a block device: ${test_scratch_device}" >&2 exit 1 fi sudo rm -rf /var/lib/rook/rook-integration-test sudo mkdir -p /var/lib/rook/rook-integration-test/mon1 /var/lib/rook/rook-integration-test/mon2 /var/lib/rook/rook-integration-test/mon3 node_name=$(kubectl get nodes -o jsonpath={.items[*].metadata.name}) kubectl label nodes ${node_name} rook.io/has-disk=true kubectl delete pv -l type=local cat <