the command is bao not openbao 🤦

Signed-off-by: jessebot <jessebot@linux.com>
This commit is contained in:
jessebot 2024-05-21 08:27:40 +02:00 committed by Nathan A Phelps
parent 2c9d040059
commit 754c4ee94d

View file

@ -27,18 +27,18 @@ spec:
- /bin/sh - /bin/sh
- -c - -c
- | - |
echo "Checking for sealed info in 'openbao status' output" echo "Checking for sealed info in 'bao status' output"
ATTEMPTS=10 ATTEMPTS=10
n=0 n=0
until [ "$n" -ge $ATTEMPTS ] until [ "$n" -ge $ATTEMPTS ]
do do
echo "Attempt" $n... echo "Attempt" $n...
openbao status -format yaml | grep -E '^sealed: (true|false)' && break bao status -format yaml | grep -E '^sealed: (true|false)' && break
n=$((n+1)) n=$((n+1))
sleep 5 sleep 5
done done
if [ $n -ge $ATTEMPTS ]; then if [ $n -ge $ATTEMPTS ]; then
echo "timed out looking for sealed info in 'openbao status' output" echo "timed out looking for sealed info in 'bao status' output"
exit 1 exit 1
fi fi