databricks-cli/bundle
Anton Nekipelov e5f39b5916
Add support for experiments in deployment bind/unbind commands (#2434)
## Changes
1. Changed `FindResourceByConfigKey` to return experiment resources

## Why
This PR adds support for experiment resources in deployment operations,
enabling users to:
- Bind experiments using `databricks bundle deployment bind
<myexperiment_key> <experiment_id>`
- Unbind experiments using `databricks bundle deployment unbind
<myexperiment_key>`

Where:
- `myexperiment_key` is a resource key defined in the bundle's .yml file
- `experiment_id` references an existing experiment in the Databricks
workspace

These capabilities allow for more flexible resource management of
experiments within bundles.

## Tests
Added a new acceptance test that tests bind and unbind methods together
with bundle deployment and destruction.
2025-03-17 15:13:40 +00:00
..
apps Added a warning when `config` section is used in apps (#2416) 2025-03-03 16:40:28 +00:00
artifacts Remove bundle.{Seq,If,Defer,newPhase,logString}, switch to regular functions (#2390) 2025-02-27 11:41:58 +00:00
config Add support for experiments in deployment bind/unbind commands (#2434) 2025-03-17 15:13:40 +00:00
deploy Switch to use GET workspaces-files/{name} instead of workspace/export for state files (#2423) 2025-03-04 15:03:51 +00:00
docsgen Adapt docsgen output for new documentation framework (#2262) 2025-03-07 18:11:08 +00:00
env Remove support for DATABRICKS_BUNDLE_INCLUDES (#1317) 2024-03-27 10:13:54 +00:00
internal Adapt docsgen output for new documentation framework (#2262) 2025-03-07 18:11:08 +00:00
libraries Restrict same name libraries check for only whl and jar types (#2401) 2025-03-03 15:34:41 +00:00
metadata Make `file_path` and `artifact_path` fields consistent with json tag (#987) 2023-11-15 13:37:26 +00:00
paths Fixed adding /Workspace prefix for resource paths (#1866) 2024-10-30 17:34:11 +00:00
permissions Remove bundle.{Seq,If,Defer,newPhase,logString}, switch to regular functions (#2390) 2025-02-27 11:41:58 +00:00
phases Raise an error when there are multiple local libraries with the same basename used (#2382) 2025-02-27 16:32:50 +00:00
render Use CreatePipeline instead of PipelineSpec for resources.Pipeline struct (#2287) 2025-02-07 17:22:51 +00:00
resources Use CreatePipeline instead of PipelineSpec for resources.Pipeline struct (#2287) 2025-02-07 17:22:51 +00:00
run Remove bundle.{Seq,If,Defer,newPhase,logString}, switch to regular functions (#2390) 2025-02-27 11:41:58 +00:00
schema Adapt docsgen output for new documentation framework (#2262) 2025-03-07 18:11:08 +00:00
scripts Add acceptance test for 'experimental.scripts' (#2240) 2025-01-27 15:28:33 +00:00
tests Store DBR version in context (#2438) 2025-03-06 13:01:43 +00:00
trampoline Remove bundle.{Seq,If,Defer,newPhase,logString}, switch to regular functions (#2390) 2025-02-27 11:41:58 +00:00
bundle.go Do not modify/create .gitignore in bundle root (#2429) 2025-03-05 10:57:05 +00:00
bundle_test.go Enable testifylint and fix the issues (#2065) 2025-01-02 12:03:41 +01:00
context.go Rename variable `bundle -> b` (#989) 2023-11-15 14:03:36 +00:00
context_test.go Enable testifylint and fix the issues (#2065) 2025-01-02 12:03:41 +01:00
mutator.go Remove bundle.{Seq,If,Defer,newPhase,logString}, switch to regular functions (#2390) 2025-02-27 11:41:58 +00:00
mutator_read_only.go Remove bundle.{Parallel,ReadOnlyBundle} (#2414) 2025-03-03 13:35:36 +00:00
mutator_test.go Remove bundle.{Seq,If,Defer,newPhase,logString}, switch to regular functions (#2390) 2025-02-27 11:41:58 +00:00
root.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
root_test.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00