From 6a524a64c6b4313d87e2e8740644b69a51d691ff Mon Sep 17 00:00:00 2001 From: Jordan-Williams2 Date: Wed, 8 Oct 2025 12:58:37 +0100 Subject: [PATCH] feat: add direct endpoint support --- ibm_catalog.json | 16 +++++++++++++++- patterns/dynamic_values/variables.tf | 8 ++++---- patterns/roks/module/variables.tf | 8 ++++---- patterns/roks/variables.tf | 8 ++++---- 4 files changed, 27 insertions(+), 13 deletions(-) diff --git a/ibm_catalog.json b/ibm_catalog.json index b74820059..8acce5e9b 100644 --- a/ibm_catalog.json +++ b/ibm_catalog.json @@ -1863,7 +1863,21 @@ "key": "existing_cos_resource_group" }, { - "key": "existing_cos_endpoint_type" + "key": "existing_cos_endpoint_type", + "options": [ + { + "displayname": "direct", + "value": "direct" + }, + { + "displayname": "private", + "value": "private" + }, + { + "displayname": "public", + "value": "public" + } + ] }, { "key": "use_existing_cos_for_vpc_flowlogs" diff --git a/patterns/dynamic_values/variables.tf b/patterns/dynamic_values/variables.tf index f664d7f07..77a3389cc 100644 --- a/patterns/dynamic_values/variables.tf +++ b/patterns/dynamic_values/variables.tf @@ -125,13 +125,13 @@ variable "existing_cos_resource_group" { } variable "existing_cos_endpoint_type" { - description = "The endpoint type to use when accessing the existing COS instance, default is `public`." + description = "The endpoint type to use when accessing the existing COS instance. `direct` is the preferred endpoint type for re-platformed regions." type = string - default = "public" + default = "direct" validation { - error_message = "Endpoint type can only be `public` or `private`." - condition = contains(["public", "private", null], var.existing_cos_endpoint_type) + error_message = "Endpoint type can only be `public`, `private`, or `direct`." + condition = contains(["public", "private", "direct", null], var.existing_cos_endpoint_type) } } diff --git a/patterns/roks/module/variables.tf b/patterns/roks/module/variables.tf index ab6b5fa58..71b1c4ac1 100644 --- a/patterns/roks/module/variables.tf +++ b/patterns/roks/module/variables.tf @@ -143,13 +143,13 @@ variable "existing_cos_resource_group" { } variable "existing_cos_endpoint_type" { - description = "The endpoint type to use when accessing the existing COS instance, default is `public`." + description = "The endpoint type to use when accessing the existing COS instance. `direct` is the preferred endpoint type for re-platformed regions." type = string - default = "public" + default = "direct" validation { - error_message = "Endpoint type can only be `public` or `private`." - condition = contains(["public", "private", null], var.existing_cos_endpoint_type) + error_message = "Endpoint type can only be `public`, `private`, or `direct`." + condition = contains(["public", "private", "direct", null], var.existing_cos_endpoint_type) } } diff --git a/patterns/roks/variables.tf b/patterns/roks/variables.tf index b54b86257..1cb25829a 100644 --- a/patterns/roks/variables.tf +++ b/patterns/roks/variables.tf @@ -150,13 +150,13 @@ variable "existing_cos_resource_group" { } variable "existing_cos_endpoint_type" { - description = "The endpoint type to use when accessing the existing COS instance, default is `public`." + description = "The endpoint type to use when accessing the existing COS instance. `direct` is the preferred endpoint type for re-platformed regions." type = string - default = "public" + default = "direct" validation { - error_message = "Endpoint type can only be `public` or `private`." - condition = contains(["public", "private", null], var.existing_cos_endpoint_type) + error_message = "Endpoint type can only be `public`, `private`, or `direct`." + condition = contains(["public", "private", "direct", null], var.existing_cos_endpoint_type) } }