Skip to content

Commit 2fb798f

Browse files
chore: add validations for user input fields on projects UI (#1216)
* chore: updated the IAM permissions * chore: updated the IAM permissions * chore: updated the IAM permissions * chore: updated the IAM permissions * chore : updated the DA permissions * chore : added DNS service permissions to openshift variation * feat: removed complaince from catalog.json * feat: updated validations for user input fields on projects UI * feat: Update ibm_catalog.json Co-authored-by: ludwig-mueller <ludwig.mueller@ibm.com> * fix : Update ibm_catalog.json Co-authored-by: ludwig-mueller <ludwig.mueller@ibm.com> * fix : Update ibm_catalog.json Co-authored-by: ludwig-mueller <ludwig.mueller@ibm.com> --------- Co-authored-by: ludwig-mueller <ludwig.mueller@ibm.com>
1 parent a61050f commit 2fb798f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

ibm_catalog.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@
7575
"key": "prefix",
7676
"type": "string",
7777
"default_value": "",
78+
"value_constraints": [
79+
{
80+
"type": "regex",
81+
"description": "Prefix must start with a letter, be 1-16 characters long, and contain only letters and digits.",
82+
"value": "^[a-z](?:[a-z0-9-]{0,14}[a-z0-9])?$"
83+
}
84+
],
7885
"required": true
7986
},
8087
{
@@ -583,6 +590,13 @@
583590
{
584591
"key": "prefix",
585592
"default_value": "",
593+
"value_constraints": [
594+
{
595+
"type": "regex",
596+
"description": "Prefix must start with a letter, be 1-16 characters long, and contain only letters and digits.",
597+
"value": "^[a-z](?:[a-z0-9-]{0,14}[a-z0-9])?$"
598+
}
599+
],
586600
"required": true
587601
},
588602
{
@@ -1315,6 +1329,13 @@
13151329
{
13161330
"key": "cluster_name",
13171331
"type": "string",
1332+
"value_constraints": [
1333+
{
1334+
"type": "regex",
1335+
"description": "cluster name must start with a letter, be 1-16 characters long, and contain only letters and digits.",
1336+
"value": "^[a-z](?:[a-z0-9-]{0,14}[a-z0-9])?$"
1337+
}
1338+
],
13181339
"required": true
13191340
},
13201341
{

0 commit comments

Comments
 (0)