Commit e737c98
authored
Default to direct deployment engine for new deployments (#5468)
## Summary
The direct deployment engine is now **Generally Available**. This
switches the default engine for *new* deployments from `terraform` to
`direct`.
Existing deployments are unaffected: the engine is read from recorded
state, and the new default only applies when there is no state and no
explicit engine set (neither `bundle.engine` config nor
`DATABRICKS_BUNDLE_ENGINE`).
To opt out of the direct engine, set `engine: terraform` under `bundle`
in `databricks.yml`, or set `DATABRICKS_BUNDLE_ENGINE=terraform`.
## Changes
- `bundle/config/engine/engine.go`: `Default` changed from
`EngineTerraform` to `EngineDirect`.
- `docs/direct.md`: status updated from Public Preview to Generally
Available (GA).
- `NEXT_CHANGELOG.md`: added a Notable Changes entry with the opt-out
path and a link to the migration docs.
- `acceptance/bundle/state/engine_default/`: new acceptance test that
deploys with the engine unset and no existing state, asserting the
direct engine is used (via the request User-Agent).
## Testing
- Unit tests for `bundle/config/...`, `bundle/statemgmt/...`,
`bundle/phases/...`, `cmd/bundle/...` pass.
- New acceptance test passes on both engine matrix variants.
This pull request and its description were written by Isaac.1 parent 9e7d7d7 commit e737c98
11 files changed
Lines changed: 45 additions & 7 deletions
File tree
- acceptance/bundle
- migrate/basic
- state/engine_default
- bundle/config/engine
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments