databricks-cli/bundle/deploy
shreyas-goenka 507053ee50
Annotate DLT pipelines when deployed using DABs (#1410)
## Changes
This PR annotates any pipelines that were deployed using DABs to have
`deployment.kind` set to "BUNDLE", mirroring the annotation for Jobs
(similar PR for jobs FYI: https://github.com/databricks/cli/pull/880).

Breakglass UI is not yet available for pipelines, so this annotation
will just be used for revenue attribution ATM.

Note: The API field has been deployed in all regions including GovCloud.

## Tests
Unit tests and manually.

Manually verified that the kind and metadata_file_path are being set by
DABs, and are returned by a GET API to a pipeline deployed using a DAB.
Example:
```
    "deployment": {
      "kind":"BUNDLE",
      "metadata_file_path":"/Users/shreyas.goenka@databricks.com/.bundle/bundle-playground/default/state/metadata.json"
    },
```
2024-05-01 08:37:03 +00:00
..
files Cleanup remote file path on bundle destroy (#1374) 2024-04-19 11:48:04 +00:00
lock Return `diag.Diagnostics` from mutators (#1305) 2024-03-25 14:18:47 +00:00
metadata Annotate DLT pipelines when deployed using DABs (#1410) 2024-05-01 08:37:03 +00:00
terraform Don't fail while parsing outdated terraform state (#1404) 2024-05-01 08:22:35 +00:00
check_running_resources.go Don't fail while parsing outdated terraform state (#1404) 2024-05-01 08:22:35 +00:00
check_running_resources_test.go Don't fail while parsing outdated terraform state (#1404) 2024-05-01 08:22:35 +00:00
filer.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
state.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
state_pull.go Added validate mutator to surface additional bundle warnings (#1352) 2024-04-18 15:13:16 +00:00
state_pull_test.go Update `testutil` helpers to return path (#1383) 2024-04-19 15:05:36 +00:00
state_push.go Return `diag.Diagnostics` from mutators (#1305) 2024-03-25 14:18:47 +00:00
state_push_test.go Move path field to bundle type (#1316) 2024-03-27 09:03:24 +00:00
state_test.go Added deployment state for bundles (#1267) 2024-03-18 14:41:58 +00:00
state_update.go Added validate mutator to surface additional bundle warnings (#1352) 2024-04-18 15:13:16 +00:00
state_update_test.go Move path field to bundle type (#1316) 2024-03-27 09:03:24 +00:00