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 +} 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 +} 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 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 +} diff --git a/modules/vpc-openshift/variables.tf b/modules/vpc-openshift/variables.tf index 43cab90..d58fb82 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. The patch_version should be in the format: patch_version_fixpack_version" + type = string + default = null +}