Skip to content

feat(cli): write app.yaml + databricks.yml resource bindings on add - #520

Draft
MarioCadenas wants to merge 1 commit into
feat/registry-config-genfrom
feat/registry-parity-wire
Draft

feat(cli): write app.yaml + databricks.yml resource bindings on add#520
MarioCadenas wants to merge 1 commit into
feat/registry-config-genfrom
feat/registry-parity-wire

Conversation

@MarioCadenas

Copy link
Copy Markdown
Collaborator

Stack 5/7 — base: `feat/registry-config-gen`

What

Wires the deploy-config generator into `appkit add` for full parity:

  • After reconciling `.env`, builds a config plan from the added plugins' resources and additively patches `app.yaml` + `databricks.yml` (values from `--env`/prompts feed the bundle target variables).
  • Runs `databricks bundle validate` (with `--profile`) when `databricks.yml` changed, as a post-write correctness gate.
  • Warns when a resource type needs a `user_api_scope` (genie_space, volume, serving_endpoint) — scopes deferred to the manifest scope-extension follow-up.
  • Adds `-p/--profile` flag.

Tests

Tests for `scopesForResources`; the generator itself is covered in 4/7.

Part of the resource-aware `appkit add` stack (5/7).

Wires the deploy-config generator into 'appkit add' for full parity:

- After reconciling .env, builds a config plan from the added plugins'
  resources and additively patches app.yaml + databricks.yml (values from
  --env flags / prompts feed the bundle target variables).
- Runs 'databricks bundle validate' (with --profile) when databricks.yml
  changed, as a post-write correctness gate.
- Warns when a resource type needs a user_api_scope (genie_space, volume,
  serving_endpoint) since scopes are deferred to the manifest scope-extension
  follow-up.
- Adds -p/--profile flag. Tests for scopesForResources.

Signed-off-by: MarioCadenas <MarioCadenas@users.noreply.github.com>
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.

1 participant