Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
bundle:
name: environments-shorthand

variables:
short:
default: root_value
full:
default: root_value
complex:
type: complex
default:
key: root_value

# "environments" is the deprecated name of "targets".
environments:
dev:
variables:
short: target_value
full:
default: target_value
complex:
key: target_value
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Cloud = false
EnvMatrix.DMS = ["", "true"]
11 changes: 11 additions & 0 deletions acceptance/bundle/variables/environments_shorthand/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

>>> [CLI] bundle validate -o json -t dev
Warning: expected map, found string
at environments.dev.variables.short
in databricks.yml:18:14

Warning: unknown field: key
at environments.dev.variables.complex
in databricks.yml:22:9

{"complex":{"key":"root_value"},"full":"target_value","short":"root_value"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
trace $CLI bundle validate -o json -t dev | jq -c '.variables | map_values(.value)'
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Badness = "Short-form target variable overrides under the deprecated 'environments' key (short and complex here) are dropped with a warning, so the root value is used instead of target_value. The same overrides under 'targets', or in the full form, work."
Loading