From 03ef6007dafbf35f7fe64b0dbf4605a6de541de6 Mon Sep 17 00:00:00 2001 From: Aashiq-J <122446118+Aashiq-J@users.noreply.github.com> Date: Wed, 18 Sep 2024 19:56:57 +0530 Subject: [PATCH 1/3] docs: update README --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 218916fd..a1df0386 100644 --- a/README.md +++ b/README.md @@ -140,19 +140,17 @@ For a cluster with 2 worker pools, named 'default' and 'secondarypool', follow t $ terraform state list | grep ibm_container_vpc_worker_pool > module.ocp_base.data.ibm_container_vpc_worker_pool.all_pools["default"] > module.ocp_base.data.ibm_container_vpc_worker_pool.all_pools["secondarypool"] + > module.ocp_base.ibm_container_vpc_worker_pool.pool["default"] + > module.ocp_base.ibm_container_vpc_worker_pool.pool["secondarypool"] > ... - $ terraform state rm "module.ocp_base.ibm_container_vpc_worker_pool.all_pools[\"default\"]" - $ terraform state rm "module.ocp_base.ibm_container_vpc_worker_pool.all_pools[\"secondarypool\"]" - $ ... + $ terraform state rm "module.ocp_base.ibm_container_vpc_worker_pool.pool[\"default\"]" ``` Schematics Example: For a cluster with 2 worker pools, named 'default' and 'secondarypool', follow these steps: ```sh - $ ibmcloud schematics workspace state rm --id --address "module.ocp_base.ibm_container_vpc_worker_pool.all_pools[\"default\"]" - $ ibmcloud schematics workspace state rm --id --address "module.ocp_base.ibm_container_vpc_worker_pool.all_pools[\"secondarypool\"]" - $ ... + $ ibmcloud schematics workspace state rm --id --address "module.ocp_base.ibm_container_vpc_worker_pool.pool[\"default\"]" ``` **Changes Requiring Re-creation of Default Worker Pool** From 7946a65033a49cb2196cd9959630d50ae8386765 Mon Sep 17 00:00:00 2001 From: Aashiq-J <122446118+Aashiq-J@users.noreply.github.com> Date: Wed, 18 Sep 2024 19:58:53 +0530 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a1df0386..9727e48e 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ You can manage the default worker pool using Terraform, and make changes to it t **Terraform Destroy** -When using the default behavior of handling the default worker pool as a stand-alone `ibm_container_vpc_worker_pool`, you must manually remove all worker pools from the Terraform state before running a terraform destroy command on the module. This is due to a [known limitation](https://cloud.ibm.com/docs/containers?topic=containers-faqs#smallest_cluster) in IBM Cloud. +When using the default behavior of handling the default worker pool as a stand-alone `ibm_container_vpc_worker_pool`, you must manually remove the default worker pool from the Terraform state before running a terraform destroy command on the module. This is due to a [known limitation](https://cloud.ibm.com/docs/containers?topic=containers-faqs#smallest_cluster) in IBM Cloud. Terraform CLI Example From 4935b0e75417d1f60293ef00f711e4ee06b5bb0f Mon Sep 17 00:00:00 2001 From: "aashiq.jacob@ibm.com" Date: Thu, 19 Sep 2024 20:37:55 +0530 Subject: [PATCH 3/3] update grep command --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9727e48e..ae6b1214 100644 --- a/README.md +++ b/README.md @@ -134,20 +134,17 @@ When using the default behavior of handling the default worker pool as a stand-a Terraform CLI Example -For a cluster with 2 worker pools, named 'default' and 'secondarypool', follow these steps: +For a cluster with 1 or more worker pools, follow these steps: ```sh - $ terraform state list | grep ibm_container_vpc_worker_pool + $ terraform state list | grep ibm_container_vpc_worker_pool | grep default > module.ocp_base.data.ibm_container_vpc_worker_pool.all_pools["default"] - > module.ocp_base.data.ibm_container_vpc_worker_pool.all_pools["secondarypool"] > module.ocp_base.ibm_container_vpc_worker_pool.pool["default"] - > module.ocp_base.ibm_container_vpc_worker_pool.pool["secondarypool"] - > ... $ terraform state rm "module.ocp_base.ibm_container_vpc_worker_pool.pool[\"default\"]" ``` -Schematics Example: For a cluster with 2 worker pools, named 'default' and 'secondarypool', follow these steps: +Schematics Example: For a cluster with 1 or more worker pools, follow these steps: ```sh $ ibmcloud schematics workspace state rm --id --address "module.ocp_base.ibm_container_vpc_worker_pool.pool[\"default\"]"