databricks-cli/bundle
Andrew Nester 4ee926b885
Added run_as section for bundle configuration (#692)
## Changes
Added run_as section for bundle configuration.

This section allows to define an user name or service principal which
will be applied as an execution identity for jobs and DLT pipelines. In
the case of DLT, identity defined in `run_as` will be assigned
`IS_OWNER` permission on this pipeline.

## Tests
Added unit tests for configuration.

Also ran deploy for the following bundle configuration

```
bundle:
  name: "run_as"

run_as:
  # service_principal_name: "f7263fcc-56d0-4981-8baf-c2a45296690b"
  user_name: "lennart.kats@databricks.com"

resources:
  pipelines:
    andrew_pipeline:
      name: "Andrew Nester pipeline"
      libraries:
        - notebook:
            path: ./test.py

  jobs:
    job_one:
      name: Job One
      tasks:
        - task_key: "task"
          new_cluster:
            num_workers: 1
            spark_version: 13.2.x-snapshot-scala2.12
            node_type_id: i3.xlarge
            runtime_engine: PHOTON
          notebook_task: 
            notebook_path: "./test.py"
```
2023-08-23 16:47:07 +00:00
..
artifacts Do not try auto detect Python package if no Python wheel tasks defined (#674) 2023-08-17 09:11:39 +00:00
config Added run_as section for bundle configuration (#692) 2023-08-23 16:47:07 +00:00
deploy Added support for sync.include and sync.exclude sections (#671) 2023-08-18 08:07:25 +00:00
deployer Fix locker unlock for destroy (#492) 2023-06-19 15:57:25 +02:00
internal/tf Upgraded Go version to 1.21 (#664) 2023-08-15 13:50:40 +00:00
libraries Do not try auto detect Python package if no Python wheel tasks defined (#674) 2023-08-17 09:11:39 +00:00
phases Added run_as section for bundle configuration (#692) 2023-08-23 16:47:07 +00:00
run Add development runs (#522) 2023-07-12 08:51:54 +02:00
schema Renamed `environments` to `targets` in bundle configuration (#670) 2023-08-17 15:22:32 +00:00
tests Added run_as section for bundle configuration (#692) 2023-08-23 16:47:07 +00:00
bundle.go Added support for sync.include and sync.exclude sections (#671) 2023-08-18 08:07:25 +00:00
bundle_test.go Renamed `environments` to `targets` in bundle configuration (#670) 2023-08-17 15:22:32 +00:00
context.go Make sync command work in bundle context; reorder args (#207) 2023-02-20 11:33:30 +01:00
context_test.go Add command that writes the materialized bundle configuration to stdout (#95) 2022-11-21 15:39:53 +01:00
deferred.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
deferred_test.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
mutator.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
mutator_test.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
root.go First look for databricks.yml before falling back to bundle.yml (#580) 2023-07-18 12:16:34 +02:00
root_test.go Log the bundle root configuration file if applicable (#657) 2023-08-11 12:28:05 +00:00
seq.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
seq_test.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00