Skip to content

Commit fc9e2bf

Browse files
feat: remove Account Config DA from customize DA flow, add default value for prefix using random string generator and update logic that handles default resource group lookup (#117)
1 parent 2ae5089 commit fc9e2bf

File tree

5 files changed

+49
-11
lines changed

5 files changed

+49
-11
lines changed

.secrets.baseline

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "go.sum|^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2025-04-17T11:02:06Z",
6+
"generated_at": "2025-10-17T12:05:48Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -88,7 +88,7 @@
8888
}
8989
]
9090
},
91-
"version": "0.13.1+ibm.62.dss",
91+
"version": "0.13.1+ibm.64.dss",
9292
"word_list": {
9393
"file": null,
9494
"hash": null

ibm_catalog.json

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@
108108
},
109109
{
110110
"key": "prefix",
111-
"required": true,
111+
"default_value": "dev",
112+
"random_string": {
113+
"length": 4
114+
},
112115
"value_constraints": [
113116
{
114117
"type": "regex",
@@ -169,6 +172,21 @@
169172
}
170173
]
171174
},
175+
{
176+
"key": "existing_resource_group_name",
177+
"display_name": "resource_group",
178+
"custom_config": {
179+
"type": "resource_group",
180+
"grouping": "deployment",
181+
"original_grouping": "deployment",
182+
"config_constraints": {
183+
"identifier": "rg_name"
184+
}
185+
},
186+
"default_value": "Default",
187+
"description": "The name of an existing resource group to provision the resources. [Learn more](https://cloud.ibm.com/docs/account?topic=account-rgs&interface=ui#create_rgs) about how to create a resource group.",
188+
"virtual": true
189+
},
172190
{
173191
"key": "enable_activity_tracker_event_routing_to_cloud_logs"
174192
},
@@ -350,7 +368,7 @@
350368
"name": "deploy-arch-ibm-cos",
351369
"description": "Enable this to create an IBM Cloud Object Storage(COS) instance. The buckets to store events will be created by the Activity Tracker Event Routing deployable architecture.",
352370
"id": "68921490-2778-4930-ac6d-bae7be6cd958-global",
353-
"version": "v10.2.21",
371+
"version": "v10.5.0",
354372
"flavors": [
355373
"instance"
356374
],
@@ -362,6 +380,11 @@
362380
"dependency_output": "cos_instance_crn",
363381
"version_input": "existing_cos_instance_crn"
364382
},
383+
{
384+
"dependency_input": "existing_resource_group_name",
385+
"version_input": "existing_resource_group_name",
386+
"reference_version": true
387+
},
365388
{
366389
"dependency_input": "prefix",
367390
"version_input": "prefix",
@@ -377,7 +400,7 @@
377400
"name": "deploy-arch-ibm-kms",
378401
"description": "Enable when you want to create your own managed keys to encrypt the buckets. Select only if existing KMS instance or Key is not provided. ",
379402
"id": "2cad4789-fa90-4886-9c9e-857081c273ee-global",
380-
"version": "v5.1.27",
403+
"version": "v5.4.0",
381404
"flavors": [
382405
"fully-configurable"
383406
],
@@ -402,6 +425,11 @@
402425
"dependency_input": "region",
403426
"version_input": "region",
404427
"reference_version": true
428+
},
429+
{
430+
"dependency_input": "existing_resource_group_name",
431+
"version_input": "existing_resource_group_name",
432+
"reference_version": true
405433
}
406434
]
407435
},
@@ -413,7 +441,7 @@
413441
"fully-configurable"
414442
],
415443
"id": "63d8ae58-fbf3-41ce-b844-0fb5b85882ab-global",
416-
"version": "v1.6.28",
444+
"version": "v1.9.0",
417445
"optional": true,
418446
"on_by_default": true,
419447
"input_mapping": [
@@ -429,14 +457,19 @@
429457
{
430458
"version_input": "enable_activity_tracker_event_routing_to_cloud_logs",
431459
"value": true
460+
},
461+
{
462+
"dependency_input": "existing_resource_group_name",
463+
"version_input": "existing_resource_group_name",
464+
"reference_version": true
432465
}
433466
]
434467
},
435468
{
436469
"name": "deploy-arch-ibm-cloud-monitoring",
437470
"description": "Configure IBM Cloud Monitoring to collect the platform metrics.",
438471
"id": "73debdbf-894f-4c14-81c7-5ece3a70b67d-global",
439-
"version": "v1.7.2",
472+
"version": "v1.9.0",
440473
"flavors": [
441474
"fully-configurable"
442475
],
@@ -457,6 +490,11 @@
457490
"dependency_input": "region",
458491
"version_input": "region",
459492
"reference_version": true
493+
},
494+
{
495+
"dependency_input": "existing_resource_group_name",
496+
"version_input": "existing_resource_group_name",
497+
"reference_version": true
460498
}
461499
]
462500
}

tests/pr_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ func TestActivityTrackerDefaultConfiguration(t *testing.T) {
273273
"deploy-arch-ibm-activity-tracker",
274274
"fully-configurable",
275275
map[string]interface{}{
276-
"prefix": options.Prefix,
277-
"region": validRegions[rand.Intn(len(validRegions))],
276+
"region": validRegions[rand.Intn(len(validRegions))],
277+
"existing_resource_group": resourceGroup,
278278
},
279279
)
280280

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ variable "eventstreams_targets" {
4242

4343
validation {
4444
condition = alltrue([for es_target in var.eventstreams_targets : (es_target.service_to_service_enabled == true && es_target.api_key == null) || (es_target.service_to_service_enabled == false && es_target.api_key != null)])
45-
error_message = "The value of `api_key` should not be provided if 'service_to_service_enabled' is set to tru for event stream targets. If you want to use 'api_key', set 'service_to_service_enabled' to false."
45+
error_message = "The value of `api_key` should not be provided if 'service_to_service_enabled' is set to true for event stream targets. If you want to use 'api_key', set 'service_to_service_enabled' to false."
4646
}
4747
}
4848

0 commit comments

Comments
 (0)