Skip to content

Commit a4d5d9a

Browse files
Db version fixes (#388)
* added indexes * added x-ui-typable for dbs * added spec for facets.yaml * added version for mysql aurora * updated the mongo documentdb and atlas intent * removed 12.11 and 14.0 version from postgres aurora * fixed validation error * added atlas account as input for mongo atlas * fixed atlas account outputs * added spec to atlas_account * added x-ui-typable for documentdb --------- Co-authored-by: Shashwat Pathak <shashwat.pathak@facets.cloud>
1 parent 39f6d8f commit a4d5d9a

33 files changed

Lines changed: 389 additions & 6 deletions

File tree

modules/atlas_account/default/0.1/facets.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,46 @@ intent: atlas_account
22
flavor: default
33
version: '0.1'
44
description: Adds atlas_account - default flavor
5+
outputs:
6+
default:
7+
type: "@outputs/atlas_account"
8+
providers:
9+
mongodbatlas:
10+
source: mongodb/mongodbatlas
11+
version: 1.17.0
12+
attributes:
13+
public_key: attributes.public_key
14+
private_key: attributes.private_key
515
clouds:
616
- aws
717
- gcp
818
- azure
919
- kubernetes
20+
spec:
21+
title: Atlas Account Configuration
22+
type: object
23+
properties:
24+
project_id:
25+
type: string
26+
title: Atlas Project ID
27+
description: The ID of the MongoDB Atlas project.
28+
x-ui-typeable: true
29+
x-ui-placeholder: "e.g., '5f8d0c0b0f1a2b3c4d5e6f7g'"
30+
x-ui-error-message: "Please enter a valid Atlas Project ID."
31+
public_key:
32+
type: string
33+
title: Atlas Public Key
34+
description: The public key for the MongoDB Atlas account.
35+
x-ui-typeable: true
36+
x-ui-placeholder: "e.g., 'abc123xyz456'"
37+
x-ui-error-message: "Please enter a valid Atlas Public Key."
38+
private_key:
39+
type: string
40+
title: Atlas Private Key
41+
description: The private key for the MongoDB Atlas account.
42+
x-ui-typeable: true
43+
x-ui-placeholder: "e.g., 'privateKey123'"
44+
x-ui-error-message: "Please enter a valid Atlas Private Key."
1045
sample:
1146
flavor: default
1247
lifecycle: ENVIRONMENT

modules/cassandra/k8s/0.1/facets.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ spec:
2424
title: Cassandra Version
2525
description: Version of Cassandra DB
2626
minLength: 1
27+
x-ui-typeable: true
2728
enum:
2829
- "5.0.2"
2930
- "4.1.7"

modules/elasticsearch/k8s/0.1/facets.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ spec:
1616
title: Elasticsearch Version
1717
description: Version of Elasticsearch
1818
minLength: 1
19+
x-ui-typeable: true
1920
enum:
2021
- 8.14.1
2122
- 7.16.3

modules/elasticsearch/k8s/0.2/facets.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ spec:
2424
title: Elasticsearch Version
2525
description: Version of Elasticsearch
2626
minLength: 1
27+
x-ui-typeable: true
2728
enum:
2829
- 8.14.1
2930
- 7.16.3

modules/elasticsearch/opensearch/0.1/facets.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ spec:
1414
description: Version of Elasticsearch. Refer to the url for more information https://docs.aws.amazon.com/opensearch-service/latest/developerguide/what-is.html
1515
minLength: 1
1616
x-ui-placeholder: "Ex. 7.10"
17+
x-ui-typeable: true
1718
enum:
1819
- "7.10"
1920
- "6.8"

modules/elasticsearch/opensearch/0.2/facets.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ spec:
2121
description: Version of OpenSearch. Refer to the url for more information https://docs.aws.amazon.com/opensearch-service/latest/developerguide/what-is.html
2222
minLength: 1
2323
x-ui-placeholder: "Ex. OpenSearch_2.17"
24+
x-ui-typeable: true
2425
enum:
2526
- OpenSearch_2.17
2627
- OpenSearch_2.15

modules/kafka/k8s/0.2/facets.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ spec:
1919
type: string
2020
title: Kafka Version
2121
description: Version of kafka e.g. 3.2.3
22+
x-ui-typeable: true
2223
enum:
2324
- "1.1.1"
2425
- "2.8.0"

modules/kafka/k8s/0.3/facets.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ spec:
2727
type: string
2828
title: Kafka Version
2929
description: Version of kafka e.g. 3.8.0
30+
x-ui-typeable: true
3031
enum:
3132
- 3.8.0
3233
mode:

modules/kafka/msk/0.1/facets.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ spec:
1616
type: string
1717
title: Kafka Version
1818
description: Version of kafka e.g. 3.2.3
19+
x-ui-typeable: true
1920
enum:
2021
- 1.1.1
2122
- 2.1.0

modules/mongo/atlas/0.1/facets.yaml

Lines changed: 90 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,97 @@ flavor: atlas
33
version: '0.1'
44
description: Adds mongo - atlas flavor
55
clouds:
6-
- aws
7-
- gcp
86
- azure
9-
- kubernetes
7+
inputs:
8+
atlas_account:
9+
type: '@outputs/atlas_account'
10+
optional: false
11+
providers:
12+
- mongodbatlas
13+
spec:
14+
title: MongoDB Atlas Configuration
15+
type: object
16+
properties:
17+
mongodb_version:
18+
type: string
19+
title: MongoDB Version
20+
description: Specifies the MongoDB major version to use.
21+
x-ui-typeable: true
22+
enum:
23+
- "4.4"
24+
- "5.0"
25+
- "6.0"
26+
- "7.0"
27+
- "8.0"
28+
x-ui-placeholder: "e.g., '6.0'"
29+
x-ui-error-message: "Please select a valid MongoDB version."
30+
region:
31+
type: string
32+
title: Region
33+
description: The cloud region where the cluster will be deployed.
34+
x-ui-placeholder: "e.g., 'US_EAST_1'"
35+
x-ui-error-message: "Please specify a valid region."
36+
size:
37+
type: object
38+
title: Size Configuration
39+
description: Size and capacity configuration for the MongoDB Atlas cluster.
40+
properties:
41+
instance:
42+
type: string
43+
title: Instance Size
44+
description: The compute and memory capacity of the cluster instances.
45+
enum:
46+
- "M0"
47+
- "M2"
48+
- "M5"
49+
- "M10"
50+
- "M20"
51+
- "M30"
52+
- "M40"
53+
- "M50"
54+
- "M60"
55+
- "M80"
56+
- "M100"
57+
- "M140"
58+
- "M200"
59+
- "M300"
60+
- "M400"
61+
- "M700"
62+
x-ui-placeholder: "e.g., 'M10'"
63+
x-ui-error-message: "Please select a valid instance size."
64+
instance_count:
65+
type: integer
66+
title: Instance Count
67+
description: Number of instances in the cluster.
68+
minimum: 1
69+
maximum: 50
70+
default: 3
71+
x-ui-placeholder: "e.g., 3"
72+
x-ui-error-message: "Instance count must be between 1 and 50."
73+
volume:
74+
type: integer
75+
title: Disk Size (GB)
76+
description: The disk size in GB for the cluster.
77+
minimum: 8
78+
maximum: 4096
79+
default: 8
80+
x-ui-placeholder: "e.g., 20"
81+
x-ui-error-message: "Disk size must be between 8 and 4096 GB."
82+
replication_specs:
83+
type: object
84+
title: Replication Specifications
85+
description: Configuration for cluster replication and regions.
86+
x-ui-yaml-editor: true
87+
required:
88+
- mongodb_version
89+
- region
90+
- size
91+
- replication_specs
92+
x-ui-order:
93+
- mongodb_version
94+
- region
95+
- size
96+
- replication_specs
1097
sample:
1198
flavor: atlas
1299
lifecycle: ENVIRONMENT

0 commit comments

Comments
 (0)