Skip to content

Commit 04cfb74

Browse files
author
Tim Bannister
committed
Await input in Pod Security Admission demo script
Don't run through the whole thing including cleanup - let the user have a go first.
1 parent 3c8df5e commit 04cfb74

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

content/en/examples/security/kind-with-cluster-level-baseline-pod-security.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ spec:
7070
EOF
7171
kubectl apply -f -
7272

73-
# Wait
74-
sleep 3
73+
# Await input
74+
sleep 1
75+
( bash -c 'true' 2>/dev/null && bash -c 'read -p "Press any key to continue... " -n1 -s' ) || \
76+
( printf "Press Enter to continue... " && read ) 1>&2
7577

7678
# Clean up
7779
printf "\n\nCleaning up:\n" 1>&2

content/en/examples/security/kind-with-namespace-level-baseline-pod-security.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ spec:
2929
EOF
3030
kubectl apply -n example -f -
3131

32-
# Wait
33-
sleep 3
32+
# Await input
33+
sleep 1
34+
( bash -c 'true' 2>/dev/null && bash -c 'read -p "Press any key to continue... " -n1 -s' ) || \
35+
( printf "Press Enter to continue... " && read ) 1>&2
3436

3537
# Clean up
3638
printf "\n\nCleaning up:\n" 1>&2

0 commit comments

Comments
 (0)