From c96a3f6fe39182b6db24298bfd34fccd30cef238 Mon Sep 17 00:00:00 2001 From: soumyadeep-paul-ibm <105362426+soumyadeep-paul-ibm@users.noreply.github.com> Date: Thu, 25 May 2023 12:02:03 +0530 Subject: [PATCH 1/6] enable worker patch --- modules/vpc-openshift/variables.tf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/vpc-openshift/variables.tf b/modules/vpc-openshift/variables.tf index 43cab90..8a0f261 100644 --- a/modules/vpc-openshift/variables.tf +++ b/modules/vpc-openshift/variables.tf @@ -133,4 +133,10 @@ variable "taints" { })) description = "Set taints to worker nodes." default = null -} \ No newline at end of file +} + +variable "patch_version" { + description = "Updates the worker nodes with the required patch version, patch_version_fixpack_version ." + type = string + default = null +} From 788d101ebcb769f9e5385fc8ef80314d8921ed67 Mon Sep 17 00:00:00 2001 From: soumyadeep-paul-ibm <105362426+soumyadeep-paul-ibm@users.noreply.github.com> Date: Thu, 25 May 2023 12:12:08 +0530 Subject: [PATCH 2/6] added patch_version --- modules/vpc-openshift/main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/vpc-openshift/main.tf b/modules/vpc-openshift/main.tf index db3a884..f711180 100644 --- a/modules/vpc-openshift/main.tf +++ b/modules/vpc-openshift/main.tf @@ -20,6 +20,7 @@ resource "ibm_container_vpc_cluster" "cluster" { cos_instance_crn = (var.cos_instance_crn != null ? var.cos_instance_crn : null) force_delete_storage = (var.force_delete_storage != null ? var.force_delete_storage : false) entitlement = (var.entitlement != null ? var.entitlement : null) + patch_version = (var.patch_version != null ? var.patch_version : null) dynamic zones { for_each = (var.worker_zones != null ? var.worker_zones : {}) @@ -52,4 +53,4 @@ resource "ibm_container_vpc_cluster" "cluster" { update = (var.update_timeout != null ? var.update_timeout : null) delete = (var.delete_timeout != null ? var.delete_timeout : null) } -} \ No newline at end of file +} From f6bca053e8cd95a6d24d5e8992bfeb6c799901d4 Mon Sep 17 00:00:00 2001 From: soumyadeep-paul-ibm <105362426+soumyadeep-paul-ibm@users.noreply.github.com> Date: Fri, 26 May 2023 12:43:16 +0530 Subject: [PATCH 3/6] Update README.md --- modules/vpc-openshift/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/vpc-openshift/README.md b/modules/vpc-openshift/README.md index a4b0311..75f7f08 100644 --- a/modules/vpc-openshift/README.md +++ b/modules/vpc-openshift/README.md @@ -33,6 +33,7 @@ module "vpc_openshift_cluster" { kms_config = var.kms_config taints = var.taints entitlement = var.entitlement + patch_version = var.patch_version create_timeout = var.create_timeout update_timeout = var.update_timeout delete_timeout = var.delete_timeout @@ -68,7 +69,7 @@ If we want to make use of a particular version of module, then set the "version" | update_timeout | Timeout duration for update | string | n/a | no | | delete_timeout | Timeout duration for delete | string | n/a | no | | taints |A nested block that sets or removes Kubernetes taints for all worker nodes in a worker pool|list(string)| n/a | no | - +| patch\_version | Updates the worker nodes with the required patch version| string | n/a | no | ## taints Inputs From d9108202b4935852275f6f793ad1e0a522f34fe1 Mon Sep 17 00:00:00 2001 From: soumyadeep-paul-ibm <105362426+soumyadeep-paul-ibm@users.noreply.github.com> Date: Tue, 30 May 2023 11:27:36 +0530 Subject: [PATCH 4/6] Update variables.tf Changed description of patch_version variable --- modules/vpc-openshift/variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/vpc-openshift/variables.tf b/modules/vpc-openshift/variables.tf index 8a0f261..d58fb82 100644 --- a/modules/vpc-openshift/variables.tf +++ b/modules/vpc-openshift/variables.tf @@ -136,7 +136,7 @@ variable "taints" { } variable "patch_version" { - description = "Updates the worker nodes with the required patch version, patch_version_fixpack_version ." + description = "Updates the worker nodes with the required patch version. The patch_version should be in the format: patch_version_fixpack_version" type = string default = null } From 939131516ac9f1c469ad24c5991293305e3e4b9d Mon Sep 17 00:00:00 2001 From: soumyadeep-paul-ibm <105362426+soumyadeep-paul-ibm@users.noreply.github.com> Date: Tue, 30 May 2023 11:48:42 +0530 Subject: [PATCH 5/6] Update variables.tf Added variable in example --- examples/vpc-openshift/variables.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/vpc-openshift/variables.tf b/examples/vpc-openshift/variables.tf index 68050ed..5543b77 100644 --- a/examples/vpc-openshift/variables.tf +++ b/examples/vpc-openshift/variables.tf @@ -138,3 +138,8 @@ variable "taints" { }, ] } +variable "patch_version" { + description = "Updates the worker nodes with the required patch version. The patch_version should be in the format: patch_version_fixpack_version" + type = string + default = null +} From 0ebb7337f0d2159fa30136a7796c34c7f51536d2 Mon Sep 17 00:00:00 2001 From: soumyadeep-paul-ibm <105362426+soumyadeep-paul-ibm@users.noreply.github.com> Date: Tue, 30 May 2023 11:50:22 +0530 Subject: [PATCH 6/6] Update main.tf Updated patch_version in example --- examples/vpc-openshift/main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/vpc-openshift/main.tf b/examples/vpc-openshift/main.tf index a1adb77..d567158 100644 --- a/examples/vpc-openshift/main.tf +++ b/examples/vpc-openshift/main.tf @@ -31,7 +31,8 @@ module "vpc_openshift_cluster" { kms_config = var.kms_config taints = var.taints entitlement = var.entitlement + patch_version = var.patch_version create_timeout = var.create_timeout update_timeout = var.update_timeout delete_timeout = var.delete_timeout -} \ No newline at end of file +}