Correct role name check in RoleBinding exam1-task10.sh

This commit is contained in:
Sylvia Grewe 2025-03-30 19:27:12 +02:00 committed by GitHub
parent d522b8453a
commit c149f6873f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@ fi
TOTAL=$(( TOTAL + 10 )) TOTAL=$(( TOTAL + 10 ))
# check for the rolebinding to be set correctly # check for the rolebinding to be set correctly
if kubectl get -n access rolebinding -o yaml | grep lab1510role &>/dev/null && kubectl get -n access rolebinding -o yaml | grep lab1510access &>/dev/null if kubectl get -n access rolebinding -o yaml | grep role1510 &>/dev/null && kubectl get -n access rolebinding -o yaml | grep lab1510access &>/dev/null
then then
echo -e "\033[32m[OK]\033[0m\t\t rolebinding is set up the right way" echo -e "\033[32m[OK]\033[0m\t\t rolebinding is set up the right way"
SCORE=$(( SCORE + 10 )) SCORE=$(( SCORE + 10 ))