mirror of https://github.com/databricks/cli.git
5f42791609
## Changes Added support for complex variables Now it's possible to add and use complex variables as shown below ``` bundle: name: complex-variables resources: jobs: my_job: job_clusters: - job_cluster_key: key new_cluster: ${var.cluster} tasks: - task_key: test job_cluster_key: key variables: cluster: description: "A cluster definition" type: complex default: spark_version: "13.2.x-scala2.11" node_type_id: "Standard_DS3_v2" num_workers: 2 spark_conf: spark.speculation: true spark.databricks.delta.retentionDurationCheck.enabled: false ``` Fixes #1298 - [x] Support for complex variables - [x] Allow variable overrides (with shortcut) in targets - [x] Don't allow to provide complex variables via flag or env variable - [x] Fail validation if complex value is used but not `type: complex` provided - [x] Support using variables inside complex variables ## Tests Added unit tests --------- Co-authored-by: shreyas-goenka <88374338+shreyas-goenka@users.noreply.github.com> |
||
---|---|---|
.. | ||
convert | ||
dynassert | ||
dynvar | ||
merge | ||
yamlloader | ||
yamlsaver | ||
kind.go | ||
kind_test.go | ||
location.go | ||
location_test.go | ||
mapping.go | ||
mapping_test.go | ||
path.go | ||
path_string.go | ||
path_string_test.go | ||
path_test.go | ||
pattern.go | ||
pattern_test.go | ||
value.go | ||
value_test.go | ||
value_underlying.go | ||
value_underlying_test.go | ||
visit.go | ||
visit_get.go | ||
visit_get_test.go | ||
visit_map.go | ||
visit_map_test.go | ||
visit_set.go | ||
visit_set_test.go | ||
walk.go | ||
walk_test.go |