databricks-cli/internal
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
..
acc Fix secrets put-secret command (#545) 2023-07-05 17:30:54 +02:00
build Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
testdata/import_dir Add workspace import-dir command (#456) 2023-06-12 21:03:46 +02:00
alerts_test.go Update alerts command integration test (#512) 2023-06-22 10:30:52 +02:00
api_test.go Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
clusters_test.go Do not generate prompts for certain commands (#438) 2023-06-05 19:38:45 +02:00
filer_test.go Add filer.Filer implementation backed by the Files API (#474) 2023-06-19 18:29:13 +00:00
fs_cat_test.go Add TestAcc prefix to filer test and fix any failing tests (#611) 2023-07-26 13:03:10 +00:00
fs_cp_test.go Make local files default for fs commands (#506) 2023-06-23 16:07:09 +02:00
fs_ls_test.go Add TestAcc prefix to filer test and fix any failing tests (#611) 2023-07-26 13:03:10 +00:00
fs_mkdir_test.go Fix mkdir integration test on GCP (#620) 2023-07-27 13:24:34 +00:00
fs_rm_test.go Add TestAcc prefix to filer test and fix any failing tests (#611) 2023-07-26 13:03:10 +00:00
git_clone_test.go Fix git clone integration test for non-existing repo (#610) 2023-07-27 13:51:57 +00:00
helpers.go Remove dependency on global state in generated commands (#595) 2023-07-25 20:19:07 +02:00
locker_test.go Fix locker unlock for destroy (#492) 2023-06-19 15:57:25 +02:00
repos_test.go Add provider detection to the repos create command (#528) 2023-06-27 14:17:13 +02:00
secrets_test.go Remove dependency on global state for remaining commands (#613) 2023-07-27 10:03:08 +00:00
sync_test.go Extend deployment mode support (#577) 2023-07-30 07:19:49 +00:00
version_test.go Use cmdio in version command for `--output` flag (#419) 2023-06-01 12:03:22 +02:00
workspace_test.go Decode contents by default in workspace export command (#531) 2023-06-27 20:42:29 +02:00