This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathbtpsa-parameters.json
489 lines (488 loc) · 20.7 KB
/
btpsa-parameters.json
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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "JSON Schema for service parameters used in BTPSA",
"description": "User and landscape specific parameters to be used when executing use cases",
"type": "object",
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string"
},
"btpcliapihostregion": {
"type": [
"string",
"null"
],
"description": "host region for the BTP CLI calls",
"title": "host region for the BTP CLI calls",
"default": "eu10"
},
"btplogonidp": {
"type": [
"string",
"null"
],
"description": "The tenant ID of a custom identity provider if configured for the global account. To be found in the cockpit under Trust Configuration.",
"title": "custom IDP for BTP logon",
"default": null
},
"cfcliapihostregion": {
"type": [
"string",
"null"
],
"description": "host region for the Cloud Foundry CLI (normally the same as 'region'). In case of errors you might have to set this to e.g. 'eu10-004' (check CF API in your SAP BTP cockpit in the sub account and CF environment).",
"title": "host region for the Cloud Foundry CLI calls",
"default": null
},
"cfLandscape":{
"type": [
"string",
"null"
],
"description": "landscape of the Cloud Foundry environment to be used for your use case (e.g. cf-eu10-004)",
"title": "landscape of the CF environment for use case",
"default": null
},
"cfspacename": {
"type": [
"string",
"null"
],
"description": "name for the Cloudfoundry space to be used for your use case",
"title": "name for the CF space",
"default": "development"
},
"cfspacequota": {
"type": "object",
"description": "space quota definition for the cf space",
"title": "CF space quota",
"additionalProperties": false,
"properties": {
"createQuotaPlan":{
"type": "boolean",
"description": "if set to true, a new quota plan will be created",
"title": "create new quota plan",
"default": false
},
"spaceQuotaAllowPaidServicePlans":{
"type": "boolean",
"description": "if set to true, paid service plans are allowed",
"title": "allow paid service plans",
"default": true
},
"spaceQuotaAppInstances": {
"type": "integer",
"description": "total number of application instances. -1 represents an unlimited amount.",
"title": "total number of application instances",
"default": -1
},
"spaceQuotaInstanceMemory": {
"type": "string",
"description": "instance memory limit for the quota plan",
"title": "instance memory limit for quota plan",
"default": "1024M"
},
"spaceQuotaName": {
"type": "string",
"description": "name of the quota plan to be created",
"title": "name of the quota plan",
"default": "development-quota"
},
"spaceQuotaReservedRoutePorts": {
"type": "integer",
"description": "maximum number of routes that may be created with reserved ports",
"title": "maximum number of reserved routes",
"default": 0
},
"spaceQuotaRoutes": {
"type": "integer",
"description": "total number of routes for the quota plan",
"title": "total number of routes for quota plan",
"default": 5
},
"spaceQuotaServiceInstances": {
"type": "integer",
"description": "total number of service instances for the quota plan",
"title": "total number of service instances for quota plan",
"default": 5
},
"spaceQuotaTotalMemory": {
"type": "string",
"description": "total memory limit for the quota plan",
"title": "total memory limit for quota plan",
"default": "2048M"
}
}
},
"clusterregion": {
"type": "string",
"description": "region for the SAP BTP Kyma runtime cluster. This parameter is used as default for Kyma cluster creation. Override via usecase.json possible",
"title": "region for SAP BTP Kyma runtime cluster"
},
"customAppProviderSubaccountId": {
"type": "string",
"description": "id of provider sub account of custom app",
"title": "provider subaccount id of custom app on SAP BTP",
"default": null
},
"defaultIdp": {
"type": [
"string",
"null"
],
"description": "default identity provider for role collections",
"title": "default IdP",
"default": null
},
"directoryid": {
"type": [
"string",
"null"
],
"description": "id of the directory that should be used",
"title": "directory id in SAP BTP global account",
"default": null
},
"directoryname": {
"type": [
"string",
"null"
],
"description": "name of your directory in case you want to define a specific name for it",
"title": "directory name for use case",
"default": null
},
"directorylabels":{
"type": "object",
"description": "labels for the directory",
"title": "directory labels",
"default": null
},
"envvariables": {
"type": "object",
"description": "list of environment variables on OS level to be used within commands defined in the `executeBeforeAccountSetup` and `executeAfterAccountSetup`.",
"title": "list of environment variables on OS level to be used within commands defined in the `executeBeforeAccountSetup` and `executeAfterAccountSetup`.",
"default": null
},
"externalConfigAuthMethod": {
"type": [
"string",
"null"
],
"description": "authentication method for external configuration file retrieval",
"title": "authentication method for external configuration",
"default": null,
"enum": [
"basicAuthentication",
"token"
]
},
"externalConfigUserName": {
"type": [
"string",
"null"
],
"description": "user name for external configuration file retrieval (basic authentication)",
"title": "user name for external configuration file retrieval ",
"default": null
},
"externalConfigPassword": {
"type": [
"string",
"null"
],
"description": "password for external configuration file retrieval (basic authentication)",
"title": "password for external configuration file retrieval",
"default": null
},
"externalConfigToken": {
"type": [
"string",
"null"
],
"description": "token for external configuration file retrieval (token-based authentication)",
"title": "token for external configuration file retrieval",
"default": null
},
"fallbackserviceplan": {
"type": [
"string",
"null"
],
"description": "if defined, the tool will use the defined name as fallback service plan, if the plan defined in the use case is not supported",
"title": "fallback service plan, if the plan defined in the use case is not supported",
"default": null
},
"globalaccount": {
"type": [
"string",
"null"
],
"description": "the 'subdomain id' of your SAP BTP global account (please check it in the SAP BTP cockpit)",
"title": "your SAP BTP global account",
"default": null
},
"iashost": {
"type": [
"string",
"null"
],
"description": "IAS host for your SAP BTP sub account in case you want to make use of it in your use case (create a service instance for service 'xsuaa' and plan 'apiaccess')",
"title": "IAS host for your SAP BTP sub account",
"default": null
},
"k8snamespace": {
"type": "string",
"description": "name for the Kubernetes namespace to be used for your use case",
"title": "name for the Kubernetes namespace",
"default": "default"
},
"kubeconfigpath": {
"type": "string",
"description": "path to kubeconfig file to be used for your use case",
"title": "path to kubeconfig file",
"default": ".kube/configsa"
},
"logcommands": {
"type": "boolean",
"description": "if set to True, the script will log all commands sent to the SAP BTP account. If set to False it won't",
"title": "log all commands sent to your SAP BTP account",
"default": true
},
"logfile": {
"type": "string",
"description": "file including all logged information",
"title": "log file",
"default": "log/script.log"
},
"loginmethod": {
"type": "string",
"title": "login method to SAP BTP",
"description": "if set to sso, you'll need to open a link provided in a browser to login. Set to basicAuthentication (default) the script will ask if you want to provide username and password. If set to **envVariables** you need to provide the email address and password by setting the environment variable **BTPSA_PARAM_MYEMAIL** and **BTPSA_PARAM_MYPASSWORD**. In addition you can as well provide the global account through the environment variable **BTPSA_PARAM_GLOBALACCOUNT**. Like this: export BTPSA_PARAM_MYEMAIL=youremail@x.com",
"default": "basicAuthentication",
"enum": [
"basicAuthentication",
"sso",
"envVariables"
]
},
"metadatafile": {
"type": "string",
"description": "file for log information",
"title": "file for log information",
"default": "log/metadata_log.json"
},
"myemail": {
"type": [
"string",
"null"
],
"description": "Email address you use to access your SAP BTP account",
"title": "Your email address",
"default": null,
"format": "email"
},
"mypassword": {
"type": "string",
"description": "password for the user of your SAP BTP account (USE WITH CARE!)",
"title": "password for the user of your SAP BTP account (USE WITH CARE!)",
"default": null
},
"myusergroups": {
"type": "array",
"description": "list of user groups to be used in btpsa",
"title": "list of user groups to be used in btpsa",
"default": null,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "name of this usergroup (not BTP specific)",
"title": "name of this usergroup"
},
"members": {
"type": "array",
"description": "member of usergroup specified via email",
"title": "member of usergroup",
"items": {
"type": "string",
"format": "email"
}
}
}
}
},
"org": {
"type": [
"string",
"null"
],
"description": "org name of the Cloud Foundry environment to be used for your use case",
"title": "org name of the CF environment for use case",
"default": null
},
"orgid": {
"type": [
"string",
"null"
],
"description": "org id of the Cloudfoundry environment to be used for your use case",
"title": "org id of the CF environment for use case",
"default": null
},
"parameterfile": {
"type": "string",
"description": "file to deliver all parameters within a single json file",
"title": "parameters file for btp-setup-automator",
"default": "parameters.json"
},
"pollingIntervalForKymaCreationInMinutes": {
"type": "integer",
"description": "Polling interval in minutes when tool is waiting for the Kyma instance to be created",
"title": "Polling interval in minutes when tool is waiting for the Kyma instance to be created",
"default": 5
},
"pollingIntervalForKymaDeprovisioningInMinutes": {
"type": "integer",
"description": "Polling interval in minutes when tool is waiting for the Kyma instance to be deprovisioned/deleted",
"title": "Polling interval in minutes when tool is waiting for the Kyma instance to be deprovisioned/deleted",
"default": 5
},
"prunesubaccount": {
"type": "boolean",
"description": "if set to True: same like -pruneusecase, but on-top deletes the subaccount. USE WITH CARE!!!",
"title": "same like parameter 'pruneusecase', but on-top deletes the subaccount",
"default": false
},
"pruneusecase": {
"type": "boolean",
"description": "if set to True: deletes all assets of a usecase based on the collected info in the metadatafile. No confirmation message. USE WITH CARE!!!",
"title": "delete all assets of a usecase based on the collected info in the metadatafile",
"default": false
},
"region": {
"type": "string",
"description": "region for the SAP BTP sub account that should be used for the use case",
"title": "region for SAP BTP subaccount",
"default": "us10",
"enum": ["ae1","ap1","ap10","ap11","ap12","ap20","ap21","br1","br10","ca1","ca10","ch20","cn1","eu1","eu10","eu11","eu2","eu20","eu3","eu30","in30","jp1","jp10","jp20","sa1","us1","us10","us2","us20","us21","us3","us30","us4"]
},
"repeatstatusrequest": {
"type": "integer",
"description": "time in seconds to wait after requesting status info (pulling)",
"title": "time in seconds to wait after requesting status info (pulling)",
"default": 4
},
"repeatstatustimeout": {
"type": "integer",
"description": "timeout in seconds after which requests should be stopped",
"title": "timeout in seconds after which requests should be stopped",
"default": 4200
},
"rundefaulttests": {
"type": "boolean",
"description": "switch to run default tests at the beginning of the script (INTERNAL USAGE)",
"title": "switch to run default tests at the beginning of the script",
"default": true
},
"skipcfspacecreation": {
"type": "boolean",
"description": "if set to True: skips the creation of a CF space",
"title": "skip the creation of a CF space",
"default": false
},
"subaccountenablebeta": {
"type": "boolean",
"description": "if set to true, a newly create subaccount will have beta features enabled",
"title": "enable beta features in new subaccount",
"default": false
},
"subaccountid": {
"type": "string",
"description": "id of your sub account that should be used",
"title": "subaccount id of SAP BTP sub account",
"default": null
},
"subaccountlabels":{
"type": "object",
"description": "labels for your sub account",
"title": "sub account labels",
"default": null
},
"subaccountname": {
"type": [
"string",
"null"
],
"description": "name of your sub account in case you want to define a specific name for your sub account",
"title": "sub account name for use case",
"default": null
},
"subdomain": {
"type": [
"string",
"null"
],
"description": "name of the subdomain of your sub account",
"title": "subdomain of sub account",
"default": null
},
"suffixinstancename": {
"type": [
"string",
"null"
],
"description": "suffix attached to each service instance that is created (e.g. hana_yoursuffixinstancename)",
"title": "suffix attached to each service instance created",
"default": null
},
"timeoutLimitForKymaCreationInMinutes": {
"type": "integer",
"description": "Limit in minutes until the tool should wait for the Kyma instance to be created",
"title": "Limit in minutes until the tool should wait for the Kyma instance to be created",
"default": 40
},
"timeoutLimitForKymaDeprovisioningInMinutes": {
"type": "integer",
"description": "Limit in minutes until the tool should wait for the Kyma instance to be deprovisioned/deleted",
"title": "Limit in minutes until the tool should wait for the Kyma instance to be deprovisioned/deleted",
"default": 40
},
"usecasefile": {
"type": "string",
"description": "file with usecase config",
"title": "file with usecase config",
"default": null
},
"usedirectory": {
"type": "boolean",
"description": "Should the tool create/use a directory for the subaccount?",
"title": "Trigger creation/usage of a directory for the subaccount?",
"default": false
},
"waitForKymaEnvironmentCreation": {
"type": "boolean",
"description": "Should the tool wait for the creation of the Kyma environment",
"title": "Should the tool wait for the creation of the Kyma environment",
"default": true
}
},
"required": ["loginmethod","usecasefile"],
"allOf": [
{
"if": {"properties": { "region": { "anyOf": [ {"enum": ["us10", "eu10", "br10", "jp10", "ca10", "ap12", "ap10", "ap11"]}] }}},
"then": { "properties": {"clusterregion": {"enum": ["eu-central-1", "eu-west-2", "ca-central-1", "sa-east-1", "us-east-1", "us-west-1","ap-northeast-1", "ap-northeast-2", "ap-south-1", "ap-southeast-1", "ap-southeast-2"] }}}
},
{
"if": {"properties": { "region": { "anyOf": [ {"enum": ["us30"]}] }}},
"then": { "properties": {"clusterregion": {"enum": ["asia-south1", "us-central1", "europe-west3"] }}}
},
{
"if": {"properties": { "region": { "anyOf": [ {"enum": ["ap21", "us20", "jp20", "us21", "eu20"]}] }}},
"then": { "properties": {"clusterregion": {"enum": ["centralus", "eastus", "westus2", "northeurope", "uksouth", "japaneast", "southeastasia", "westeurope"] }}}
}
]
}