Await input in Pod Security Admission demo script

Don't run through the whole thing including cleanup - let the user have
a go first.
pull/37587/head
Tim Bannister 2023-01-24 23:57:23 +00:00
parent 3c8df5ea55
commit 04cfb74c48
2 changed files with 8 additions and 4 deletions

View File

@ -70,8 +70,10 @@ spec:
EOF
kubectl apply -f -
# Wait
sleep 3
# Await input
sleep 1
( bash -c 'true' 2>/dev/null && bash -c 'read -p "Press any key to continue... " -n1 -s' ) || \
( printf "Press Enter to continue... " && read ) 1>&2
# Clean up
printf "\n\nCleaning up:\n" 1>&2

View File

@ -29,8 +29,10 @@ spec:
EOF
kubectl apply -n example -f -
# Wait
sleep 3
# Await input
sleep 1
( bash -c 'true' 2>/dev/null && bash -c 'read -p "Press any key to continue... " -n1 -s' ) || \
( printf "Press Enter to continue... " && read ) 1>&2
# Clean up
printf "\n\nCleaning up:\n" 1>&2