Skip to content

Commit f679d9d

Browse files
feat: DA updates:<br>- Fixed sample HCL value for additional worker pools<br>- Added learn more for default_worker_pool_labels<br>- Added HCL editor for subnets<br>- Changed default value for SM plan to standard<br>- Updated public_gateway for subnets<br>- Marked auto-wired and complex inputs as hidden (#800)
1 parent 08d646f commit f679d9d

File tree

3 files changed

+94
-52
lines changed

3 files changed

+94
-52
lines changed

ibm_catalog.json

Lines changed: 71 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -493,17 +493,6 @@
493493
}
494494
]
495495
},
496-
{
497-
"key": "existing_vpc_crn",
498-
"required": true,
499-
"value_constraints": [
500-
{
501-
"type": "regex",
502-
"description": "The value provided for 'existing_vpc_crn' is not valid.",
503-
"value": "^crn:(.*:){3}is:(.*:){2}:vpc:[0-9a-z]{4}-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
504-
}
505-
]
506-
},
507496
{
508497
"key": "region",
509498
"required": true,
@@ -520,17 +509,6 @@
520509
"virtual": true,
521510
"default_value": "us-south"
522511
},
523-
{
524-
"key": "existing_cos_instance_crn",
525-
"required": true,
526-
"value_constraints": [
527-
{
528-
"type": "regex",
529-
"description": "The value provided for 'existing_cos_instance_crn' is not valid.",
530-
"value": "^crn:(.*:){3}cloud-object-storage:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$"
531-
}
532-
]
533-
},
534512
{
535513
"key": "allow_public_access_to_cluster",
536514
"required": true
@@ -609,6 +587,7 @@
609587
},
610588
{
611589
"key": "cluster_ready_when",
590+
"hidden": true,
612591
"options": [
613592
{
614593
"displayname": "Normal",
@@ -632,10 +611,16 @@
632611
"key": "enable_ocp_console"
633612
},
634613
{
635-
"key": "addons"
614+
"key": "addons",
615+
"custom_config": {
616+
"type": "code_editor",
617+
"grouping": "deployment",
618+
"original_grouping": "deployment"
619+
}
636620
},
637621
{
638-
"key": "manage_all_addons"
622+
"key": "manage_all_addons",
623+
"hidden": true
639624
},
640625
{
641626
"key": "additional_worker_pools",
@@ -648,24 +633,27 @@
648633
},
649634
{
650635
"key": "worker_pools_taints",
651-
"type": "array",
636+
"hidden": true,
652637
"custom_config": {
653638
"type": "code_editor",
654639
"grouping": "deployment",
655640
"original_grouping": "deployment"
656641
}
657642
},
658643
{
659-
"key": "ignore_worker_pool_size_changes"
644+
"key": "ignore_worker_pool_size_changes",
645+
"hidden": true
660646
},
661647
{
662-
"key": "allow_default_worker_pool_replacement"
648+
"key": "allow_default_worker_pool_replacement",
649+
"hidden": true
663650
},
664651
{
665652
"key": "default_worker_pool_labels"
666653
},
667654
{
668-
"key": "enable_autoscaling_for_default_pool"
655+
"key": "enable_autoscaling_for_default_pool",
656+
"hidden": true
669657
},
670658
{
671659
"key": "default_pool_minimum_number_of_nodes"
@@ -677,13 +665,15 @@
677665
"key": "additional_security_group_ids"
678666
},
679667
{
680-
"key": "existing_subnet_ids"
668+
"key": "existing_subnet_ids",
669+
"hidden": true
681670
},
682671
{
683672
"key": "use_private_endpoint"
684673
},
685674
{
686675
"key": "cluster_config_endpoint_type",
676+
"hidden": true,
687677
"options": [
688678
{
689679
"displayname": "default",
@@ -707,25 +697,30 @@
707697
"key": "allow_outbound_traffic"
708698
},
709699
{
710-
"key": "verify_worker_network_readiness"
700+
"key": "verify_worker_network_readiness",
701+
"hidden": true
711702
},
712703
{
713-
"key": "pod_subnet_cidr"
704+
"key": "pod_subnet_cidr",
705+
"hidden": true
714706
},
715707
{
716-
"key": "service_subnet_cidr"
708+
"key": "service_subnet_cidr",
709+
"hidden": true
717710
},
718711
{
719712
"key": "custom_security_group_ids"
720713
},
721714
{
722-
"key": "attach_ibm_managed_security_group"
715+
"key": "attach_ibm_managed_security_group",
716+
"hidden": true
723717
},
724718
{
725719
"key": "additional_lb_security_group_ids"
726720
},
727721
{
728-
"key": "number_of_lbs"
722+
"key": "number_of_lbs",
723+
"hidden": true
729724
},
730725
{
731726
"key": "additional_vpe_security_group_ids"
@@ -790,13 +785,16 @@
790785
]
791786
},
792787
{
793-
"key": "boot_volume_kms_key_name"
788+
"key": "boot_volume_kms_key_name",
789+
"hidden": true
794790
},
795791
{
796-
"key": "boot_volume_kms_key_ring_name"
792+
"key": "boot_volume_kms_key_ring_name",
793+
"hidden": true
797794
},
798795
{
799796
"key": "cbr_rules",
797+
"hidden": true,
800798
"display_name": "openshift_cluster_cbr_rules",
801799
"type": "array",
802800
"custom_config": {
@@ -847,19 +845,43 @@
847845
"value": "trial"
848846
}
849847
],
850-
"default_value": "__NOT_SET__",
848+
"default_value": "standard",
851849
"description": "The pricing plan to use when provisioning a Secrets Manager instance. Possible values: `standard`, `trial`. You can create only one Trial instance of Secrets Manager per account. Before you can create a new Trial instance, you must delete the existing Trial instance and its reclamation. [Learn more](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-create-instance&interface=ui#upgrade-instance-standard)."
852850
},
851+
{
852+
"key": "existing_vpc_crn",
853+
"value_constraints": [
854+
{
855+
"type": "regex",
856+
"description": "The value provided for 'existing_vpc_crn' is not valid.",
857+
"value": "^crn:(.*:){3}is:(.*:){2}:vpc:[0-9a-z]{4}-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
858+
}
859+
]
860+
},
861+
{
862+
"key": "existing_cos_instance_crn",
863+
"value_constraints": [
864+
{
865+
"type": "regex",
866+
"description": "The value provided for 'existing_cos_instance_crn' is not valid.",
867+
"value": "^crn:(.*:){3}cloud-object-storage:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$"
868+
}
869+
]
870+
},
853871
{
854872
"key": "skip_ocp_secrets_manager_iam_auth_policy"
855873
},
856874
{
857875
"key": "subnets",
858-
"type": "object",
859-
"default_value": "{\n zone-1 = [\n {\n name = \"subnet-a\"\n cidr = \"10.10.10.0/24\"\n public_gateway = true\n acl_name = \"vpc-acl\"\n no_addr_prefix = false\n }\n ],\n zone-2 = [\n {\n name = \"subnet-b\"\n cidr = \"10.20.10.0/24\"\n public_gateway = false\n acl_name = \"vpc-acl\"\n no_addr_prefix = false\n }\n ],\n zone-3 = [\n {\n name = \"subnet-c\"\n cidr = \"10.30.10.0/24\"\n public_gateway = false\n acl_name = \"vpc-acl\"\n no_addr_prefix = false\n }\n ]\n }",
876+
"default_value": "{\n zone-1 = [\n {\n name = \"subnet-a\"\n cidr = \"10.10.10.0/24\"\n public_gateway = true\n acl_name = \"vpc-acl\"\n no_addr_prefix = false\n }\n ],\n zone-2 = [\n {\n name = \"subnet-b\"\n cidr = \"10.20.10.0/24\"\n public_gateway = true\n acl_name = \"vpc-acl\"\n no_addr_prefix = false\n }\n ],\n zone-3 = [\n {\n name = \"subnet-c\"\n cidr = \"10.30.10.0/24\"\n public_gateway = true\n acl_name = \"vpc-acl\"\n no_addr_prefix = false\n }\n ]\n }",
860877
"description": "List of subnets for the vpc. For each item in each array, a subnet will be created. Items can be either CIDR blocks or total ipv4 addresses. Public gateways will be enabled only in zones where a gateway has been created. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vpc/blob/main/solutions/fully-configurable/DA-types.md#subnets-).",
861878
"required": false,
862-
"virtual": true
879+
"virtual": true,
880+
"custom_config": {
881+
"grouping": "deployment",
882+
"original_grouping": "deployment",
883+
"type": "code_editor"
884+
}
863885
},
864886
{
865887
"key": "network_acls",
@@ -896,10 +918,12 @@
896918
"key": "enable_kube_audit"
897919
},
898920
{
899-
"key": "audit_deployment_name"
921+
"key": "audit_deployment_name",
922+
"hidden": true
900923
},
901924
{
902925
"key": "audit_log_policy",
926+
"hidden": true,
903927
"options": [
904928
{
905929
"displayname": "Default",
@@ -912,13 +936,16 @@
912936
]
913937
},
914938
{
915-
"key": "audit_namespace"
939+
"key": "audit_namespace",
940+
"hidden": true
916941
},
917942
{
918-
"key": "audit_webhook_listener_image"
943+
"key": "audit_webhook_listener_image",
944+
"hidden": true
919945
},
920946
{
921-
"key": "audit_webhook_listener_image_tag_digest"
947+
"key": "audit_webhook_listener_image_tag_digest",
948+
"hidden": true
922949
}
923950
],
924951
"dependencies": [

solutions/fully-configurable/DA_docs.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
Several optional input variables in the Red Hat Openshift Cluster [Deployable Architecture](https://cloud.ibm.com/catalog#deployable_architecture) use complex object types. You can specify these inputs when you configure your Deployable Architectures (DA).
44

5-
- [Add-ons](#options-with-addons) (`addons`)
5+
- [Add-ons](#options-with-add-ons) (`addons`)
66
- [Manage All Add-ons](#manage-all-add-ons) (`manage_all_addons`)
7-
- [Additional Worker Pools](#options-with-additional-worker-pools) (`additional_worker_pools`)
8-
- [Worker Pool Taints](#options-with-worker-pools-taints) (`worker_pools_taints`)
9-
- [Additional VPE Security IDs](#options-with-additional-vpe-security-group-ids) (`additional_vpe_security_group_ids`)
10-
- [Context Based Restrictions](#options-with-cbr) (`cbr_rules`)
7+
- [Additional Worker Pools](#additional-worker-pools) (`additional_worker_pools`)
8+
- [Worker Pool Taints](#options-with-worker_pool_taints) (`worker_pools_taints`)
9+
- [Additional VPE Security IDs](#options-with-additional_vpe_security_group_ids) (`additional_vpe_security_group_ids`)
10+
- [Context Based Restrictions](#options-with-cbr_rules) (`cbr_rules`)
11+
- [Default Worker Pool Labels](#default-worker-pool-labels) (`default_worker_pool_labels`)
1112

1213
## Options with Add-ons <a name="options-with-addons"></a>
1314

@@ -88,7 +89,7 @@ The variable `manage_all_addons` determines whether Terraform manages all add-on
8889

8990
- If set to `false`, Terraform will only manage the add-ons listed in the addons map, leaving any others unchanged.
9091

91-
## Options with additional_worker_pools <a name="options-with-additional-worker-pools"></a>
92+
## Additional Worker Pools <a name="options-with-additional-worker-pools"></a>
9293

9394
This variable defines the worker node pools for your OCP cluster, with each pool having its own configuration settings.
9495

@@ -129,7 +130,7 @@ This variable defines the worker node pools for your OCP cluster, with each pool
129130
{
130131
id = "<REPLACE ME>"
131132
zone = "us-south-1"
132-
cidr_block = " "10.10.10.0/24"
133+
cidr_block = "10.10.10.0/24"
133134
},
134135
{
135136
id = "<REPLACE ME>"
@@ -256,3 +257,17 @@ This variable allows you to provide a rule for the target service to enforce acc
256257
}
257258
]
258259
```
260+
261+
## Default Worker Pool Labels <a name="default-worker-pool-labels"></a>
262+
263+
This variable is used to assign a set of key-value labels to the default worker pool for identification. Labels are helpful for organizing and filtering your resources.
264+
265+
- Variable name: `default_worker_pool_labels`
266+
- Type: map(string)
267+
- Default value: An empty map (`{}`).
268+
269+
### Example for default_worker_pool_labels
270+
271+
```hcl
272+
{env = "prod", team = "devops"}
273+
```

solutions/fully-configurable/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ variable "default_worker_pool_operating_system" {
186186

187187
variable "default_worker_pool_labels" {
188188
type = map(string)
189-
description = "A set of key-value labels assigned to the worker pool for identification. For Example: { env = \"prod\", team = \"devops\" }"
189+
description = "A set of key-value labels assigned to the worker pool for identification. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-base-ocp-vpc/blob/main/solutions/fully-configurable/DA_docs.md#default-worker-pool-labels)"
190190
default = {}
191191
}
192192

0 commit comments

Comments
 (0)