-
Notifications
You must be signed in to change notification settings - Fork 168
Expand file tree
/
Copy pathscript
More file actions
23 lines (16 loc) · 780 Bytes
/
script
File metadata and controls
23 lines (16 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
envsubst < databricks.yml.tmpl > databricks.yml
cleanup() {
trace $CLI bundle destroy --auto-approve
rm -f out.requests.txt
}
trap cleanup EXIT
trace $CLI bundle validate
trace $CLI bundle summary
rm -f out.requests.txt
trace $CLI bundle deploy
# Get catalog details. Hide volatile fields so cloud and local match.
catalog_name="catalogs/lakebase_test_${UNIQUE_NAME}"
trace $CLI postgres get-catalog "${catalog_name}" | jq 'del(.create_time, .update_time, .uid)'
trace $CLI bundle summary
# Filter requests to only show postgres operations (exclude workspace, telemetry, and operation polling).
trace print_requests.py --keep --get '//postgres' '^//workspace-files/' '^//workspace/' '^//telemetry-ext' '^//operations/' > out.requests.$DATABRICKS_BUNDLE_ENGINE.json