You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: update DA to accept prefix as empty string ("") and mark as required in catalog manifest.<br>-add prefix for project name in apps DA <br>-prefix variable is mandatoryand can accept null (#152)
* refactor: update prefix logic in DA
* Modified prefix description
* modified prefix value
* modfied prefix logic
* Update the logic
* Update common-dev-assets
* Resolved Precommit error
* Resolved Pre-commit error
* Updated the code
* Added prefix logic in apps variant
* SKIP UPGRADE TEST
* Updated the code
* Update prefix value and description
* removed default value
* updated cra-config.yaml
* Added prefix in test
* Resolved comments
---------
Co-authored-by: Arya Girish K <arya.girish.k@ibm.com>
- CRA_TARGET: "solutions/project"# Target directory for CRA scan. If not provided, the CRA Scan will not be run.
14
15
CRA_IGNORE_RULES_FILE: "cra-tf-validate-ignore-rules.json"# CRA Ignore file to use. If not provided, it checks the repo root directory for `cra-tf-validate-ignore-rules.json`
15
16
PROFILE_ID: "fe96bd4d-9b37-40f2-b39f-a62760e326a3"# SCC profile ID (currently set to 'IBM Cloud Framework for Financial Services' '1.7.0' profile).
# SCC_INSTANCE_ID: "" # The SCC instance ID to use to download profile for CRA scan. If not provided, a default global value will be used.
21
23
# SCC_REGION: "" # The IBM Cloud region that the SCC instance is in. If not provided, a default global value will be used.
22
24
# CRA_ENVIRONMENT_VARIABLES: # An optional map of environment variables for CRA, where the key is the variable name and value is the value. Useful for providing TF_VARs.
Copy file name to clipboardExpand all lines: ibm_catalog.json
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -140,6 +140,11 @@
140
140
}
141
141
]
142
142
},
143
+
{
144
+
"key": "prefix",
145
+
"required": true,
146
+
"description": "Prefix to add to all projects created by this solution (e.g `prod`, `test`, `dev`). To not use any prefix value, you can enter the string `__NULL__`."
147
+
},
143
148
{
144
149
"key": "existing_resource_group"
145
150
},
@@ -306,7 +311,9 @@
306
311
]
307
312
},
308
313
{
309
-
"key": "prefix"
314
+
"key": "prefix",
315
+
"required": true,
316
+
"description": "Prefix to add to all projects created by this solution (e.g `prod`, `test`, `dev`). To not use any prefix value, you can enter the string `__NULL__`."
Copy file name to clipboardExpand all lines: solutions/apps/variables.tf
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,12 @@ variable "region" {
25
25
default="us-south"
26
26
}
27
27
28
+
variable"prefix" {
29
+
type=string
30
+
description="Prefix added to the project created by this solution (e.g `prod`, `test`, `dev`). To not use any prefix value, you can set this value to `null` or an empty string."
31
+
nullable=true
32
+
}
33
+
28
34
variable"existing_resource_group" {
29
35
type=bool
30
36
description="Whether to use an existing resource group."
description="Prefix added to the project created by this solution."
23
-
default=null
22
+
description="Prefix added to the project created by this solution (e.g `prod`, `test`, `dev`). To not use any prefix value, you can set this value to `null` or an empty string."
0 commit comments