|
235 | 235 | }, |
236 | 236 | { |
237 | 237 | "key": "prefix", |
238 | | - "required": true |
| 238 | + "required": true, |
| 239 | + "value_constraints": [ |
| 240 | + { |
| 241 | + "type": "regex", |
| 242 | + "description": "Prefix must begin with a lowercase letter and may contain only lowercase letters, digits, and hyphens '-'. It must not end with a hyphen('-'), and cannot contain consecutive hyphens ('--'). It should not exceed 16 characters", |
| 243 | + "value": "^$|^__NULL__$|^[a-z](?!.*--)[a-z0-9-]{0,14}[a-z0-9]$" |
| 244 | + } |
| 245 | + ] |
239 | 246 | }, |
240 | 247 | { |
241 | 248 | "key": "cluster_name", |
|
474 | 481 | }, |
475 | 482 | { |
476 | 483 | "key": "existing_vpc_crn", |
477 | | - "required": true |
| 484 | + "required": true, |
| 485 | + "value_constraints": [ |
| 486 | + { |
| 487 | + "type": "regex", |
| 488 | + "description": "The value provided for 'existing_vpc_crn' is not valid.", |
| 489 | + "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}$" |
| 490 | + } |
| 491 | + ] |
478 | 492 | }, |
479 | 493 | { |
480 | 494 | "key": "region", |
|
494 | 508 | }, |
495 | 509 | { |
496 | 510 | "key": "existing_cos_instance_crn", |
497 | | - "required": true |
| 511 | + "required": true, |
| 512 | + "value_constraints": [ |
| 513 | + { |
| 514 | + "type": "regex", |
| 515 | + "description": "The value provided for 'existing_cos_instance_crn' is not valid.", |
| 516 | + "value": "^crn:(.*:){3}cloud-object-storage:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 517 | + } |
| 518 | + ] |
498 | 519 | }, |
499 | 520 | { |
500 | 521 | "key": "disable_public_endpoint", |
|
700 | 721 | "key": "kms_encryption_enabled_cluster" |
701 | 722 | }, |
702 | 723 | { |
703 | | - "key": "existing_kms_instance_crn" |
| 724 | + "key": "existing_kms_instance_crn", |
| 725 | + "value_constraints": [ |
| 726 | + { |
| 727 | + "type": "regex", |
| 728 | + "description": "The value provided for 'existing_kms_instance_crn' is not valid.", |
| 729 | + "value": "^__NULL__$|^crn:(.*:){3}(kms|hs-crypto):(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 730 | + } |
| 731 | + ] |
704 | 732 | }, |
705 | 733 | { |
706 | | - "key": "existing_cluster_kms_key_crn" |
| 734 | + "key": "existing_cluster_kms_key_crn", |
| 735 | + "value_constraints": [ |
| 736 | + { |
| 737 | + "type": "regex", |
| 738 | + "description": "The value provided for 'existing_cluster_kms_key_crn' in not valid.", |
| 739 | + "value": "^__NULL__$|^crn:(.*:){3}(kms|hs-crypto):(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}:key:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" |
| 740 | + } |
| 741 | + ] |
707 | 742 | }, |
708 | 743 | { |
709 | 744 | "key": "kms_endpoint_type", |
|
729 | 764 | "key": "kms_encryption_enabled_boot_volume" |
730 | 765 | }, |
731 | 766 | { |
732 | | - "key": "existing_boot_volume_kms_key_crn" |
| 767 | + "key": "existing_boot_volume_kms_key_crn", |
| 768 | + "value_constraints": [ |
| 769 | + { |
| 770 | + "type": "regex", |
| 771 | + "description": "The value provided for 'existing_boot_volume_kms_key_crn' in not valid.", |
| 772 | + "value": "^__NULL__$|^crn:(.*:){3}(kms|hs-crypto):(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}:key:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" |
| 773 | + } |
| 774 | + ] |
733 | 775 | }, |
734 | 776 | { |
735 | 777 | "key": "boot_volume_kms_key_name" |
|
751 | 793 | "key": "enable_secrets_manager_integration" |
752 | 794 | }, |
753 | 795 | { |
754 | | - "key": "existing_secrets_manager_instance_crn" |
| 796 | + "key": "existing_secrets_manager_instance_crn", |
| 797 | + "value_constraints": [ |
| 798 | + { |
| 799 | + "type": "regex", |
| 800 | + "description": "The value provided for 'existing_secrets_manager_instance_crn' is not valid.", |
| 801 | + "value": "^__NULL__$|^crn:(.*:){3}secrets-manager:(.*:){2}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$" |
| 802 | + } |
| 803 | + ] |
755 | 804 | }, |
756 | 805 | { |
757 | | - "key": "secrets_manager_secret_group_id" |
| 806 | + "key": "secrets_manager_secret_group_id", |
| 807 | + "value_constraints": [ |
| 808 | + { |
| 809 | + "type": "regex", |
| 810 | + "description": "The value provided for 'secrets_manager_secret_group_id' is not valid.", |
| 811 | + "value": "^__NULL__$|[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}" |
| 812 | + } |
| 813 | + ] |
758 | 814 | }, |
759 | 815 | { |
760 | 816 | "key": "secrets_manager_endpoint_type", |
|
1144 | 1200 | }, |
1145 | 1201 | { |
1146 | 1202 | "key": "prefix", |
1147 | | - "required": true |
| 1203 | + "required": true, |
| 1204 | + "value_constraints": [ |
| 1205 | + { |
| 1206 | + "type": "regex", |
| 1207 | + "description": "Prefix must begin with a lowercase letter and may contain only lowercase letters, digits, and hyphens '-'. It must not end with a hyphen('-'), and cannot contain consecutive hyphens ('--'). It should not exceed 16 characters", |
| 1208 | + "value": "^$|^__NULL__$|^[a-z](?!.*--)[a-z0-9-]{0,14}[a-z0-9]$" |
| 1209 | + } |
| 1210 | + ] |
1148 | 1211 | }, |
1149 | 1212 | { |
1150 | 1213 | "key": "region", |
|
0 commit comments