kb-cloud-client-typescript 2.3.0-alpha.155 → 2.3.0-alpha.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adminapi/apis/environment-api.d.ts +56 -0
- package/dist/adminapi/apis/environment-api.d.ts.map +1 -1
- package/dist/adminapi/apis/environment-api.js +69 -0
- package/dist/adminapi/apis/environment-api.js.map +1 -1
- package/dist/adminapi/models/cluster-create.d.ts +13 -0
- package/dist/adminapi/models/cluster-create.d.ts.map +1 -1
- package/dist/adminapi/models/cluster.d.ts +13 -0
- package/dist/adminapi/models/cluster.d.ts.map +1 -1
- package/dist/adminapi/models/environment-create.d.ts +6 -0
- package/dist/adminapi/models/environment-create.d.ts.map +1 -1
- package/dist/adminapi/models/environment-update.d.ts +6 -0
- package/dist/adminapi/models/environment-update.d.ts.map +1 -1
- package/dist/adminapi/models/environment.d.ts +6 -0
- package/dist/adminapi/models/environment.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +8 -1
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +8 -1
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/koordinator-node-reservation.d.ts +71 -0
- package/dist/adminapi/models/koordinator-node-reservation.d.ts.map +1 -0
- package/dist/adminapi/models/{storage-config-log.d.ts → koordinator-node-reservation.js} +5 -14
- package/dist/adminapi/models/koordinator-node-reservation.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-allocate-policy.d.ts +22 -0
- package/dist/adminapi/models/koordinator-reservation-allocate-policy.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-allocate-policy.js +26 -0
- package/dist/adminapi/models/koordinator-reservation-allocate-policy.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-resource-class.d.ts +22 -0
- package/dist/adminapi/models/koordinator-reservation-resource-class.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-resource-class.js +26 -0
- package/dist/adminapi/models/koordinator-reservation-resource-class.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-resources.d.ts +31 -0
- package/dist/adminapi/models/koordinator-reservation-resources.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-resources.js +16 -0
- package/dist/adminapi/models/koordinator-reservation-resources.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-status.d.ts +50 -0
- package/dist/adminapi/models/koordinator-reservation-status.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-status.js +16 -0
- package/dist/adminapi/models/koordinator-reservation-status.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-summary-item.d.ts +51 -0
- package/dist/adminapi/models/koordinator-reservation-summary-item.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-summary-item.js +16 -0
- package/dist/adminapi/models/koordinator-reservation-summary-item.js.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-summary.d.ts +51 -0
- package/dist/adminapi/models/koordinator-reservation-summary.d.ts.map +1 -0
- package/dist/adminapi/models/koordinator-reservation-summary.js +16 -0
- package/dist/adminapi/models/koordinator-reservation-summary.js.map +1 -0
- package/dist/adminapi/models/node.d.ts +7 -0
- package/dist/adminapi/models/node.d.ts.map +1 -1
- package/dist/adminapi/models/parameter-prop.d.ts +6 -0
- package/dist/adminapi/models/parameter-prop.d.ts.map +1 -1
- package/dist/adminapi/models/scheduler-option.d.ts +37 -0
- package/dist/adminapi/models/scheduler-option.d.ts.map +1 -0
- package/dist/adminapi/models/{storage-config-log.js → scheduler-option.js} +1 -1
- package/dist/adminapi/models/scheduler-option.js.map +1 -0
- package/dist/adminapi/models/storage-config.d.ts +0 -7
- package/dist/adminapi/models/storage-config.d.ts.map +1 -1
- package/dist/internalapi/models/cluster.d.ts +13 -0
- package/dist/internalapi/models/cluster.d.ts.map +1 -1
- package/dist/internalapi/models/index.d.ts +1 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +1 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/koordinator-reservation-resource-class.d.ts +22 -0
- package/dist/internalapi/models/koordinator-reservation-resource-class.d.ts.map +1 -0
- package/dist/internalapi/models/koordinator-reservation-resource-class.js +26 -0
- package/dist/internalapi/models/koordinator-reservation-resource-class.js.map +1 -0
- package/dist/openapi/apis/data-replication-api.d.ts +4 -4
- package/dist/openapi/apis/data-replication-api.d.ts.map +1 -1
- package/dist/openapi/models/cluster-create.d.ts +13 -0
- package/dist/openapi/models/cluster-create.d.ts.map +1 -1
- package/dist/openapi/models/cluster.d.ts +13 -0
- package/dist/openapi/models/cluster.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +5 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +5 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/koordinator-node-reservation.d.ts +71 -0
- package/dist/openapi/models/koordinator-node-reservation.d.ts.map +1 -0
- package/dist/openapi/models/koordinator-node-reservation.js +16 -0
- package/dist/openapi/models/koordinator-node-reservation.js.map +1 -0
- package/dist/openapi/models/koordinator-reservation-allocate-policy.d.ts +22 -0
- package/dist/openapi/models/koordinator-reservation-allocate-policy.d.ts.map +1 -0
- package/dist/openapi/models/koordinator-reservation-allocate-policy.js +26 -0
- package/dist/openapi/models/koordinator-reservation-allocate-policy.js.map +1 -0
- package/dist/openapi/models/koordinator-reservation-resource-class.d.ts +22 -0
- package/dist/openapi/models/koordinator-reservation-resource-class.d.ts.map +1 -0
- package/dist/openapi/models/koordinator-reservation-resource-class.js +26 -0
- package/dist/openapi/models/koordinator-reservation-resource-class.js.map +1 -0
- package/dist/openapi/models/koordinator-reservation-resources.d.ts +31 -0
- package/dist/openapi/models/koordinator-reservation-resources.d.ts.map +1 -0
- package/dist/openapi/models/koordinator-reservation-resources.js +16 -0
- package/dist/openapi/models/koordinator-reservation-resources.js.map +1 -0
- package/dist/openapi/models/koordinator-reservation-status.d.ts +50 -0
- package/dist/openapi/models/koordinator-reservation-status.d.ts.map +1 -0
- package/dist/openapi/models/koordinator-reservation-status.js +16 -0
- package/dist/openapi/models/koordinator-reservation-status.js.map +1 -0
- package/dist/openapi/models/node.d.ts +7 -0
- package/dist/openapi/models/node.d.ts.map +1 -1
- package/dist/openapi/models/parameter-prop.d.ts +6 -0
- package/dist/openapi/models/parameter-prop.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +8 -1
- package/src/adminapi/apis/environment-api.ts +102 -0
- package/src/adminapi/models/cluster-create.ts +15 -0
- package/src/adminapi/models/cluster.ts +15 -0
- package/src/adminapi/models/environment-create.ts +6 -0
- package/src/adminapi/models/environment-update.ts +6 -0
- package/src/adminapi/models/environment.ts +6 -0
- package/src/adminapi/models/index.ts +8 -1
- package/src/adminapi/models/koordinator-node-reservation.ts +86 -0
- package/src/adminapi/models/koordinator-reservation-allocate-policy.ts +31 -0
- package/src/adminapi/models/{storage-config-log.ts → koordinator-reservation-resource-class.ts} +11 -10
- package/src/adminapi/models/koordinator-reservation-resources.ts +36 -0
- package/src/adminapi/models/koordinator-reservation-status.ts +57 -0
- package/src/adminapi/models/koordinator-reservation-summary-item.ts +62 -0
- package/src/adminapi/models/koordinator-reservation-summary.ts +60 -0
- package/src/adminapi/models/node.ts +9 -0
- package/src/adminapi/models/parameter-prop.ts +6 -0
- package/src/adminapi/models/scheduler-option.ts +42 -0
- package/src/adminapi/models/storage-config.ts +0 -9
- package/src/adminapi.yaml +167 -10
- package/src/internalapi/.openapi-generator/FILES +1 -0
- package/src/internalapi/models/cluster.ts +15 -0
- package/src/internalapi/models/index.ts +1 -0
- package/src/internalapi/models/koordinator-reservation-resource-class.ts +31 -0
- package/src/internalapi.yaml +13 -0
- package/src/openapi/.openapi-generator/FILES +5 -0
- package/src/openapi/apis/data-replication-api.ts +3 -3
- package/src/openapi/models/cluster-create.ts +15 -0
- package/src/openapi/models/cluster.ts +15 -0
- package/src/openapi/models/index.ts +5 -0
- package/src/openapi/models/koordinator-node-reservation.ts +86 -0
- package/src/openapi/models/koordinator-reservation-allocate-policy.ts +31 -0
- package/src/openapi/models/koordinator-reservation-resource-class.ts +31 -0
- package/src/openapi/models/koordinator-reservation-resources.ts +36 -0
- package/src/openapi/models/koordinator-reservation-status.ts +57 -0
- package/src/openapi/models/node.ts +9 -0
- package/src/openapi/models/parameter-prop.ts +6 -0
- package/src/openapi.yaml +83 -1
- package/dist/adminapi/models/storage-config-log.d.ts.map +0 -1
- package/dist/adminapi/models/storage-config-log.js.map +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface SchedulerOption
|
|
21
|
+
*/
|
|
22
|
+
export interface SchedulerOption {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof SchedulerOption
|
|
27
|
+
*/
|
|
28
|
+
'name'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof SchedulerOption
|
|
33
|
+
*/
|
|
34
|
+
'displayName'?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof SchedulerOption
|
|
39
|
+
*/
|
|
40
|
+
'default'?: boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -19,9 +19,6 @@ import type { EnvironmentStorage } from './environment-storage';
|
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import type { StorageConfigBackup } from './storage-config-backup';
|
|
22
|
-
// May contain unused imports in some cases
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import type { StorageConfigLog } from './storage-config-log';
|
|
25
22
|
|
|
26
23
|
/**
|
|
27
24
|
* Storage config for environment
|
|
@@ -35,12 +32,6 @@ export interface StorageConfig {
|
|
|
35
32
|
* @memberof StorageConfig
|
|
36
33
|
*/
|
|
37
34
|
'storages': Array<EnvironmentStorage>;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {StorageConfigLog}
|
|
41
|
-
* @memberof StorageConfig
|
|
42
|
-
*/
|
|
43
|
-
'log': StorageConfigLog;
|
|
44
35
|
/**
|
|
45
36
|
*
|
|
46
37
|
* @type {StorageConfigBackup}
|
package/src/adminapi.yaml
CHANGED
|
@@ -9929,6 +9929,37 @@ paths:
|
|
|
9929
9929
|
$ref: '#/components/responses/404'
|
|
9930
9930
|
tags:
|
|
9931
9931
|
- environment
|
|
9932
|
+
/admin/v1/environments/{environmentName}/koordinatorReservations/summary:
|
|
9933
|
+
get:
|
|
9934
|
+
description: Get Koordinator Reservation summary for the cluster creation page.
|
|
9935
|
+
summary: Get Koordinator Reservation summary
|
|
9936
|
+
operationId: getKoordinatorReservationSummary
|
|
9937
|
+
parameters:
|
|
9938
|
+
- description: name of the environment
|
|
9939
|
+
in: path
|
|
9940
|
+
name: environmentName
|
|
9941
|
+
required: true
|
|
9942
|
+
schema:
|
|
9943
|
+
type: string
|
|
9944
|
+
responses:
|
|
9945
|
+
'200':
|
|
9946
|
+
content:
|
|
9947
|
+
application/json:
|
|
9948
|
+
schema:
|
|
9949
|
+
$ref: '#/components/schemas/koordinatorReservationSummary'
|
|
9950
|
+
description: Koordinator Reservation summary.
|
|
9951
|
+
'400':
|
|
9952
|
+
$ref: '#/components/responses/400'
|
|
9953
|
+
'401':
|
|
9954
|
+
$ref: '#/components/responses/401'
|
|
9955
|
+
'403':
|
|
9956
|
+
$ref: '#/components/responses/403'
|
|
9957
|
+
'404':
|
|
9958
|
+
$ref: '#/components/responses/404'
|
|
9959
|
+
'500':
|
|
9960
|
+
$ref: '#/components/responses/500'
|
|
9961
|
+
tags:
|
|
9962
|
+
- environment
|
|
9932
9963
|
/admin/v1/environments/{environmentName}/nodes/{nodeName}/cordon:
|
|
9933
9964
|
patch:
|
|
9934
9965
|
description: cordon the specified Environment node
|
|
@@ -23810,6 +23841,11 @@ components:
|
|
|
23810
23841
|
* `HardAntiAffinity` - Strictly enforce pod anti-affinity across nodes. Pods will not be scheduled when the anti-affinity constraints cannot be satisfied.
|
|
23811
23842
|
* `SoftAntiAffinity` - Prefer to spread pods across nodes using anti-affinity, but allow scheduling on the same node when constraints cannot be fully satisfied.
|
|
23812
23843
|
* `Disabled` - Do not apply pod anti-affinity constraints on nodes.
|
|
23844
|
+
koordinatorReservationResourceClass:
|
|
23845
|
+
type: string
|
|
23846
|
+
enum:
|
|
23847
|
+
- database
|
|
23848
|
+
- business
|
|
23813
23849
|
clusterCreate:
|
|
23814
23850
|
required:
|
|
23815
23851
|
- engine
|
|
@@ -23909,6 +23945,14 @@ components:
|
|
|
23909
23945
|
schedulingPolicy:
|
|
23910
23946
|
description: Scheduling policy for this cluster.
|
|
23911
23947
|
$ref: '#/components/schemas/schedulingPolicyType'
|
|
23948
|
+
schedulerName:
|
|
23949
|
+
title: Scheduler Name
|
|
23950
|
+
type: string
|
|
23951
|
+
nullable: true
|
|
23952
|
+
description: Scheduler used by this cluster. If omitted, KBE uses the environment default. When koordinatorEnabled is true for the target environment, the environment default is the globally configured Koordinator scheduler.
|
|
23953
|
+
reservationResourceClass:
|
|
23954
|
+
nullable: true
|
|
23955
|
+
$ref: '#/components/schemas/koordinatorReservationResourceClass'
|
|
23912
23956
|
description: KubeBlocks cluster information
|
|
23913
23957
|
componentItem:
|
|
23914
23958
|
type: object
|
|
@@ -24136,6 +24180,14 @@ components:
|
|
|
24136
24180
|
schedulingPolicy:
|
|
24137
24181
|
description: Scheduling policy for this cluster.
|
|
24138
24182
|
$ref: '#/components/schemas/schedulingPolicyType'
|
|
24183
|
+
schedulerName:
|
|
24184
|
+
title: Scheduler Name
|
|
24185
|
+
type: string
|
|
24186
|
+
nullable: true
|
|
24187
|
+
description: Effective scheduler used when the cluster was created.
|
|
24188
|
+
reservationResourceClass:
|
|
24189
|
+
nullable: true
|
|
24190
|
+
$ref: '#/components/schemas/koordinatorReservationResourceClass'
|
|
24139
24191
|
description: KubeBlocks cluster details
|
|
24140
24192
|
clusterBatchUpdateData:
|
|
24141
24193
|
type: object
|
|
@@ -25363,6 +25415,9 @@ components:
|
|
|
25363
25415
|
description: The value options of the parameter
|
|
25364
25416
|
type: array
|
|
25365
25417
|
items: {}
|
|
25418
|
+
unit:
|
|
25419
|
+
description: The unit of the parameter value (e.g., seconds, bytes, ms, percentage)
|
|
25420
|
+
type: string
|
|
25366
25421
|
parameterItem:
|
|
25367
25422
|
type: object
|
|
25368
25423
|
description: With the list of parameter properties and the configuration file name
|
|
@@ -28270,6 +28325,58 @@ components:
|
|
|
28270
28325
|
required:
|
|
28271
28326
|
- usage
|
|
28272
28327
|
type: object
|
|
28328
|
+
koordinatorReservationResources:
|
|
28329
|
+
type: object
|
|
28330
|
+
additionalProperties: false
|
|
28331
|
+
description: Resource requests supported by KBE for Koordinator Reservations. Values are Kubernetes quantities and responses use Kubernetes canonical quantity strings.
|
|
28332
|
+
properties:
|
|
28333
|
+
cpu:
|
|
28334
|
+
type: string
|
|
28335
|
+
memory:
|
|
28336
|
+
type: string
|
|
28337
|
+
koordinatorReservationAllocatePolicy:
|
|
28338
|
+
type: string
|
|
28339
|
+
enum:
|
|
28340
|
+
- Restricted
|
|
28341
|
+
- Aligned
|
|
28342
|
+
koordinatorReservationStatus:
|
|
28343
|
+
type: object
|
|
28344
|
+
properties:
|
|
28345
|
+
phase:
|
|
28346
|
+
type: string
|
|
28347
|
+
nodeName:
|
|
28348
|
+
type: string
|
|
28349
|
+
allocatable:
|
|
28350
|
+
$ref: '#/components/schemas/koordinatorReservationResources'
|
|
28351
|
+
allocated:
|
|
28352
|
+
$ref: '#/components/schemas/koordinatorReservationResources'
|
|
28353
|
+
available:
|
|
28354
|
+
$ref: '#/components/schemas/koordinatorReservationResources'
|
|
28355
|
+
koordinatorNodeReservation:
|
|
28356
|
+
type: object
|
|
28357
|
+
required:
|
|
28358
|
+
- resourceClass
|
|
28359
|
+
- resources
|
|
28360
|
+
properties:
|
|
28361
|
+
resourceClass:
|
|
28362
|
+
$ref: '#/components/schemas/koordinatorReservationResourceClass'
|
|
28363
|
+
reservationName:
|
|
28364
|
+
type: string
|
|
28365
|
+
readOnly: true
|
|
28366
|
+
resources:
|
|
28367
|
+
$ref: '#/components/schemas/koordinatorReservationResources'
|
|
28368
|
+
ttl:
|
|
28369
|
+
type: string
|
|
28370
|
+
default: 24h
|
|
28371
|
+
description: Kubernetes duration string. Koordinator defaults omitted ttl to 24h.
|
|
28372
|
+
allocateOnce:
|
|
28373
|
+
type: boolean
|
|
28374
|
+
preAllocation:
|
|
28375
|
+
type: boolean
|
|
28376
|
+
allocatePolicy:
|
|
28377
|
+
$ref: '#/components/schemas/koordinatorReservationAllocatePolicy'
|
|
28378
|
+
status:
|
|
28379
|
+
$ref: '#/components/schemas/koordinatorReservationStatus'
|
|
28273
28380
|
nodeStatus:
|
|
28274
28381
|
type: string
|
|
28275
28382
|
description: Status of the node
|
|
@@ -28328,6 +28435,10 @@ components:
|
|
|
28328
28435
|
managed:
|
|
28329
28436
|
description: Whether the node is managed (has data-plane or control-plane label)
|
|
28330
28437
|
type: boolean
|
|
28438
|
+
koordinatorReservations:
|
|
28439
|
+
type: array
|
|
28440
|
+
items:
|
|
28441
|
+
$ref: '#/components/schemas/koordinatorNodeReservation'
|
|
28331
28442
|
status:
|
|
28332
28443
|
$ref: '#/components/schemas/nodeStatus'
|
|
28333
28444
|
description: Node status
|
|
@@ -29004,7 +29115,6 @@ components:
|
|
|
29004
29115
|
type: object
|
|
29005
29116
|
description: Storage config for environment
|
|
29006
29117
|
required:
|
|
29007
|
-
- log
|
|
29008
29118
|
- backup
|
|
29009
29119
|
- storages
|
|
29010
29120
|
properties:
|
|
@@ -29013,15 +29123,6 @@ components:
|
|
|
29013
29123
|
description: these storages will be created
|
|
29014
29124
|
items:
|
|
29015
29125
|
$ref: '#/components/schemas/environmentStorage'
|
|
29016
|
-
log:
|
|
29017
|
-
type: object
|
|
29018
|
-
description: the storage config for log
|
|
29019
|
-
required:
|
|
29020
|
-
- storageName
|
|
29021
|
-
properties:
|
|
29022
|
-
storageName:
|
|
29023
|
-
type: string
|
|
29024
|
-
description: the name of storage
|
|
29025
29126
|
backup:
|
|
29026
29127
|
type: object
|
|
29027
29128
|
description: the storage config for backup
|
|
@@ -29262,6 +29363,10 @@ components:
|
|
|
29262
29363
|
description: whether to enable calculate the cluster SLA for the environment
|
|
29263
29364
|
type: boolean
|
|
29264
29365
|
default: false
|
|
29366
|
+
koordinatorEnabled:
|
|
29367
|
+
description: Whether this environment has Koordinator installed and can use Koordinator scheduler and reservations.
|
|
29368
|
+
type: boolean
|
|
29369
|
+
default: false
|
|
29265
29370
|
environmentList:
|
|
29266
29371
|
description: EnvironmentList is a list of Environments
|
|
29267
29372
|
properties:
|
|
@@ -29341,6 +29446,10 @@ components:
|
|
|
29341
29446
|
description: whether to enable calculate the cluster SLA for the environment
|
|
29342
29447
|
type: boolean
|
|
29343
29448
|
default: false
|
|
29449
|
+
koordinatorEnabled:
|
|
29450
|
+
description: Whether this environment has Koordinator installed and can use Koordinator scheduler and reservations.
|
|
29451
|
+
type: boolean
|
|
29452
|
+
default: false
|
|
29344
29453
|
preflight:
|
|
29345
29454
|
title: Preflight results
|
|
29346
29455
|
description: The result of preflight check
|
|
@@ -29469,6 +29578,10 @@ components:
|
|
|
29469
29578
|
description: whether to enable calculate the cluster SLA for the environment
|
|
29470
29579
|
type: boolean
|
|
29471
29580
|
default: false
|
|
29581
|
+
koordinatorEnabled:
|
|
29582
|
+
description: Whether this environment has Koordinator installed and can use Koordinator scheduler and reservations.
|
|
29583
|
+
type: boolean
|
|
29584
|
+
default: false
|
|
29472
29585
|
clusterSchedulingPolicy:
|
|
29473
29586
|
$ref: '#/components/schemas/clusterSchedulingPolicy'
|
|
29474
29587
|
environmentStateEvent:
|
|
@@ -29794,6 +29907,50 @@ components:
|
|
|
29794
29907
|
required:
|
|
29795
29908
|
- items
|
|
29796
29909
|
type: object
|
|
29910
|
+
schedulerOption:
|
|
29911
|
+
type: object
|
|
29912
|
+
properties:
|
|
29913
|
+
name:
|
|
29914
|
+
type: string
|
|
29915
|
+
displayName:
|
|
29916
|
+
type: string
|
|
29917
|
+
default:
|
|
29918
|
+
type: boolean
|
|
29919
|
+
koordinatorReservationSummaryItem:
|
|
29920
|
+
type: object
|
|
29921
|
+
properties:
|
|
29922
|
+
resourceClass:
|
|
29923
|
+
$ref: '#/components/schemas/koordinatorReservationResourceClass'
|
|
29924
|
+
nodeCount:
|
|
29925
|
+
type: integer
|
|
29926
|
+
format: int64
|
|
29927
|
+
total:
|
|
29928
|
+
$ref: '#/components/schemas/koordinatorReservationResources'
|
|
29929
|
+
allocated:
|
|
29930
|
+
$ref: '#/components/schemas/koordinatorReservationResources'
|
|
29931
|
+
available:
|
|
29932
|
+
$ref: '#/components/schemas/koordinatorReservationResources'
|
|
29933
|
+
koordinatorReservationSummary:
|
|
29934
|
+
type: object
|
|
29935
|
+
required:
|
|
29936
|
+
- enabled
|
|
29937
|
+
- schedulerOptions
|
|
29938
|
+
- items
|
|
29939
|
+
properties:
|
|
29940
|
+
enabled:
|
|
29941
|
+
type: boolean
|
|
29942
|
+
schedulerName:
|
|
29943
|
+
type: string
|
|
29944
|
+
defaultSchedulerName:
|
|
29945
|
+
type: string
|
|
29946
|
+
schedulerOptions:
|
|
29947
|
+
type: array
|
|
29948
|
+
items:
|
|
29949
|
+
$ref: '#/components/schemas/schedulerOption'
|
|
29950
|
+
items:
|
|
29951
|
+
type: array
|
|
29952
|
+
items:
|
|
29953
|
+
$ref: '#/components/schemas/koordinatorReservationSummaryItem'
|
|
29797
29954
|
listBody:
|
|
29798
29955
|
description: Represents a list of JSON bodies.
|
|
29799
29956
|
items:
|
|
@@ -39,6 +39,9 @@ import type { ComponentItem } from './component-item';
|
|
|
39
39
|
import type { InitOptionItem } from './init-option-item';
|
|
40
40
|
// May contain unused imports in some cases
|
|
41
41
|
// @ts-ignore
|
|
42
|
+
import type { KoordinatorReservationResourceClass } from './koordinator-reservation-resource-class';
|
|
43
|
+
// May contain unused imports in some cases
|
|
44
|
+
// @ts-ignore
|
|
42
45
|
import type { NetworkMode } from './network-mode';
|
|
43
46
|
// May contain unused imports in some cases
|
|
44
47
|
// @ts-ignore
|
|
@@ -314,6 +317,18 @@ export interface Cluster {
|
|
|
314
317
|
* @memberof Cluster
|
|
315
318
|
*/
|
|
316
319
|
'schedulingPolicy'?: SchedulingPolicyType;
|
|
320
|
+
/**
|
|
321
|
+
* Effective scheduler used when the cluster was created.
|
|
322
|
+
* @type {string}
|
|
323
|
+
* @memberof Cluster
|
|
324
|
+
*/
|
|
325
|
+
'schedulerName'?: string | null;
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @type {KoordinatorReservationResourceClass}
|
|
329
|
+
* @memberof Cluster
|
|
330
|
+
*/
|
|
331
|
+
'reservationResourceClass'?: KoordinatorReservationResourceClass;
|
|
317
332
|
}
|
|
318
333
|
|
|
319
334
|
|
|
@@ -34,6 +34,7 @@ export * from './http-body';
|
|
|
34
34
|
export * from './image-registry';
|
|
35
35
|
export * from './init-option-item';
|
|
36
36
|
export * from './io-quantity';
|
|
37
|
+
export * from './koordinator-reservation-resource-class';
|
|
37
38
|
export * from './localized-description';
|
|
38
39
|
export * from './network-mode';
|
|
39
40
|
export * from './outage-record';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const KoordinatorReservationResourceClass = {
|
|
24
|
+
database: 'database',
|
|
25
|
+
business: 'business'
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export type KoordinatorReservationResourceClass = typeof KoordinatorReservationResourceClass[keyof typeof KoordinatorReservationResourceClass];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
package/src/internalapi.yaml
CHANGED
|
@@ -1518,6 +1518,11 @@ components:
|
|
|
1518
1518
|
* `HardAntiAffinity` - Strictly enforce pod anti-affinity across nodes. Pods will not be scheduled when the anti-affinity constraints cannot be satisfied.
|
|
1519
1519
|
* `SoftAntiAffinity` - Prefer to spread pods across nodes using anti-affinity, but allow scheduling on the same node when constraints cannot be fully satisfied.
|
|
1520
1520
|
* `Disabled` - Do not apply pod anti-affinity constraints on nodes.
|
|
1521
|
+
koordinatorReservationResourceClass:
|
|
1522
|
+
type: string
|
|
1523
|
+
enum:
|
|
1524
|
+
- database
|
|
1525
|
+
- business
|
|
1521
1526
|
cluster:
|
|
1522
1527
|
required:
|
|
1523
1528
|
- engine
|
|
@@ -1695,6 +1700,14 @@ components:
|
|
|
1695
1700
|
schedulingPolicy:
|
|
1696
1701
|
description: Scheduling policy for this cluster.
|
|
1697
1702
|
$ref: '#/components/schemas/schedulingPolicyType'
|
|
1703
|
+
schedulerName:
|
|
1704
|
+
title: Scheduler Name
|
|
1705
|
+
type: string
|
|
1706
|
+
nullable: true
|
|
1707
|
+
description: Effective scheduler used when the cluster was created.
|
|
1708
|
+
reservationResourceClass:
|
|
1709
|
+
nullable: true
|
|
1710
|
+
$ref: '#/components/schemas/koordinatorReservationResourceClass'
|
|
1698
1711
|
description: KubeBlocks cluster details
|
|
1699
1712
|
storage:
|
|
1700
1713
|
type: object
|
|
@@ -513,6 +513,11 @@ models/ip-whitelist-list.ts
|
|
|
513
513
|
models/ip-whitelist.ts
|
|
514
514
|
models/key-list.ts
|
|
515
515
|
models/key.ts
|
|
516
|
+
models/koordinator-node-reservation.ts
|
|
517
|
+
models/koordinator-reservation-allocate-policy.ts
|
|
518
|
+
models/koordinator-reservation-resource-class.ts
|
|
519
|
+
models/koordinator-reservation-resources.ts
|
|
520
|
+
models/koordinator-reservation-status.ts
|
|
516
521
|
models/kubeblocks-endpoint.ts
|
|
517
522
|
models/license-option.ts
|
|
518
523
|
models/license.ts
|
|
@@ -1330,7 +1330,7 @@ export const DataReplicationApiFp = function(configuration?: Configuration) {
|
|
|
1330
1330
|
* @param {*} [options] Override http request option.
|
|
1331
1331
|
* @throws {RequiredError}
|
|
1332
1332
|
*/
|
|
1333
|
-
async queryDataChannelContainers(orgName: string, channelID: string, moduleName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataReplicationChannelContainer
|
|
1333
|
+
async queryDataChannelContainers(orgName: string, channelID: string, moduleName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DataReplicationChannelContainer>>> {
|
|
1334
1334
|
const localVarAxiosArgs = await localVarAxiosParamCreator.queryDataChannelContainers(orgName, channelID, moduleName, options);
|
|
1335
1335
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1336
1336
|
const localVarOperationServerBasePath = operationServerMap['DataReplicationApi.queryDataChannelContainers']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1560,7 +1560,7 @@ export const DataReplicationApiFactory = function (configuration?: Configuration
|
|
|
1560
1560
|
* @param {*} [options] Override http request option.
|
|
1561
1561
|
* @throws {RequiredError}
|
|
1562
1562
|
*/
|
|
1563
|
-
queryDataChannelContainers(requestParameters: DataReplicationApiQueryDataChannelContainersRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataReplicationChannelContainer
|
|
1563
|
+
queryDataChannelContainers(requestParameters: DataReplicationApiQueryDataChannelContainersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DataReplicationChannelContainer>> {
|
|
1564
1564
|
return localVarFp.queryDataChannelContainers(requestParameters.orgName, requestParameters.channelID, requestParameters.moduleName, options).then((request) => request(axios, basePath));
|
|
1565
1565
|
},
|
|
1566
1566
|
/**
|
|
@@ -1771,7 +1771,7 @@ export interface DataReplicationApiInterface {
|
|
|
1771
1771
|
* @throws {RequiredError}
|
|
1772
1772
|
* @memberof DataReplicationApiInterface
|
|
1773
1773
|
*/
|
|
1774
|
-
queryDataChannelContainers(requestParameters: DataReplicationApiQueryDataChannelContainersRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataReplicationChannelContainer
|
|
1774
|
+
queryDataChannelContainers(requestParameters: DataReplicationApiQueryDataChannelContainersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DataReplicationChannelContainer>>;
|
|
1775
1775
|
|
|
1776
1776
|
/**
|
|
1777
1777
|
* Query logs of a data channel
|
|
@@ -39,6 +39,9 @@ import type { ComponentItemCreate } from './component-item-create';
|
|
|
39
39
|
import type { InitOptionItem } from './init-option-item';
|
|
40
40
|
// May contain unused imports in some cases
|
|
41
41
|
// @ts-ignore
|
|
42
|
+
import type { KoordinatorReservationResourceClass } from './koordinator-reservation-resource-class';
|
|
43
|
+
// May contain unused imports in some cases
|
|
44
|
+
// @ts-ignore
|
|
42
45
|
import type { NetworkMode } from './network-mode';
|
|
43
46
|
// May contain unused imports in some cases
|
|
44
47
|
// @ts-ignore
|
|
@@ -212,6 +215,18 @@ export interface ClusterCreate {
|
|
|
212
215
|
* @memberof ClusterCreate
|
|
213
216
|
*/
|
|
214
217
|
'schedulingPolicy'?: SchedulingPolicyType;
|
|
218
|
+
/**
|
|
219
|
+
* Scheduler used by this cluster. If omitted, KBE uses the environment default. When koordinatorEnabled is true for the target environment, the environment default is the globally configured Koordinator scheduler.
|
|
220
|
+
* @type {string}
|
|
221
|
+
* @memberof ClusterCreate
|
|
222
|
+
*/
|
|
223
|
+
'schedulerName'?: string | null;
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @type {KoordinatorReservationResourceClass}
|
|
227
|
+
* @memberof ClusterCreate
|
|
228
|
+
*/
|
|
229
|
+
'reservationResourceClass'?: KoordinatorReservationResourceClass;
|
|
215
230
|
}
|
|
216
231
|
|
|
217
232
|
|
|
@@ -39,6 +39,9 @@ import type { ComponentItem } from './component-item';
|
|
|
39
39
|
import type { InitOptionItem } from './init-option-item';
|
|
40
40
|
// May contain unused imports in some cases
|
|
41
41
|
// @ts-ignore
|
|
42
|
+
import type { KoordinatorReservationResourceClass } from './koordinator-reservation-resource-class';
|
|
43
|
+
// May contain unused imports in some cases
|
|
44
|
+
// @ts-ignore
|
|
42
45
|
import type { NetworkMode } from './network-mode';
|
|
43
46
|
// May contain unused imports in some cases
|
|
44
47
|
// @ts-ignore
|
|
@@ -314,6 +317,18 @@ export interface Cluster {
|
|
|
314
317
|
* @memberof Cluster
|
|
315
318
|
*/
|
|
316
319
|
'schedulingPolicy'?: SchedulingPolicyType;
|
|
320
|
+
/**
|
|
321
|
+
* Effective scheduler used when the cluster was created.
|
|
322
|
+
* @type {string}
|
|
323
|
+
* @memberof Cluster
|
|
324
|
+
*/
|
|
325
|
+
'schedulerName'?: string | null;
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @type {KoordinatorReservationResourceClass}
|
|
329
|
+
* @memberof Cluster
|
|
330
|
+
*/
|
|
331
|
+
'reservationResourceClass'?: KoordinatorReservationResourceClass;
|
|
317
332
|
}
|
|
318
333
|
|
|
319
334
|
|
|
@@ -426,6 +426,11 @@ export * from './ip-whitelist';
|
|
|
426
426
|
export * from './ip-whitelist-list';
|
|
427
427
|
export * from './key';
|
|
428
428
|
export * from './key-list';
|
|
429
|
+
export * from './koordinator-node-reservation';
|
|
430
|
+
export * from './koordinator-reservation-allocate-policy';
|
|
431
|
+
export * from './koordinator-reservation-resource-class';
|
|
432
|
+
export * from './koordinator-reservation-resources';
|
|
433
|
+
export * from './koordinator-reservation-status';
|
|
429
434
|
export * from './kubeblocks-endpoint';
|
|
430
435
|
export * from './license';
|
|
431
436
|
export * from './license-option';
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud API
|
|
5
|
+
* KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { KoordinatorReservationAllocatePolicy } from './koordinator-reservation-allocate-policy';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { KoordinatorReservationResourceClass } from './koordinator-reservation-resource-class';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import type { KoordinatorReservationResources } from './koordinator-reservation-resources';
|
|
25
|
+
// May contain unused imports in some cases
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { KoordinatorReservationStatus } from './koordinator-reservation-status';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface KoordinatorNodeReservation
|
|
33
|
+
*/
|
|
34
|
+
export interface KoordinatorNodeReservation {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {KoordinatorReservationResourceClass}
|
|
38
|
+
* @memberof KoordinatorNodeReservation
|
|
39
|
+
*/
|
|
40
|
+
'resourceClass': KoordinatorReservationResourceClass;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof KoordinatorNodeReservation
|
|
45
|
+
*/
|
|
46
|
+
'reservationName'?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {KoordinatorReservationResources}
|
|
50
|
+
* @memberof KoordinatorNodeReservation
|
|
51
|
+
*/
|
|
52
|
+
'resources': KoordinatorReservationResources;
|
|
53
|
+
/**
|
|
54
|
+
* Kubernetes duration string. Koordinator defaults omitted ttl to 24h.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof KoordinatorNodeReservation
|
|
57
|
+
*/
|
|
58
|
+
'ttl'?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof KoordinatorNodeReservation
|
|
63
|
+
*/
|
|
64
|
+
'allocateOnce'?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {boolean}
|
|
68
|
+
* @memberof KoordinatorNodeReservation
|
|
69
|
+
*/
|
|
70
|
+
'preAllocation'?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {KoordinatorReservationAllocatePolicy}
|
|
74
|
+
* @memberof KoordinatorNodeReservation
|
|
75
|
+
*/
|
|
76
|
+
'allocatePolicy'?: KoordinatorReservationAllocatePolicy;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {KoordinatorReservationStatus}
|
|
80
|
+
* @memberof KoordinatorNodeReservation
|
|
81
|
+
*/
|
|
82
|
+
'status'?: KoordinatorReservationStatus;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud API
|
|
5
|
+
* KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const KoordinatorReservationAllocatePolicy = {
|
|
24
|
+
Restricted: 'Restricted',
|
|
25
|
+
Aligned: 'Aligned'
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export type KoordinatorReservationAllocatePolicy = typeof KoordinatorReservationAllocatePolicy[keyof typeof KoordinatorReservationAllocatePolicy];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|