Commit dccd2d0
committed
bundle: add bundle.managed_state config field + DMS test server
Introduce the managed-state configuration gate that future commits will
use to swap deployment locking (and, later, resource state management)
between the historical workspace-filesystem implementation and the new
Deployment Metadata Service (DMS) implementation.
The gate mirrors the existing bundle.engine pattern:
- bundle/config/managedstate/managedstate.go exposes the
DATABRICKS_BUNDLE_MANAGED_STATE env var, a Default constant, and a
Setting struct with location-aware source attribution.
- config.Bundle.ManagedState (json:"managed_state") is the bundle
config knob.
- cmd/bundle/utils.ResolveManagedStateSetting layers config > env >
Default with file/line source attribution.
Also lands the in-memory bundle deployment metadata service test
fixture (libs/testserver/deployment_metadata.go and route
registrations) so a follow-up that wires the real DMS-backed lock can
add its acceptance tests without further test-infra churn.
Acceptance coverage:
- acceptance/bundle/managed-state/gate-config asserts the config
field surfaces through bundle validate -o json.
- acceptance/bundle/managed-state/gate-env documents that the env
var deliberately does not mutate validated config (it is consumed
lazily at deploy/destroy/bind/unbind time).
No behavior changes for existing bundles -- nothing yet consumes the
new setting.1 parent 09f9090 commit dccd2d0
22 files changed
Lines changed: 731 additions & 1 deletion
File tree
- acceptance/bundle/managed-state
- gate-config
- gate-env
- bundle
- config
- managedstate
- docsgen/output
- internal/schema
- schema
- cmd/bundle/utils
- libs/testserver
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments