Skip to content

chore: copy databricks.yml.tmpl to pre-rendered app templates#407

Merged
pkosiec merged 1 commit into
mainfrom
pkosiec/template-databricks.yml
Jun 2, 2026
Merged

chore: copy databricks.yml.tmpl to pre-rendered app templates#407
pkosiec merged 1 commit into
mainfrom
pkosiec/template-databricks.yml

Conversation

@pkosiec
Copy link
Copy Markdown
Member

@pkosiec pkosiec commented Jun 2, 2026

Summary

Updates tools/generate-app-templates.ts to copy databricks.yml.tmpl from the source template into each generated pre-rendered app directory.

This enables databricks apps init --template <pre-rendered> to render resource blocks, target variables, project name and workspace host via --set values — instead of keeping a static databricks.yml that requires post-hoc YAML manipulation.

How it works

  • The static databricks.yml remains as a readable reference
  • The CLI's copyTemplate() walks files in lexical order, so databricks.yml.tmpl renders second and overwrites the static file
  • --set values flow through {{.bundle.resources}}, {{.bundle.targetVariables}}, etc.

Related PRs

This pull request and its description were written by Isaac.

The generate-app-templates script now copies databricks.yml.tmpl from
the source template into each generated app directory. This enables
`databricks apps init --template <pre-rendered>` to render resource
blocks, target variables, and project identity via --set values.

The static databricks.yml remains as a readable reference; the CLI's
copyTemplate() lexical walk order ensures the .tmpl version overwrites
it in the output.

Co-authored-by: Isaac
@pkosiec pkosiec changed the title Copy databricks.yml.tmpl to pre-rendered app templates chore: copy databricks.yml.tmpl to pre-rendered app templates Jun 2, 2026
@pkosiec pkosiec marked this pull request as ready for review June 2, 2026 13:43
@pkosiec pkosiec requested a review from a team as a code owner June 2, 2026 13:43
@pkosiec pkosiec requested a review from calvarjorge June 2, 2026 13:43
@pkosiec pkosiec merged commit 24b8da2 into main Jun 2, 2026
10 of 11 checks passed
@pkosiec pkosiec deleted the pkosiec/template-databricks.yml branch June 2, 2026 13:58
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