Skip to content

Commit 883cca6

Browse files
authored
State upgraders for databricks_mws_workspaces to support GCP (Public Preview) (#1871)
This PR adds state upgraders for the changes you must make in `*.tf` files in the context of GCP usage: <img width="1293" alt="image" src="https://user-images.githubusercontent.com/259697/211378830-7019f2c5-b522-4c59-aae7-149791084bdc.png">
1 parent 096ef69 commit 883cca6

File tree

4 files changed

+351
-160
lines changed

4 files changed

+351
-160
lines changed

mws/acceptance/mws_workspaces_test.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func TestMwsAccGcpWorkspaces(t *testing.T) {
6767
workspace_name = "{env.TEST_PREFIX}-{var.RANDOM}"
6868
location = "{env.GOOGLE_REGION}"
6969
70-
cloud_resource_bucket {
70+
cloud_resource_container {
7171
gcp {
7272
project_id = "{env.GOOGLE_PROJECT}"
7373
}
@@ -99,18 +99,18 @@ func TestMwsAccGcpByovpcWorkspaces(t *testing.T) {
9999
workspace_name = "{env.TEST_PREFIX}-{var.RANDOM}"
100100
location = "{env.GOOGLE_REGION}"
101101
102-
cloud_resource_bucket {
102+
cloud_resource_container {
103103
gcp {
104104
project_id = "{env.GOOGLE_PROJECT}"
105105
}
106106
}
107-
network {
108-
network_id = databricks_mws_networks.this.network_id
109-
gcp_common_network_config {
110-
gke_connectivity_type = "PRIVATE_NODE_PUBLIC_MASTER"
111-
gke_cluster_master_ip_range = "10.3.0.0/28"
112-
}
113-
}
107+
108+
network_id = databricks_mws_networks.this.network_id
109+
110+
gke_config {
111+
connectivity_type = "PRIVATE_NODE_PUBLIC_MASTER"
112+
master_ip_range = "10.3.0.0/28"
113+
}
114114
}`,
115115
},
116116
})

0 commit comments

Comments
 (0)