kb-cloud-client-typescript 2.3.0-alpha.155 → 2.3.0-alpha.156
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/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/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/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/scheduler-option.ts +42 -0
- package/src/adminapi/models/storage-config.ts +0 -9
- package/src/adminapi.yaml +164 -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/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.yaml +77 -0
- package/dist/adminapi/models/storage-config-log.d.ts.map +0 -1
- package/dist/adminapi/models/storage-config-log.js.map +0 -1
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
|
|
@@ -28270,6 +28322,58 @@ components:
|
|
|
28270
28322
|
required:
|
|
28271
28323
|
- usage
|
|
28272
28324
|
type: object
|
|
28325
|
+
koordinatorReservationResources:
|
|
28326
|
+
type: object
|
|
28327
|
+
additionalProperties: false
|
|
28328
|
+
description: Resource requests supported by KBE for Koordinator Reservations. Values are Kubernetes quantities and responses use Kubernetes canonical quantity strings.
|
|
28329
|
+
properties:
|
|
28330
|
+
cpu:
|
|
28331
|
+
type: string
|
|
28332
|
+
memory:
|
|
28333
|
+
type: string
|
|
28334
|
+
koordinatorReservationAllocatePolicy:
|
|
28335
|
+
type: string
|
|
28336
|
+
enum:
|
|
28337
|
+
- Restricted
|
|
28338
|
+
- Aligned
|
|
28339
|
+
koordinatorReservationStatus:
|
|
28340
|
+
type: object
|
|
28341
|
+
properties:
|
|
28342
|
+
phase:
|
|
28343
|
+
type: string
|
|
28344
|
+
nodeName:
|
|
28345
|
+
type: string
|
|
28346
|
+
allocatable:
|
|
28347
|
+
$ref: '#/components/schemas/koordinatorReservationResources'
|
|
28348
|
+
allocated:
|
|
28349
|
+
$ref: '#/components/schemas/koordinatorReservationResources'
|
|
28350
|
+
available:
|
|
28351
|
+
$ref: '#/components/schemas/koordinatorReservationResources'
|
|
28352
|
+
koordinatorNodeReservation:
|
|
28353
|
+
type: object
|
|
28354
|
+
required:
|
|
28355
|
+
- resourceClass
|
|
28356
|
+
- resources
|
|
28357
|
+
properties:
|
|
28358
|
+
resourceClass:
|
|
28359
|
+
$ref: '#/components/schemas/koordinatorReservationResourceClass'
|
|
28360
|
+
reservationName:
|
|
28361
|
+
type: string
|
|
28362
|
+
readOnly: true
|
|
28363
|
+
resources:
|
|
28364
|
+
$ref: '#/components/schemas/koordinatorReservationResources'
|
|
28365
|
+
ttl:
|
|
28366
|
+
type: string
|
|
28367
|
+
default: 24h
|
|
28368
|
+
description: Kubernetes duration string. Koordinator defaults omitted ttl to 24h.
|
|
28369
|
+
allocateOnce:
|
|
28370
|
+
type: boolean
|
|
28371
|
+
preAllocation:
|
|
28372
|
+
type: boolean
|
|
28373
|
+
allocatePolicy:
|
|
28374
|
+
$ref: '#/components/schemas/koordinatorReservationAllocatePolicy'
|
|
28375
|
+
status:
|
|
28376
|
+
$ref: '#/components/schemas/koordinatorReservationStatus'
|
|
28273
28377
|
nodeStatus:
|
|
28274
28378
|
type: string
|
|
28275
28379
|
description: Status of the node
|
|
@@ -28328,6 +28432,10 @@ components:
|
|
|
28328
28432
|
managed:
|
|
28329
28433
|
description: Whether the node is managed (has data-plane or control-plane label)
|
|
28330
28434
|
type: boolean
|
|
28435
|
+
koordinatorReservations:
|
|
28436
|
+
type: array
|
|
28437
|
+
items:
|
|
28438
|
+
$ref: '#/components/schemas/koordinatorNodeReservation'
|
|
28331
28439
|
status:
|
|
28332
28440
|
$ref: '#/components/schemas/nodeStatus'
|
|
28333
28441
|
description: Node status
|
|
@@ -29004,7 +29112,6 @@ components:
|
|
|
29004
29112
|
type: object
|
|
29005
29113
|
description: Storage config for environment
|
|
29006
29114
|
required:
|
|
29007
|
-
- log
|
|
29008
29115
|
- backup
|
|
29009
29116
|
- storages
|
|
29010
29117
|
properties:
|
|
@@ -29013,15 +29120,6 @@ components:
|
|
|
29013
29120
|
description: these storages will be created
|
|
29014
29121
|
items:
|
|
29015
29122
|
$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
29123
|
backup:
|
|
29026
29124
|
type: object
|
|
29027
29125
|
description: the storage config for backup
|
|
@@ -29262,6 +29360,10 @@ components:
|
|
|
29262
29360
|
description: whether to enable calculate the cluster SLA for the environment
|
|
29263
29361
|
type: boolean
|
|
29264
29362
|
default: false
|
|
29363
|
+
koordinatorEnabled:
|
|
29364
|
+
description: Whether this environment has Koordinator installed and can use Koordinator scheduler and reservations.
|
|
29365
|
+
type: boolean
|
|
29366
|
+
default: false
|
|
29265
29367
|
environmentList:
|
|
29266
29368
|
description: EnvironmentList is a list of Environments
|
|
29267
29369
|
properties:
|
|
@@ -29341,6 +29443,10 @@ components:
|
|
|
29341
29443
|
description: whether to enable calculate the cluster SLA for the environment
|
|
29342
29444
|
type: boolean
|
|
29343
29445
|
default: false
|
|
29446
|
+
koordinatorEnabled:
|
|
29447
|
+
description: Whether this environment has Koordinator installed and can use Koordinator scheduler and reservations.
|
|
29448
|
+
type: boolean
|
|
29449
|
+
default: false
|
|
29344
29450
|
preflight:
|
|
29345
29451
|
title: Preflight results
|
|
29346
29452
|
description: The result of preflight check
|
|
@@ -29469,6 +29575,10 @@ components:
|
|
|
29469
29575
|
description: whether to enable calculate the cluster SLA for the environment
|
|
29470
29576
|
type: boolean
|
|
29471
29577
|
default: false
|
|
29578
|
+
koordinatorEnabled:
|
|
29579
|
+
description: Whether this environment has Koordinator installed and can use Koordinator scheduler and reservations.
|
|
29580
|
+
type: boolean
|
|
29581
|
+
default: false
|
|
29472
29582
|
clusterSchedulingPolicy:
|
|
29473
29583
|
$ref: '#/components/schemas/clusterSchedulingPolicy'
|
|
29474
29584
|
environmentStateEvent:
|
|
@@ -29794,6 +29904,50 @@ components:
|
|
|
29794
29904
|
required:
|
|
29795
29905
|
- items
|
|
29796
29906
|
type: object
|
|
29907
|
+
schedulerOption:
|
|
29908
|
+
type: object
|
|
29909
|
+
properties:
|
|
29910
|
+
name:
|
|
29911
|
+
type: string
|
|
29912
|
+
displayName:
|
|
29913
|
+
type: string
|
|
29914
|
+
default:
|
|
29915
|
+
type: boolean
|
|
29916
|
+
koordinatorReservationSummaryItem:
|
|
29917
|
+
type: object
|
|
29918
|
+
properties:
|
|
29919
|
+
resourceClass:
|
|
29920
|
+
$ref: '#/components/schemas/koordinatorReservationResourceClass'
|
|
29921
|
+
nodeCount:
|
|
29922
|
+
type: integer
|
|
29923
|
+
format: int64
|
|
29924
|
+
total:
|
|
29925
|
+
$ref: '#/components/schemas/koordinatorReservationResources'
|
|
29926
|
+
allocated:
|
|
29927
|
+
$ref: '#/components/schemas/koordinatorReservationResources'
|
|
29928
|
+
available:
|
|
29929
|
+
$ref: '#/components/schemas/koordinatorReservationResources'
|
|
29930
|
+
koordinatorReservationSummary:
|
|
29931
|
+
type: object
|
|
29932
|
+
required:
|
|
29933
|
+
- enabled
|
|
29934
|
+
- schedulerOptions
|
|
29935
|
+
- items
|
|
29936
|
+
properties:
|
|
29937
|
+
enabled:
|
|
29938
|
+
type: boolean
|
|
29939
|
+
schedulerName:
|
|
29940
|
+
type: string
|
|
29941
|
+
defaultSchedulerName:
|
|
29942
|
+
type: string
|
|
29943
|
+
schedulerOptions:
|
|
29944
|
+
type: array
|
|
29945
|
+
items:
|
|
29946
|
+
$ref: '#/components/schemas/schedulerOption'
|
|
29947
|
+
items:
|
|
29948
|
+
type: array
|
|
29949
|
+
items:
|
|
29950
|
+
$ref: '#/components/schemas/koordinatorReservationSummaryItem'
|
|
29797
29951
|
listBody:
|
|
29798
29952
|
description: Represents a list of JSON bodies.
|
|
29799
29953
|
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
|
|
@@ -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
|
+
|
|
@@ -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 KoordinatorReservationResourceClass = {
|
|
24
|
+
database: 'database',
|
|
25
|
+
business: 'business'
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export type KoordinatorReservationResourceClass = typeof KoordinatorReservationResourceClass[keyof typeof KoordinatorReservationResourceClass];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
* Resource requests supported by KBE for Koordinator Reservations. Values are Kubernetes quantities and responses use Kubernetes canonical quantity strings.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface KoordinatorReservationResources
|
|
21
|
+
*/
|
|
22
|
+
export interface KoordinatorReservationResources {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof KoordinatorReservationResources
|
|
27
|
+
*/
|
|
28
|
+
'cpu'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof KoordinatorReservationResources
|
|
33
|
+
*/
|
|
34
|
+
'memory'?: string;
|
|
35
|
+
}
|
|
36
|
+
|