Commit e97c00c
Add
## Summary
Add a new `engine` field at the bundle/target level that allows users to
configure the deployment engine (`"terraform"` or `"direct"`) in their
bundle config.
### Behavior
- New bundles (no existing state): uses the configured engine, or
defaults to `terraform`
- Existing bundles (state present): if the configured engine doesn't
match state, a **warning** is issued pointing to the config source, and
the existing state's engine is used. Note, this is different from
current behaviour, where databricks CLI refuses to proceed with
config/state mismatch.
- Priority: state > `DATABRICKS_BUNDLE_ENGINE` env var > `bundle.engine`
config > default
### Example
```yaml
bundle:
name: my-bundle
engine: direct
targets:
production:
bundle:
engine: terraform
```
## Test plan
Unit tests and acceptance tests.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>bundle.engine config setting for deployment engine selection (#4749)1 parent 146c0dc commit e97c00c
58 files changed
Lines changed: 518 additions & 169 deletions
File tree
- acceptance/bundle
- deploy/readplan/terraform-error
- migrate
- basic
- dashboards
- engine-config-direct
- engine-config-terraform
- grants
- permissions
- state
- engine_mismatch
- state_present
- validate
- engine-config-valid
- invalid-engine-bundle
- invalid-engine-target
- bundle
- config
- engine
- validate
- internal/schema
- phases
- schema
- statemgmt
- cmd/bundle
- deployment
- generate
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 30 | + | |
| 31 | + | |
44 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
45 | 38 | | |
46 | 39 | | |
47 | 40 | | |
48 | 41 | | |
49 | | - | |
| 42 | + | |
50 | 43 | | |
51 | 44 | | |
52 | 45 | | |
| |||
93 | 86 | | |
94 | 87 | | |
95 | 88 | | |
96 | | - | |
| 89 | + | |
97 | 90 | | |
98 | 91 | | |
99 | | - | |
| 92 | + | |
100 | 93 | | |
101 | 94 | | |
102 | | - | |
103 | | - | |
| 95 | + | |
| 96 | + | |
104 | 97 | | |
105 | 98 | | |
106 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 20 | + | |
| 21 | + | |
34 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
35 | 28 | | |
36 | 29 | | |
37 | 30 | | |
| |||
54 | 47 | | |
55 | 48 | | |
56 | 49 | | |
57 | | - | |
| 50 | + | |
58 | 51 | | |
59 | 52 | | |
60 | | - | |
| 53 | + | |
61 | 54 | | |
62 | 55 | | |
63 | | - | |
64 | | - | |
| 56 | + | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments