Skip to content

Commit a062f13

Browse files
Use the new environment_version property (#3554)
## Changes This updates the DABs serverless example to use the new environment_version property instead of the deprecated client property. See https://docs.databricks.com/api/workspace/jobs/create. ## Tests * Tests were updated, functionality was manually validated
1 parent 8b7f506 commit a062f13

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

NEXT_CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@
1010

1111
### Bundles
1212

13+
* Updated templates to use the new "environment_version" property instead of the deprecated "client" property ([#3554](https://github.com/databricks/cli/pull/3554)).
14+
1315
### API Changes

acceptance/bundle/integration_whl/serverless/databricks.yml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ resources:
2222
environments:
2323
- environment_key: "test_env"
2424
spec:
25-
client: "1"
25+
environment_version: "2"
2626
dependencies:
2727
- ./dist/*.whl

acceptance/bundle/integration_whl/serverless_dynamic_version/databricks.yml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ resources:
2323
environments:
2424
- environment_key: "test_env"
2525
spec:
26-
client: "1"
26+
environment_version: "2"
2727
dependencies:
2828
- ./dist/*.whl

acceptance/bundle/templates/default-python/classic/out.compare-vs-serverless.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
- # Full documentation of this spec can be found at:
4242
- # https://docs.databricks.com/api/workspace/jobs/create#environments-spec
4343
- spec:
44-
- client: "2"
44+
- environment_version: "2"
4545
- dependencies:
4646
- - ../dist/*.whl
4747
+ job_clusters:

acceptance/bundle/templates/default-python/serverless/output/my_default_python/resources/my_default_python.job.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ resources:
4040
# Full documentation of this spec can be found at:
4141
# https://docs.databricks.com/api/workspace/jobs/create#environments-spec
4242
spec:
43-
client: "2"
43+
environment_version: "2"
4444
dependencies:
4545
- ../dist/*.whl

libs/template/templates/default-python/template/{{.project_name}}/resources/{{.project_name}}.job.yml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ resources:
7474
# Full documentation of this spec can be found at:
7575
# https://docs.databricks.com/api/workspace/jobs/create#environments-spec
7676
spec:
77-
client: "2"
77+
environment_version: "2"
7878
dependencies:
7979
- ../dist/*.whl
8080
{{end}}{{ else }}

0 commit comments

Comments
 (0)