update the openbao helm chart test that runs after install to no longer use the vault command

Signed-off-by: jessebot <jessebot@linux.com>
This commit is contained in:
jessebot 2024-05-21 08:19:45 +02:00 committed by Nathan A Phelps
parent b59b6e55bb
commit 2c9d040059
3 changed files with 8 additions and 8 deletions

View file

@ -3,7 +3,7 @@
apiVersion: v2
name: openbao
version: 0.3.0
version: 0.4.0
appVersion: v2.0.0-alpha20240329
kubeVersion: ">= 1.27.0-0"
description: Official OpenBao Chart

View file

@ -1,6 +1,6 @@
# openbao
![Version: 0.3.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![AppVersion: v2.0.0-alpha20240329](https://img.shields.io/badge/AppVersion-v2.0.0--alpha20240329-informational?style=flat-square)
![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![AppVersion: v2.0.0-alpha20240329](https://img.shields.io/badge/AppVersion-v2.0.0--alpha20240329-informational?style=flat-square)
Official OpenBao Chart
@ -8,9 +8,9 @@ Official OpenBao Chart
## Maintainers
| Name | Email | Url |
|---------|------------------------------------|-----------------------|
| OpenBao | https://lists.lfedge.org/g/openbao | <https://openbao.org> |
| Name | Email | Url |
| ---- | ------ | --- |
| OpenBao | | <https://openbao.org> |
## Source Code

View file

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