databricks-cli/bundle/config
Lennart Kats (databricks) d55652be07
Extend deployment mode support (#577)
## Changes

This adds `mode: production` option. This mode doesn't do any
transformations but verifies that an environment is configured correctly
for production:

```
environments:
  prod:
    mode: production

    # paths should not be scoped to a user (unless a service principal is used)
    root_path: /Shared/non_user_path/...

    # run_as and permissions should be set at the resource level (or at the top level when that is implemented)
    run_as:
      user_name: Alice
    permissions:
    - level: CAN_MANAGE
      user_name: Alice
```

Additionally, this extends the existing `mode: development` option,
* now prefixing deployed assets with `[dev your.user]` instead of just
`[dev`]
* validating that development deployments _are_ scoped to a user

## Related

https://github.com/databricks/cli/pull/578/files (in draft)

## Tests

Manual testing to validate the experience, error messages, and
functionality with all resource types. Automated unit tests.

---------

Co-authored-by: Fabian Jakobs <fabian.jakobs@databricks.com>
2023-07-30 07:19:49 +00:00
..
interpolation Update variable regex to support hyphens (#503) 2023-06-23 12:56:54 +02:00
mutator Extend deployment mode support (#577) 2023-07-30 07:19:49 +00:00
resources Update to Go SDK v0.8.0 (#351) 2023-04-21 10:30:20 +02:00
testdata First look for databricks.yml before falling back to bundle.yml (#580) 2023-07-18 12:16:34 +02:00
variable Add config environment support for variable overriding (#383) 2023-05-15 14:07:18 +02:00
artifact.go Added support for build command chaining and error on missing wheel (#607) 2023-07-26 12:58:52 +00:00
bundle.go Add development runs (#522) 2023-07-12 08:51:54 +02:00
environment.go Extend deployment mode support (#577) 2023-07-30 07:19:49 +00:00
git.go Add git config block to bundle config (#356) 2023-04-26 16:54:36 +02:00
lock.go Acquire lock prior to deploy (#270) 2023-03-22 16:37:26 +01:00
lock_test.go Acquire lock prior to deploy (#270) 2023-03-22 16:37:26 +01:00
resources.go Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
resources_test.go Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
root.go Require include glob patterns to be explicitly defined (#602) 2023-07-25 10:00:46 +02:00
root_test.go First look for databricks.yml before falling back to bundle.yml (#580) 2023-07-18 12:16:34 +02:00
workspace.go Extend deployment mode support (#577) 2023-07-30 07:19:49 +00:00