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
parent
3c8df5ea55
commit
04cfb74c48
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue