Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/vpc-openshift/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
5 changes: 5 additions & 0 deletions examples/vpc-openshift/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
3 changes: 2 additions & 1 deletion modules/vpc-openshift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module "vpc_openshift_cluster" {
kms_config = var.kms_config
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the vpc-openshift example (directory: examples/vpc-openshift) as well with patch_version ( showing how to pass patch_version from example template)

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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion modules/vpc-openshift/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 : {})
Expand Down Expand Up @@ -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)
}
}
}
8 changes: 7 additions & 1 deletion modules/vpc-openshift/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,10 @@ variable "taints" {
}))
description = "Set taints to worker nodes."
default = null
}
}

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
}