fix(k01): apply-schema drop owned objects and wait all clusters
build-and-push-harbor / docker-build-push (push) Waiting to run
build-and-push-harbor / docker-build-push (push) Waiting to run
This commit is contained in:
@@ -36,11 +36,13 @@ while IFS= read -r name; do
|
||||
clusters+=("$name")
|
||||
done < <(kubectl -n juwan get cluster -o jsonpath='{.items[*].metadata.name}' | tr ' ' '\n')
|
||||
|
||||
kubectl -n juwan wait --for=condition=Ready cluster.postgresql.cnpg.io --all --timeout=600s
|
||||
|
||||
for cluster in "${clusters[@]}"; do
|
||||
domain="${cluster%-db}"
|
||||
dir="$(domain_dir "$domain")"
|
||||
echo "$cluster"
|
||||
kubectl -n juwan wait --for=condition=Ready "cluster.postgresql.cnpg.io/${cluster}" --timeout=300s
|
||||
psql_exec "$cluster" "DROP OWNED BY app CASCADE;"
|
||||
psql_file "$cluster" "$SQL_DIR/common/update_updated_at_column.sql"
|
||||
for f in "$SQL_DIR/$dir"/*.sql; do
|
||||
[ -f "$f" ] || continue
|
||||
|
||||
Reference in New Issue
Block a user