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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
EnvMatrix.DATABRICKS_BUNDLE_ENGINE = ["terraform"] # clusters not implemented

[EnvMatrix]
DATA_SECURITY_MODE = [
"USER_ISOLATION",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

2 changes: 2 additions & 0 deletions acceptance/bundle/override/clusters/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"max_workers": 7,
"min_workers": 2
},
"autotermination_minutes": 60,
"cluster_name": "foo",
"node_type_id": "[NODE_TYPE_ID]",
"num_workers": 2,
Expand All @@ -20,6 +21,7 @@
"max_workers": 3,
"min_workers": 1
},
"autotermination_minutes": 60,
"cluster_name": "foo-override",
"node_type_id": "m5.xlarge",
"num_workers": 3,
Expand Down
1 change: 1 addition & 0 deletions acceptance/bundle/override/merge-string-map/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Warning: expected map, found string
{
"clusters": {
"my_cluster": {
"autotermination_minutes": 60,
"spark_version": "25"
}
}
Expand Down
256 changes: 256 additions & 0 deletions acceptance/bundle/refschema/out.fields.txt

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
bundle:
name: test-deploy-cluster-autoscale

workspace:
root_path: ~/.bundle/$UNIQUE_NAME

resources:
clusters:
test_cluster:
cluster_name: test-cluster-$UNIQUE_NAME
spark_version: $DEFAULT_SPARK_VERSION
node_type_id: $NODE_TYPE_ID
num_workers: 2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print("Hello World!")
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
{
"plan": {
"resources.clusters.test_cluster": {
"action": "create",
"new_state": {
"config": {
"autotermination_minutes": 60,
"cluster_name": "test-cluster-[UNIQUE_NAME]",
"node_type_id": "[NODE_TYPE_ID]",
"num_workers": 2,
"spark_version": "13.3.x-snapshot-scala2.12"
}
}
}
}
}
{
"plan": {
"resources.clusters.test_cluster": {
"action": "update",
"new_state": {
"config": {
"autoscale": {
"max_workers": 4,
"min_workers": 2
},
"autotermination_minutes": 60,
"cluster_name": "test-cluster-[UNIQUE_NAME]",
"node_type_id": "[NODE_TYPE_ID]",
"spark_version": "13.3.x-snapshot-scala2.12"
}
},
"remote_state": {
"autotermination_minutes": 60,
"cluster_id": "[CLUSTER_ID]",
"cluster_name": "test-cluster-[UNIQUE_NAME]",
"node_type_id": "[NODE_TYPE_ID]",
"num_workers": 2,
"spark_version": "13.3.x-snapshot-scala2.12"
},
"changes": {
"local": {
"autoscale": {
"action": "update"
},
"num_workers": {
"action": "update"
}
}
}
}
}
}
{
"plan": {
"resources.clusters.test_cluster": {
"action": "update",
"new_state": {
"config": {
"autoscale": {
"max_workers": 5,
"min_workers": 3
},
"autotermination_minutes": 60,
"cluster_name": "test-cluster-[UNIQUE_NAME]",
"node_type_id": "[NODE_TYPE_ID]",
"spark_version": "13.3.x-snapshot-scala2.12"
}
},
"remote_state": {
"autoscale": {
"max_workers": 4,
"min_workers": 2
},
"autotermination_minutes": 60,
"cluster_id": "[CLUSTER_ID]",
"cluster_name": "test-cluster-[UNIQUE_NAME]",
"node_type_id": "[NODE_TYPE_ID]",
"spark_version": "13.3.x-snapshot-scala2.12"
},
"changes": {
"local": {
"autoscale.max_workers": {
"action": "update"
},
"autoscale.min_workers": {
"action": "update"
}
}
}
}
}
}
{
"plan": {
"resources.clusters.test_cluster": {
"action": "resize",
"new_state": {
"config": {
"autoscale": {
"max_workers": 6,
"min_workers": 4
},
"autotermination_minutes": 60,
"cluster_name": "test-cluster-[UNIQUE_NAME]",
"node_type_id": "[NODE_TYPE_ID]",
"spark_version": "13.3.x-snapshot-scala2.12"
}
},
"remote_state": {
"autoscale": {
"max_workers": 5,
"min_workers": 3
},
"autotermination_minutes": 60,
"cluster_id": "[CLUSTER_ID]",
"cluster_name": "test-cluster-[UNIQUE_NAME]",
"node_type_id": "[NODE_TYPE_ID]",
"spark_version": "13.3.x-snapshot-scala2.12",
"state": "RUNNING"
},
"changes": {
"local": {
"autoscale.max_workers": {
"action": "resize"
},
"autoscale.min_workers": {
"action": "resize"
}
}
}
}
}
}
{
"plan": {
"resources.clusters.test_cluster": {
"action": "resize",
"new_state": {
"config": {
"autotermination_minutes": 60,
"cluster_name": "test-cluster-[UNIQUE_NAME]",
"node_type_id": "[NODE_TYPE_ID]",
"num_workers": 3,
"spark_version": "13.3.x-snapshot-scala2.12"
}
},
"remote_state": {
"autoscale": {
"max_workers": 6,
"min_workers": 4
},
"autotermination_minutes": 60,
"cluster_id": "[CLUSTER_ID]",
"cluster_name": "test-cluster-[UNIQUE_NAME]",
"node_type_id": "[NODE_TYPE_ID]",
"spark_version": "13.3.x-snapshot-scala2.12",
"state": "RUNNING"
},
"changes": {
"local": {
"autoscale": {
"action": "resize"
},
"num_workers": {
"action": "resize"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
create clusters.test_cluster

Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged
update clusters.test_cluster

Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
update clusters.test_cluster

Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
resize clusters.test_cluster

Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
resize clusters.test_cluster

Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"plan": {
"resources.clusters.test_cluster": {
"action": "create"
}
}
}
{
"plan": {
"resources.clusters.test_cluster": {
"action": "update"
}
}
}
{
"plan": {
"resources.clusters.test_cluster": {
"action": "update"
}
}
}
{
"plan": {
"resources.clusters.test_cluster": {
"action": "update"
}
}
}
{
"plan": {
"resources.clusters.test_cluster": {
"action": "update"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
create clusters.test_cluster

Plan: 1 to add, 0 to change, 0 to delete, 0 unchanged
update clusters.test_cluster

Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
update clusters.test_cluster

Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
update clusters.test_cluster

Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged
update clusters.test_cluster

Plan: 0 to add, 1 to change, 0 to delete, 0 unchanged

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading