Skip to content

Commit 058efce

Browse files
committed
Move node pools as well
1 parent f2fe28d commit 058efce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

helpers/migrate.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@
2626
"resource_type": "google_container_cluster",
2727
"name": "zonal_primary",
2828
"rename": "primary",
29-
"replace": True,
29+
"module": ""
30+
},
31+
{
32+
"resource_type": "google_container_node_pool",
33+
"name": "zonal_pools",
34+
"rename": "pools",
3035
"module": ""
3136
},
3237
]
@@ -251,7 +256,6 @@ def migrate(statefile, dryrun=False):
251256

252257
# Group resources based on the module where they're defined.
253258
modules = group_by_module(resources)
254-
print('modules', len(modules))
255259

256260
# Filter our list of Terraform modules down to anything that looks like a
257261
# zonal GKE module. We key this off the presence off of

0 commit comments

Comments
 (0)