cka-SVV/labs/exam1-task4.sh
sandervanvugt db0687d4e2 message
2024-11-24 06:03:51 -08:00

9 lines
352 B
Bash

if kubectl get pv lab154 -o yaml | grep 'path.*/lab154' &>/dev/null
then
echo -e "\033[32m[OK]\033[0m\t\t a PersistentVolume with the name lab155 was found and it uses the right path"
SCORE=$(( SCORE + 10 ))
else
echo -e "\033[31m[FAIL]\033[0m\t\t PersistentVolume with the name lab155 using the right path was not found"
fi
TOTAL=$(( TOTAL + 10 ))