databricks-cli/libs/sync
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
..
diff.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
diff_test.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
dirset.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
dirset_test.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
event.go Drain sync event channel before returning (#253) 2023-03-16 17:48:17 +01:00
event_test.go Add optional JSON output for sync command (#230) 2023-03-08 10:27:19 +01:00
path.go Extend deployment mode support (#577) 2023-07-30 07:19:49 +00:00
path_test.go Remove base path checks during sync (#576) 2023-07-14 11:43:20 +02:00
snapshot.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
snapshot_test.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
sync.go Extend deployment mode support (#577) 2023-07-30 07:19:49 +00:00
watchdog.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00