forked from walrus-catalog/terraform-docker-postgresql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.yaml
228 lines (228 loc) · 7.31 KB
/
schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
openapi: 3.0.3
info:
title: OpenAPI schema for template walrus-template-template
components:
schemas:
variables:
type: object
properties:
infrastructure:
title: Infrastructure
type: object
description: |
Specify the infrastructure information for deploying.
default:
domain_suffix: cluster.local
network_id: local-walrus
required:
- network_id
properties:
domain_suffix:
default: cluster.local
description: |
Specify the domain name for discovering the service.
title: Domain Suffix
type: string
x-walrus-ui:
order: 2
network_id:
default: local-walrus
description: |
Specify the ID of the Docker network where the service applies.
title: Network Id
type: string
x-walrus-ui:
order: 1
x-walrus-ui:
colSpan: 12
group: Advanced
order: 2
architecture:
title: Architecture
type: string
description: |
Specify the deployment architecture, select from standalone or replication.
default: standalone
enum:
- standalone
- replication
x-walrus-ui:
group: Basic
order: 3
replication_readonly_replicas:
title: Replication Readonly Replicas
type: number
description: |
Specify the number of read-only replicas under the replication deployment.
default: 1
enum:
- 1
- 3
- 5
x-walrus-ui:
group: Basic
order: 4
showIf: architecture=replication
engine_version:
title: Engine Version
type: string
description: |
Specify the deployment engine version, select from https://hub.docker.com/r/bitnami/postgresql/tags.
default: "16.0"
x-walrus-ui:
group: Basic
order: 5
database:
title: Database
type: string
description: |
Specify the database name. The database name must be 2-64 characters long and start with any lower letter, combined with number, or symbols: - _.
The database name cannot be PostgreSQL forbidden keyword.
default: mydb
x-walrus-ui:
group: Basic
order: 6
username:
title: Username
type: string
description: |
Specify the account username. The username must be 2-16 characters long and start with lower letter, combined with number, or symbol: _.
The username cannot be PostgreSQL forbidden keyword and root.
See https://www.alibabacloud.com/help/en/rds/developer-reference/api-rds-2014-08-15-createaccount.
default: rdsuser
x-walrus-ui:
group: Basic
order: 7
password:
title: Password
type: string
description: |
Specify the account password. The password must be 8-32 characters long and start with any letter, number, or symbols: ! # $ % ^ & * ( ) _ + - =.
If not specified, it will use the first 16 characters of the username md5 hash value.
format: password
writeOnly: true
x-walrus-ui:
group: Basic
order: 8
resources:
title: Resources
type: object
description: |
Specify the computing resources.
default:
cpu: 0.25
memory: 1024
properties:
cpu:
default: 0.25
description: |
Specify the CPU core number. Unit is core.
title: Cpu
type: number
x-walrus-ui:
order: 1
memory:
default: 1024
description: |
Specify the memory size. Unit is megabyte.
title: Memory
type: number
x-walrus-ui:
order: 2
x-walrus-ui:
colSpan: 12
group: Basic
order: 9
seeding:
title: Seeding
type: object
description: Specify the configuration to seed the database at first-time
creating. Seeding increases the startup time waiting and also needs proper
permission, like root account.
default: {}
properties:
text:
description: |
Configure database seeding from text.
properties:
content:
description: |
Specify the SQL statements to seed the database.
title: Content
type: string
x-walrus-ui:
order: 1
widget: TextArea
required:
- content
title: Text
type: object
x-walrus-ui:
colSpan: 12
order: 3
showIf: type=text
type:
default: none
description: |
Specify the seeding approach, select from none, url or text.
enum:
- none
- url
- text
title: Type
type: string
x-walrus-ui:
order: 1
url:
description: |
Configure database seeding from url.
properties:
location:
description: |
Specify the URL to download the SQL statements.
title: Location
type: string
x-walrus-ui:
order: 1
storage:
description: |
Specify a storage to store the downloaded SQL statements.
properties:
class:
description: |
Specify the storage class. If not specified, it will use the default provisioner.
title: Class
type: string
x-walrus-ui:
order: 1
size:
default: 10240
description: |
Specify the storage size. Unit is megabyte.
minimum: 1024
title: Size(MiB)
type: number
x-walrus-ui:
order: 2
title: Storage
type: object
x-walrus-ui:
colSpan: 12
hidden: true
order: 2
required:
- location
title: Url
type: object
x-walrus-ui:
colSpan: 12
order: 2
showIf: type=url
x-walrus-ui:
colSpan: 12
group: Basic
order: 10
x-walrus-ui:
groupOrder:
- Basic
- Advanced