Skip to content

Commit 6a524a6

Browse files
Jordan-Williams2Jordan-Williams2
authored andcommitted
feat: add direct endpoint support
1 parent dceb7e0 commit 6a524a6

File tree

4 files changed

+27
-13
lines changed

4 files changed

+27
-13
lines changed

ibm_catalog.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1863,7 +1863,21 @@
18631863
"key": "existing_cos_resource_group"
18641864
},
18651865
{
1866-
"key": "existing_cos_endpoint_type"
1866+
"key": "existing_cos_endpoint_type",
1867+
"options": [
1868+
{
1869+
"displayname": "direct",
1870+
"value": "direct"
1871+
},
1872+
{
1873+
"displayname": "private",
1874+
"value": "private"
1875+
},
1876+
{
1877+
"displayname": "public",
1878+
"value": "public"
1879+
}
1880+
]
18671881
},
18681882
{
18691883
"key": "use_existing_cos_for_vpc_flowlogs"

patterns/dynamic_values/variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ variable "existing_cos_resource_group" {
125125
}
126126

127127
variable "existing_cos_endpoint_type" {
128-
description = "The endpoint type to use when accessing the existing COS instance, default is `public`."
128+
description = "The endpoint type to use when accessing the existing COS instance. `direct` is the preferred endpoint type for re-platformed regions."
129129
type = string
130-
default = "public"
130+
default = "direct"
131131

132132
validation {
133-
error_message = "Endpoint type can only be `public` or `private`."
134-
condition = contains(["public", "private", null], var.existing_cos_endpoint_type)
133+
error_message = "Endpoint type can only be `public`, `private`, or `direct`."
134+
condition = contains(["public", "private", "direct", null], var.existing_cos_endpoint_type)
135135
}
136136
}
137137

patterns/roks/module/variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ variable "existing_cos_resource_group" {
143143
}
144144

145145
variable "existing_cos_endpoint_type" {
146-
description = "The endpoint type to use when accessing the existing COS instance, default is `public`."
146+
description = "The endpoint type to use when accessing the existing COS instance. `direct` is the preferred endpoint type for re-platformed regions."
147147
type = string
148-
default = "public"
148+
default = "direct"
149149

150150
validation {
151-
error_message = "Endpoint type can only be `public` or `private`."
152-
condition = contains(["public", "private", null], var.existing_cos_endpoint_type)
151+
error_message = "Endpoint type can only be `public`, `private`, or `direct`."
152+
condition = contains(["public", "private", "direct", null], var.existing_cos_endpoint_type)
153153
}
154154
}
155155

patterns/roks/variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ variable "existing_cos_resource_group" {
150150
}
151151

152152
variable "existing_cos_endpoint_type" {
153-
description = "The endpoint type to use when accessing the existing COS instance, default is `public`."
153+
description = "The endpoint type to use when accessing the existing COS instance. `direct` is the preferred endpoint type for re-platformed regions."
154154
type = string
155-
default = "public"
155+
default = "direct"
156156

157157
validation {
158-
error_message = "Endpoint type can only be `public` or `private`."
159-
condition = contains(["public", "private", null], var.existing_cos_endpoint_type)
158+
error_message = "Endpoint type can only be `public`, `private`, or `direct`."
159+
condition = contains(["public", "private", "direct", null], var.existing_cos_endpoint_type)
160160
}
161161
}
162162

0 commit comments

Comments
 (0)