Skip to content

Commit d7659a6

Browse files
committed
added provider visibility
1 parent 90db5b0 commit d7659a6

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

ibm_catalog.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,24 @@
518518
{
519519
"key": "enable_universal_ebpf"
520520
},
521+
{
522+
"key": "provider_visibility",
523+
"options": [
524+
{
525+
"displayname": "private",
526+
"value": "private"
527+
},
528+
{
529+
"displayname": "public",
530+
"value": "public"
531+
},
532+
{
533+
"displayname": "public-and-private",
534+
"value": "public-and-private"
535+
}
536+
],
537+
"hidden": true
538+
},
521539
{
522540
"key": "cluster_name",
523541
"type": "string",

solutions/fully-configurable/provider.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
provider "ibm" {
22
ibmcloud_api_key = var.ibmcloud_api_key
3+
visibility = var.provider_visibility
34
}
45

56
provider "kubernetes" {

solutions/fully-configurable/variables.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,3 +387,14 @@ variable "cluster_shield_limits_memory" {
387387
description = "Specify memory resource limits for the cluster shield pods."
388388
default = "1536Mi"
389389
}
390+
391+
variable "provider_visibility" {
392+
description = "Set the visibility value for the IBM terraform provider. Supported values are `public`, `private`, `public-and-private`. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/guides/custom-service-endpoints)."
393+
type = string
394+
default = "private"
395+
396+
validation {
397+
condition = contains(["public", "private", "public-and-private"], var.provider_visibility)
398+
error_message = "Invalid visibility option. Allowed values are 'public', 'private', or 'public-and-private'."
399+
}
400+
}

0 commit comments

Comments
 (0)