databricks-cli/bundle/config
shreyas-goenka 6feaed4990
Fix host based auth conflicting with DEFAULT profile (#309)
## Changes
Consider the following host based configuration:
```
bundle:
  name: job_with_file_task

workspace:
  host: https://e2-dogfood.staging.cloud.databricks.com/
```

If you have a DEFAULT profile, then this host is ignored. The solution
proposed here is to remove the profile config loader if host is
explicitly specified in the bundle config.

This does come with a cost, namely that if a `DATABRICKS_CONFIG_PROFILE`
env var will be ignored, which maybe goes against unified auth spec

The ideal solution here is probably to make a change to go-SDK to not
select DEFAULT profile if host is not empty

## Tests
<!-- How is this tested? -->
2023-04-05 18:12:11 +02:00
..
interpolation Allow multiple lookup functions for interpolation (#128) 2022-12-12 10:48:52 +01:00
mutator Allow use of file library in pipeline (#308) 2023-04-05 16:29:42 +02:00
resources Add readonly bundle tag for internal fields (#302) 2023-04-04 12:16:07 +02:00
artifact.go Add readonly bundle tag for internal fields (#302) 2023-04-04 12:16:07 +02:00
bundle.go Add readonly bundle tag for internal fields (#302) 2023-04-04 12:16:07 +02:00
environment.go Add "default" flag to environment block (#142) 2022-12-15 21:28:14 +01: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 Add resources for mlflow models and experiments (#263) 2023-03-20 21:28:43 +01:00
root.go JSON Schema generator for golang types (#167) 2023-01-20 16:55:44 +01:00
root_test.go Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
workspace.go Fix host based auth conflicting with DEFAULT profile (#309) 2023-04-05 18:12:11 +02:00