databricks-cli/libs/template
Pieter Noordhuis 886e14910c
Fix template initialization when running on Databricks (#1912)
## Changes

When running the CLI on Databricks Runtime (DBR), use the
extension-aware filer to write an instantiated template if the instance
path is located in the workspace filesystem.

Notebooks cannot be written through the workspace filesystem's FUSE
mount. As a result, this is the only method for initializing templates
that contain notebooks when running the CLI on DBR and writing to the
workspace filesystem.

Depends on #1910 and #1911.

Supersedes #1744.

## Tests

* Manually confirmed I can initialize a template with notebooks when
running the CLI from the web terminal.
2024-11-20 11:42:23 +00:00
..
templates Fix pipeline in default-python template not working for certain workspaces (#1854) 2024-10-22 15:52:46 +00:00
testdata Fix ability to import the CLI repository as module (#1671) 2024-08-12 14:20:04 +00:00
builtin.go Use `fs.FS` interface to read template (#1910) 2024-11-20 09:28:35 +00:00
builtin_test.go Use `fs.FS` interface to read template (#1910) 2024-11-20 09:28:35 +00:00
config.go Use `fs.FS` interface to read template (#1910) 2024-11-20 09:28:35 +00:00
config_test.go Use `filer.Filer` to write template instantiation (#1911) 2024-11-20 11:11:31 +01:00
file.go Use `filer.Filer` to write template instantiation (#1911) 2024-11-20 11:11:31 +01:00
file_test.go Use `filer.Filer` to write template instantiation (#1911) 2024-11-20 11:11:31 +01:00
helpers.go Ignore metastore permission error during template generation (#1819) 2024-10-11 12:28:56 +00:00
helpers_test.go Use `filer.Filer` to write template instantiation (#1911) 2024-11-20 11:11:31 +01:00
materialize.go Fix template initialization when running on Databricks (#1912) 2024-11-20 11:42:23 +00:00
materialize_test.go Fix template initialization when running on Databricks (#1912) 2024-11-20 11:42:23 +00:00
renderer.go Use `filer.Filer` to write template instantiation (#1911) 2024-11-20 11:11:31 +01:00
renderer_test.go Use `filer.Filer` to write template instantiation (#1911) 2024-11-20 11:11:31 +01:00