Skip to content

Commit

Permalink
chore: fix script. (#4668)
Browse files Browse the repository at this point in the history
Signed-off-by: yy <[email protected]>
  • Loading branch information
lingdie committed Apr 9, 2024
1 parent d72a2b8 commit 35c599a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy/cloud/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ function gen_cockroachdbUri() {
STATEFULSET_NAME="sealos-cockroachdb"

while : ; do
if kubectl get statefulset NAME -n NAMESPACE >/dev/null 2>&1; then
if kubectl get statefulset $STATEFULSET_NAME -n $NAMESPACE >/dev/null 2>&1; then
echo "cockroachdb statefulset is created."
break
else
sleep 10
Expand Down

0 comments on commit 35c599a

Please sign in to comment.