Skip to content
This repository was archived by the owner on Aug 12, 2024. It is now read-only.

Commit de0972c

Browse files
Sean Sundbergtimroster
andauthored
Adds variables for storage and tags (#63)
Signed-off-by: Tim Robinson <[email protected]> Co-authored-by: Tim Robinson <[email protected]>
1 parent 5b226d0 commit de0972c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ resource ibm_container_vpc_cluster cluster {
207207
cos_instance_crn = var.cos_id
208208
resource_group_id = data.ibm_resource_group.resource_group.id
209209
disable_public_service_endpoint = var.disable_public_endpoint
210+
force_delete_storage = var.force_delete_storage
210211
wait_till = "IngressReady"
212+
tags = var.tags
211213

212214
dynamic "zones" {
213215
for_each = local.vpc_subnets

variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@ variable "ocp_entitlement" {
6363
default = "cloud_pak"
6464
}
6565

66+
variable "force_delete_storage" {
67+
type = bool
68+
description = "Attribute to force the removal of persistent storage associtated with the cluster"
69+
default = false
70+
}
71+
72+
variable "tags" {
73+
type = list(string)
74+
default = []
75+
description = "Tags that should be added to the instance"
76+
}
77+
6678
# VPC Variables
6779
variable "vpc_name" {
6880
type = string

0 commit comments

Comments
 (0)