Skip to content

List postgres databases during Lakebase plugin selection, add option to ignore fields in bundles#4634

Open
pkosiec wants to merge 6 commits intopkosiec/bump-go-sdkfrom
pkosiec/postgres-db-lister
Open

List postgres databases during Lakebase plugin selection, add option to ignore fields in bundles#4634
pkosiec wants to merge 6 commits intopkosiec/bump-go-sdkfrom
pkosiec/postgres-db-lister

Conversation

@pkosiec
Copy link
Member

@pkosiec pkosiec commented Mar 3, 2026

Changes

  • List postgres databases during Lakebase plugin selection
  • Add "bundleIgnore" field to exclude it from databricks.yml file (for Lakebase, we need a LAKEBASE_ENDPOINT env that shouldn't be listed in the DAB)
  • Fix the prompt title

See also databricks/appkit#132

Resolves https://databricks.atlassian.net/browse/LKB-10074

Testing

Test it together with #4634

  1. Build the CLI (make build)
  2. Run the databricks apps init command with custom template (locally cloned one) - replace the path: DATABRICKS_APPKIT_TEMPLATE_PATH="/Users/pawel.kosiec/repositories/databricks-os/appkit/template" dbx apps init
  3. Select Lakebase
  4. Select your project, branch and database
  5. DO NOT deploy your app yet
  6. Move to the databricks.yml
  • Remove the resources.apps.app.resources and all unused variables (postgres_branch, postgres_database).
  1. Deploy the app with databricks apps deploy
  2. Bind the Lakebase project to your App, click "Deploy" button again
  3. App should connect to Lakebase successfully

Demo

init-flow.mov

@pkosiec pkosiec temporarily deployed to test-trigger-is March 3, 2026 10:16 — with GitHub Actions Inactive
@eng-dev-ecosystem-bot
Copy link
Collaborator

eng-dev-ecosystem-bot commented Mar 3, 2026

Commit: 7bd03bc

Run: 22719474033

Env ❌​FAIL 🟨​KNOWN 🔄​flaky 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
❌​ aws linux 5 1 1 6 7 263 775 12:01
❌​ aws windows 5 1 1 6 7 265 773 11:20
❌​ aws-ucws linux 5 1 7 7 359 691 10:15
❌​ aws-ucws windows 5 1 7 7 361 689 8:23
❌​ gcp linux 14 2 9 253 776 24:35
29 interesting tests: 14 FAIL, 7 SKIP, 6 RECOVERED, 2 KNOWN
Test Name aws linux aws windows aws-ucws linux aws-ucws windows gcp linux
🟨​ TestAccept 🟨​K 🟨​K 🟨​K 🟨​K 🟨​K
❌​ TestAccept/bundle/deployment/bind/alert 🙈​s 🙈​s 🙈​s 🙈​s ❌​F
❌​ TestAccept/bundle/deployment/bind/alert/DATABRICKS_BUNDLE_ENGINE=direct ❌​F
❌​ TestAccept/bundle/deployment/bind/alert/DATABRICKS_BUNDLE_ENGINE=terraform ❌​F
❌​ TestAccept/bundle/generate/alert ✅​p ✅​p ✅​p ✅​p ❌​F
❌​ TestAccept/bundle/generate/alert/DATABRICKS_BUNDLE_ENGINE=direct ✅​p ✅​p ✅​p ✅​p ❌​F
❌​ TestAccept/bundle/generate/alert/DATABRICKS_BUNDLE_ENGINE=terraform ✅​p ✅​p ✅​p ✅​p ❌​F
❌​ TestAccept/bundle/resources/alerts/with_file ✅​p ✅​p ✅​p ✅​p ❌​F
❌​ TestAccept/bundle/resources/alerts/with_file/DATABRICKS_BUNDLE_ENGINE=direct ✅​p ✅​p ✅​p ✅​p ❌​F
❌​ TestAccept/bundle/resources/alerts/with_file/DATABRICKS_BUNDLE_ENGINE=terraform ✅​p ✅​p ✅​p ✅​p ❌​F
❌​ TestAccept/bundle/resources/dashboards/generate_inplace ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/dashboards/generate_inplace/DATABRICKS_BUNDLE_ENGINE=direct ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestAccept/bundle/resources/dashboards/generate_inplace/DATABRICKS_BUNDLE_ENGINE=terraform ❌​F ❌​F ❌​F ❌​F ❌​F
🙈​ TestAccept/bundle/resources/permissions 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions 💚​R 💚​R 💚​R 💚​R 🙈​S
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DATABRICKS_BUNDLE_ENGINE=direct 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DATABRICKS_BUNDLE_ENGINE=terraform 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions 💚​R 💚​R 💚​R 💚​R 🙈​S
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DATABRICKS_BUNDLE_ENGINE=direct 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DATABRICKS_BUNDLE_ENGINE=terraform 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/resources/postgres_branches/basic 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_branches/recreate 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_branches/update_protected 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_branches/without_branch_id 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_endpoints/recreate 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/synced_database_tables/basic 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🟨​ TestAccept/ssh/connection 🔄​f 🔄​f 💚​R 💚​R 🟨​K
❌​ TestDashboardAssumptions_WorkspaceImport ❌​F ❌​F ❌​F ❌​F ❌​F
❌​ TestImportFileFormatSource ❌​F ❌​F ❌​F ❌​F ❌​F
Top 10 slowest tests (at least 2 minutes):
duration env testname
3:27 aws-ucws windows TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
3:17 gcp linux TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
3:13 aws linux TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
3:09 aws linux TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
3:07 gcp linux TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
3:04 aws windows TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
2:57 aws-ucws windows TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
2:52 aws-ucws linux TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
2:52 aws-ucws linux TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
2:46 aws windows TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct

@pkosiec pkosiec force-pushed the pkosiec/postgres-db-lister branch from b31a392 to c8c3c0d Compare March 3, 2026 11:23
@pkosiec pkosiec changed the base branch from pkosiec/bump-go-sdk to pkosiec/bump-tf March 3, 2026 11:23
@pkosiec pkosiec temporarily deployed to test-trigger-is March 3, 2026 11:23 — with GitHub Actions Inactive
@pkosiec pkosiec temporarily deployed to test-trigger-is March 3, 2026 12:09 — with GitHub Actions Inactive
@pkosiec pkosiec changed the title List postgres databases during Lakebase plugin selection List postgres databases during Lakebase plugin selection, add option to ignore fields in bundles Mar 3, 2026
@pkosiec pkosiec temporarily deployed to test-trigger-is March 4, 2026 13:27 — with GitHub Actions Inactive
@pkosiec pkosiec temporarily deployed to test-trigger-is March 5, 2026 13:10 — with GitHub Actions Inactive
pkosiec and others added 6 commits March 5, 2026 14:40
Revert the description hint and Filtering(true/false) changes in
promptFromListWithLabel and PromptForAppSelection, as these are
addressed properly in PR #4603.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pkosiec pkosiec force-pushed the pkosiec/postgres-db-lister branch from 7bd03bc to e8ec949 Compare March 5, 2026 13:40
@pkosiec pkosiec changed the base branch from pkosiec/bump-tf to pkosiec/bump-go-sdk March 5, 2026 13:41
@pkosiec pkosiec marked this pull request as ready for review March 5, 2026 13:41
@pkosiec pkosiec requested a review from a team as a code owner March 5, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants