databricks-cli/cmd
Pieter Noordhuis ca534d596b
Load bundle configuration from mutator (#1318)
## Changes

Prior to this change, the bundle configuration entry point was loaded
from the function `bundle.Load`. Other configuration files were only
loaded once the caller applied the first set of mutators. This
separation was unnecessary and not ideal in light of gathering
diagnostics while loading _any_ configuration file, not just the ones
from the includes.

This change:
* Updates `bundle.Load` to only verify that the specified path is a
valid bundle root.
* Moves mutators that perform loading to `bundle/config/loader`.
* Adds a "load" phase that takes the place of applying
`DefaultMutators`.

Follow ups:
* Rename `bundle.Load` -> `bundle.Find` (because it no longer performs
loading)

This change depends on #1316 and #1317.

## Tests

Tests pass.
2024-03-27 10:49:05 +00:00
..
account Update Go SDK to v0.36.0 (#1304) 2024-03-22 13:15:54 +00:00
api Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
auth Ignore environment variables for `auth profiles` (#1189) 2024-02-08 12:25:51 +00:00
bundle Move path field to bundle type (#1316) 2024-03-27 09:03:24 +00:00
configure Filter out system clusters for `--configure-cluster` (#1031) 2023-11-30 09:59:11 +00:00
fs Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
labs Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
root Load bundle configuration from mutator (#1318) 2024-03-27 10:49:05 +00:00
sync Move path field to bundle type (#1316) 2024-03-27 09:03:24 +00:00
version Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
workspace Update Go SDK to v0.36.0 (#1304) 2024-03-22 13:15:54 +00:00
cmd.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00