databricks-cli/bundle/phases
shreyas-goenka 2d93f62f21
Set metadata fields required to enable break-glass UI for jobs (#880)
## Changes

This PR sets the following fields for all jobs that are deployed from a
DAB
1. `deployment`: This provides the platform with the path to a file to
read the metadata from.
2. `edit_mode`: This tells the platform to display the break-glass UI
for jobs deployed from a DAB. Setting this is required to re-lock the UI
after a user clicks "disconnect from source".
3. `format = MULTI_TASK`. This makes the Terraform provider always use
jobs API 2.1 for creating/updating the job. Required because
`deployment` and `edit_mode` are only available in API 2.1.

## Tests

Unit test and manually. Manually verified that deployments trigger the
break glass UI. Manually verified there is no Terraform drift when all
three fields are set.

---------

Co-authored-by: Pieter Noordhuis <pieter.noordhuis@databricks.com>
2023-12-19 07:38:52 +00:00
..
build.go Added support for experimental scripts section (#632) 2023-09-14 10:14:13 +00:00
deploy.go Added support for top-level permissions (#928) 2023-11-13 11:29:40 +00:00
destroy.go Fix: bundle destroy fails when bundle.tf.json file is deleted (#519) 2023-07-05 21:58:06 +02:00
initialize.go Set metadata fields required to enable break-glass UI for jobs (#880) 2023-12-19 07:38:52 +00:00
phase.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00