Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit 7be3e61

Browse files
kavya498hkantare
authored andcommitted
Add wait_till to secure ROKS cluster
1 parent 1f4b09d commit 7be3e61

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

examples/secure-roks-cluster/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Review the following variables that you can customize in your Terraform template
7575
|disable_public_service_endpoint|Disable the public cloud service endpoint to prevent public access to the master.|bool|true|No|
7676
|worker_nodes_per_zone|The number of worker nodes per zone.|number|3|No|
7777
|create_timeout|Custom creation [timeout](https://www.terraform.io/docs/language/resources/syntax.html#operation-timeouts) for the cluster.|string|N/A|No|
78+
|wait_till| The stage when you want Terraform to mark the cluster resource creation as completed. More details [here](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/container_vpc_cluster#wait_till)|string|`IngressReady`|No|
7879
|roks_kms_policy|Indicates if a Kubernetes Service to Key Protect service authorization policy exists in IAM. If false, a policy between the services is created.|bool|true|No|
7980
|kms_instance|GUID of the Key Protect instance to use to encrypt the secrets in the cluster. If set to `null`, an instance is created with the following naming convention: `<var.resource_prefix>-kp`|string|`null`|No|
8081
|kms_key|Key ID of the root key in the Key Protect instance to use. If set to `null`, an instance is created with the following naming convention: `<var.resource_prefix>-kp-key`|string|`null`|No|

examples/secure-roks-cluster/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module "vpc_ocp_cluster" {
2323
kms_config = local.kms_config
2424
worker_labels = { worker = var.resource_prefix }
2525
create_timeout = var.create_timeout
26+
wait_till = var.wait_till
2627
}
2728

2829
module "configure_cluster_sysdig" {

examples/secure-roks-cluster/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ variable "worker_nodes_per_zone" {
5757
description = "The number of worker nodes per zone."
5858
default = 3
5959
}
60+
variable "wait_till" {
61+
description = "specify the stage when Terraform to mark the cluster creation as completed."
62+
type = string
63+
default = "ingressReady"
64+
}
6065
variable "create_timeout" {
6166
type = string
6267
description = "Custom Creation timeout for Cluster"

0 commit comments

Comments
 (0)