kb-cloud-client-typescript 2.3.0-alpha.154 → 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/cluster-api.d.ts +73 -0
- package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-api.js +80 -0
- package/dist/adminapi/apis/cluster-api.js.map +1 -1
- 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/apis/inspection-api.d.ts +4 -5
- package/dist/adminapi/apis/inspection-api.d.ts.map +1 -1
- package/dist/adminapi/apis/inspection-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +72 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +80 -0
- package/dist/adminapi/apis/shared-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-mode-transition.d.ts +32 -0
- package/dist/adminapi/models/cluster-mode-transition.d.ts.map +1 -0
- package/dist/adminapi/models/{storage-config-log.d.ts → cluster-mode-transition.js} +5 -14
- package/dist/adminapi/models/cluster-mode-transition.js.map +1 -0
- 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 +9 -1
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +9 -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/koordinator-node-reservation.js +16 -0
- 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/apis/llm-api.d.ts +0 -411
- package/dist/openapi/apis/llm-api.d.ts.map +1 -1
- package/dist/openapi/apis/llm-api.js +0 -471
- package/dist/openapi/apis/llm-api.js.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 -4
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +5 -4
- 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/{check-apikey.js → koordinator-node-reservation.js} +1 -1
- package/dist/openapi/models/koordinator-node-reservation.js.map +1 -0
- package/dist/openapi/models/{check-apikey.d.ts → koordinator-reservation-allocate-policy.d.ts} +7 -16
- 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/{access-level.d.ts → koordinator-reservation-resource-class.d.ts} +5 -5
- package/dist/openapi/models/koordinator-reservation-resource-class.d.ts.map +1 -0
- package/dist/openapi/models/{access-level.js → koordinator-reservation-resource-class.js} +5 -5
- package/dist/openapi/models/koordinator-reservation-resource-class.js.map +1 -0
- package/dist/openapi/models/{llm-list.d.ts → koordinator-reservation-resources.d.ts} +14 -9
- package/dist/openapi/models/koordinator-reservation-resources.d.ts.map +1 -0
- package/dist/openapi/models/{llm-list.js → koordinator-reservation-resources.js} +1 -1
- 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/{llm.js → koordinator-reservation-status.js} +1 -1
- 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 +9 -1
- package/src/adminapi/apis/cluster-api.ts +130 -0
- package/src/adminapi/apis/environment-api.ts +102 -0
- package/src/adminapi/apis/inspection-api.ts +3 -5
- package/src/adminapi/apis/shared-api.ts +128 -0
- package/src/adminapi/models/cluster-create.ts +15 -0
- package/src/adminapi/models/cluster-mode-transition.ts +39 -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 +9 -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 +300 -94
- 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 -4
- package/src/openapi/apis/llm-api.ts +0 -714
- package/src/openapi/models/cluster-create.ts +15 -0
- package/src/openapi/models/cluster.ts +15 -0
- package/src/openapi/models/index.ts +5 -4
- package/src/openapi/models/koordinator-node-reservation.ts +86 -0
- package/src/openapi/models/{check-apikey.ts → koordinator-reservation-allocate-policy.ts} +10 -15
- package/src/openapi/models/{access-level.ts → koordinator-reservation-resource-class.ts} +4 -4
- package/src/openapi/models/{llm-list.ts → koordinator-reservation-resources.ts} +13 -10
- package/src/openapi/models/koordinator-reservation-status.ts +57 -0
- package/src/openapi/models/node.ts +9 -0
- package/src/openapi.yaml +77 -262
- package/dist/adminapi/models/storage-config-log.d.ts.map +0 -1
- package/dist/adminapi/models/storage-config-log.js.map +0 -1
- package/dist/openapi/models/access-level.d.ts.map +0 -1
- package/dist/openapi/models/access-level.js.map +0 -1
- package/dist/openapi/models/check-apikey.d.ts.map +0 -1
- package/dist/openapi/models/check-apikey.js.map +0 -1
- package/dist/openapi/models/llm-list.d.ts.map +0 -1
- package/dist/openapi/models/llm-list.js.map +0 -1
- package/dist/openapi/models/llm.d.ts +0 -64
- package/dist/openapi/models/llm.d.ts.map +0 -1
- package/dist/openapi/models/llm.js.map +0 -1
- package/src/openapi/models/llm.ts +0 -71
package/src/adminapi.yaml
CHANGED
|
@@ -3735,6 +3735,49 @@ paths:
|
|
|
3735
3735
|
- cluster
|
|
3736
3736
|
- shared
|
|
3737
3737
|
x-codegen-request-body-name: body
|
|
3738
|
+
/admin/v1/organizations/{orgName}/clusters/{clusterName}/modeTransition:
|
|
3739
|
+
post:
|
|
3740
|
+
operationId: transitionClusterMode
|
|
3741
|
+
summary: Transition cluster engine mode
|
|
3742
|
+
description: Validates the mode transition, updates the cluster spec, and creates an hscale task when required. Returns the resulting OpsRequest name and task ID.
|
|
3743
|
+
parameters:
|
|
3744
|
+
- description: name of the Org
|
|
3745
|
+
in: path
|
|
3746
|
+
name: orgName
|
|
3747
|
+
required: true
|
|
3748
|
+
schema:
|
|
3749
|
+
type: string
|
|
3750
|
+
- description: name of the KubeBlocks cluster
|
|
3751
|
+
in: path
|
|
3752
|
+
name: clusterName
|
|
3753
|
+
required: true
|
|
3754
|
+
schema:
|
|
3755
|
+
type: string
|
|
3756
|
+
requestBody:
|
|
3757
|
+
required: true
|
|
3758
|
+
content:
|
|
3759
|
+
application/json:
|
|
3760
|
+
schema:
|
|
3761
|
+
$ref: '#/components/schemas/clusterModeTransition'
|
|
3762
|
+
responses:
|
|
3763
|
+
'202':
|
|
3764
|
+
description: Mode transition accepted. Returns the OpsRequest name and task ID when an hscale operation is created.
|
|
3765
|
+
content:
|
|
3766
|
+
application/json:
|
|
3767
|
+
schema:
|
|
3768
|
+
$ref: '#/components/schemas/opsRequestName'
|
|
3769
|
+
'400':
|
|
3770
|
+
$ref: '#/components/responses/400'
|
|
3771
|
+
'401':
|
|
3772
|
+
$ref: '#/components/responses/401'
|
|
3773
|
+
'403':
|
|
3774
|
+
$ref: '#/components/responses/403'
|
|
3775
|
+
'404':
|
|
3776
|
+
$ref: '#/components/responses/404'
|
|
3777
|
+
tags:
|
|
3778
|
+
- cluster
|
|
3779
|
+
- shared
|
|
3780
|
+
x-codegen-request-body-name: body
|
|
3738
3781
|
/admin/v1/organizations/{orgName}/parent/{parentClusterID}/disasterRecovery:
|
|
3739
3782
|
get:
|
|
3740
3783
|
operationId: listDisasterRecovery
|
|
@@ -9886,6 +9929,37 @@ paths:
|
|
|
9886
9929
|
$ref: '#/components/responses/404'
|
|
9887
9930
|
tags:
|
|
9888
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
|
|
9889
9963
|
/admin/v1/environments/{environmentName}/nodes/{nodeName}/cordon:
|
|
9890
9964
|
patch:
|
|
9891
9965
|
description: cordon the specified Environment node
|
|
@@ -15762,9 +15836,7 @@ paths:
|
|
|
15762
15836
|
content:
|
|
15763
15837
|
application/json:
|
|
15764
15838
|
schema:
|
|
15765
|
-
|
|
15766
|
-
items:
|
|
15767
|
-
$ref: '#/components/schemas/inspectionTaskItem'
|
|
15839
|
+
$ref: '#/components/schemas/inspectionTask'
|
|
15768
15840
|
'401':
|
|
15769
15841
|
$ref: '#/components/responses/401'
|
|
15770
15842
|
'403':
|
|
@@ -23769,6 +23841,11 @@ components:
|
|
|
23769
23841
|
* `HardAntiAffinity` - Strictly enforce pod anti-affinity across nodes. Pods will not be scheduled when the anti-affinity constraints cannot be satisfied.
|
|
23770
23842
|
* `SoftAntiAffinity` - Prefer to spread pods across nodes using anti-affinity, but allow scheduling on the same node when constraints cannot be fully satisfied.
|
|
23771
23843
|
* `Disabled` - Do not apply pod anti-affinity constraints on nodes.
|
|
23844
|
+
koordinatorReservationResourceClass:
|
|
23845
|
+
type: string
|
|
23846
|
+
enum:
|
|
23847
|
+
- database
|
|
23848
|
+
- business
|
|
23772
23849
|
clusterCreate:
|
|
23773
23850
|
required:
|
|
23774
23851
|
- engine
|
|
@@ -23868,6 +23945,14 @@ components:
|
|
|
23868
23945
|
schedulingPolicy:
|
|
23869
23946
|
description: Scheduling policy for this cluster.
|
|
23870
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'
|
|
23871
23956
|
description: KubeBlocks cluster information
|
|
23872
23957
|
componentItem:
|
|
23873
23958
|
type: object
|
|
@@ -24095,6 +24180,14 @@ components:
|
|
|
24095
24180
|
schedulingPolicy:
|
|
24096
24181
|
description: Scheduling policy for this cluster.
|
|
24097
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'
|
|
24098
24191
|
description: KubeBlocks cluster details
|
|
24099
24192
|
clusterBatchUpdateData:
|
|
24100
24193
|
type: object
|
|
@@ -24984,6 +25077,98 @@ components:
|
|
|
24984
25077
|
$ref: '#/components/schemas/haHistory'
|
|
24985
25078
|
required:
|
|
24986
25079
|
- items
|
|
25080
|
+
taskScheduleType:
|
|
25081
|
+
type: string
|
|
25082
|
+
enum:
|
|
25083
|
+
- immediate
|
|
25084
|
+
- scheduled
|
|
25085
|
+
- maintenanceWindow
|
|
25086
|
+
description: Schedule type for task execution
|
|
25087
|
+
taskSchedule:
|
|
25088
|
+
type: object
|
|
25089
|
+
properties:
|
|
25090
|
+
type:
|
|
25091
|
+
$ref: '#/components/schemas/taskScheduleType'
|
|
25092
|
+
startTime:
|
|
25093
|
+
type: string
|
|
25094
|
+
format: date-time
|
|
25095
|
+
description: Start time of the execution window (required for scheduled type)
|
|
25096
|
+
x-nullable: true
|
|
25097
|
+
endTime:
|
|
25098
|
+
type: string
|
|
25099
|
+
format: date-time
|
|
25100
|
+
description: End time of the execution window (required for scheduled type)
|
|
25101
|
+
x-nullable: true
|
|
25102
|
+
required:
|
|
25103
|
+
- type
|
|
25104
|
+
opsHScale:
|
|
25105
|
+
description: OpsHScale is the payload to horizontally scale a KubeBlocks cluster. It requires specifying either the number of replicas or the number of shards.
|
|
25106
|
+
required:
|
|
25107
|
+
- component
|
|
25108
|
+
properties:
|
|
25109
|
+
component:
|
|
25110
|
+
description: component type
|
|
25111
|
+
type: string
|
|
25112
|
+
minLength: 1
|
|
25113
|
+
backupName:
|
|
25114
|
+
description: name of the backup to restore from
|
|
25115
|
+
type: string
|
|
25116
|
+
nullable: true
|
|
25117
|
+
replicas:
|
|
25118
|
+
description: number of replicas
|
|
25119
|
+
type: integer
|
|
25120
|
+
nullable: true
|
|
25121
|
+
onlineInstancesToOffline:
|
|
25122
|
+
type: array
|
|
25123
|
+
items:
|
|
25124
|
+
type: string
|
|
25125
|
+
description: List of online instance names to be switched to offline during scaling in.
|
|
25126
|
+
nullable: true
|
|
25127
|
+
OfflineInstancesToOnline:
|
|
25128
|
+
type: array
|
|
25129
|
+
items:
|
|
25130
|
+
type: string
|
|
25131
|
+
description: List of offline instance names to be switched to online during scaling out.
|
|
25132
|
+
nullable: true
|
|
25133
|
+
shards:
|
|
25134
|
+
description: number of shards, mutually exclusive with replicas.
|
|
25135
|
+
type: integer
|
|
25136
|
+
nullable: true
|
|
25137
|
+
preConditionDeadlineSeconds:
|
|
25138
|
+
description: Specifies the maximum time in seconds that the OpsRequest will wait for its pre-conditions to be met before it aborts the operation
|
|
25139
|
+
type: integer
|
|
25140
|
+
nullable: true
|
|
25141
|
+
minimum: 0
|
|
25142
|
+
force:
|
|
25143
|
+
type: boolean
|
|
25144
|
+
description: force the scaling operation without pre-check
|
|
25145
|
+
default: false
|
|
25146
|
+
schedule:
|
|
25147
|
+
$ref: '#/components/schemas/taskSchedule'
|
|
25148
|
+
type: object
|
|
25149
|
+
clusterModeTransition:
|
|
25150
|
+
type: object
|
|
25151
|
+
description: Parameters for switching the engine mode of a cluster.
|
|
25152
|
+
required:
|
|
25153
|
+
- mode
|
|
25154
|
+
properties:
|
|
25155
|
+
mode:
|
|
25156
|
+
type: string
|
|
25157
|
+
description: Target engine mode.
|
|
25158
|
+
hScale:
|
|
25159
|
+
$ref: '#/components/schemas/opsHScale'
|
|
25160
|
+
opsRequestName:
|
|
25161
|
+
description: OpsRequestName is the name of a KubeBlocks OpsRequest response
|
|
25162
|
+
properties:
|
|
25163
|
+
opsRequestName:
|
|
25164
|
+
type: string
|
|
25165
|
+
clusterTaskId:
|
|
25166
|
+
type: string
|
|
25167
|
+
taskId:
|
|
25168
|
+
type: string
|
|
25169
|
+
required:
|
|
25170
|
+
- taskId
|
|
25171
|
+
type: object
|
|
24987
25172
|
taskSummary:
|
|
24988
25173
|
type: object
|
|
24989
25174
|
properties:
|
|
@@ -28034,30 +28219,6 @@ components:
|
|
|
28034
28219
|
type: integer
|
|
28035
28220
|
format: int64
|
|
28036
28221
|
x-omitempty: false
|
|
28037
|
-
taskScheduleType:
|
|
28038
|
-
type: string
|
|
28039
|
-
enum:
|
|
28040
|
-
- immediate
|
|
28041
|
-
- scheduled
|
|
28042
|
-
- maintenanceWindow
|
|
28043
|
-
description: Schedule type for task execution
|
|
28044
|
-
taskSchedule:
|
|
28045
|
-
type: object
|
|
28046
|
-
properties:
|
|
28047
|
-
type:
|
|
28048
|
-
$ref: '#/components/schemas/taskScheduleType'
|
|
28049
|
-
startTime:
|
|
28050
|
-
type: string
|
|
28051
|
-
format: date-time
|
|
28052
|
-
description: Start time of the execution window (required for scheduled type)
|
|
28053
|
-
x-nullable: true
|
|
28054
|
-
endTime:
|
|
28055
|
-
type: string
|
|
28056
|
-
format: date-time
|
|
28057
|
-
description: End time of the execution window (required for scheduled type)
|
|
28058
|
-
x-nullable: true
|
|
28059
|
-
required:
|
|
28060
|
-
- type
|
|
28061
28222
|
reconfigureCreate:
|
|
28062
28223
|
description: ReconfigureCreate is the payload to reconfigure a KubeBlocks cluster
|
|
28063
28224
|
properties:
|
|
@@ -28081,18 +28242,6 @@ components:
|
|
|
28081
28242
|
required:
|
|
28082
28243
|
- component
|
|
28083
28244
|
type: object
|
|
28084
|
-
opsRequestName:
|
|
28085
|
-
description: OpsRequestName is the name of a KubeBlocks OpsRequest response
|
|
28086
|
-
properties:
|
|
28087
|
-
opsRequestName:
|
|
28088
|
-
type: string
|
|
28089
|
-
clusterTaskId:
|
|
28090
|
-
type: string
|
|
28091
|
-
taskId:
|
|
28092
|
-
type: string
|
|
28093
|
-
required:
|
|
28094
|
-
- taskId
|
|
28095
|
-
type: object
|
|
28096
28245
|
opsRestart:
|
|
28097
28246
|
description: OpsRestart is the payload to restart a KubeBlocks cluster
|
|
28098
28247
|
required:
|
|
@@ -28173,6 +28322,58 @@ components:
|
|
|
28173
28322
|
required:
|
|
28174
28323
|
- usage
|
|
28175
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'
|
|
28176
28377
|
nodeStatus:
|
|
28177
28378
|
type: string
|
|
28178
28379
|
description: Status of the node
|
|
@@ -28231,6 +28432,10 @@ components:
|
|
|
28231
28432
|
managed:
|
|
28232
28433
|
description: Whether the node is managed (has data-plane or control-plane label)
|
|
28233
28434
|
type: boolean
|
|
28435
|
+
koordinatorReservations:
|
|
28436
|
+
type: array
|
|
28437
|
+
items:
|
|
28438
|
+
$ref: '#/components/schemas/koordinatorNodeReservation'
|
|
28234
28439
|
status:
|
|
28235
28440
|
$ref: '#/components/schemas/nodeStatus'
|
|
28236
28441
|
description: Node status
|
|
@@ -28369,51 +28574,6 @@ components:
|
|
|
28369
28574
|
schedule:
|
|
28370
28575
|
$ref: '#/components/schemas/taskSchedule'
|
|
28371
28576
|
type: object
|
|
28372
|
-
opsHScale:
|
|
28373
|
-
description: OpsHScale is the payload to horizontally scale a KubeBlocks cluster. It requires specifying either the number of replicas or the number of shards.
|
|
28374
|
-
required:
|
|
28375
|
-
- component
|
|
28376
|
-
properties:
|
|
28377
|
-
component:
|
|
28378
|
-
description: component type
|
|
28379
|
-
type: string
|
|
28380
|
-
minLength: 1
|
|
28381
|
-
backupName:
|
|
28382
|
-
description: name of the backup to restore from
|
|
28383
|
-
type: string
|
|
28384
|
-
nullable: true
|
|
28385
|
-
replicas:
|
|
28386
|
-
description: number of replicas
|
|
28387
|
-
type: integer
|
|
28388
|
-
nullable: true
|
|
28389
|
-
onlineInstancesToOffline:
|
|
28390
|
-
type: array
|
|
28391
|
-
items:
|
|
28392
|
-
type: string
|
|
28393
|
-
description: List of online instance names to be switched to offline during scaling in.
|
|
28394
|
-
nullable: true
|
|
28395
|
-
OfflineInstancesToOnline:
|
|
28396
|
-
type: array
|
|
28397
|
-
items:
|
|
28398
|
-
type: string
|
|
28399
|
-
description: List of offline instance names to be switched to online during scaling out.
|
|
28400
|
-
nullable: true
|
|
28401
|
-
shards:
|
|
28402
|
-
description: number of shards, mutually exclusive with replicas.
|
|
28403
|
-
type: integer
|
|
28404
|
-
nullable: true
|
|
28405
|
-
preConditionDeadlineSeconds:
|
|
28406
|
-
description: Specifies the maximum time in seconds that the OpsRequest will wait for its pre-conditions to be met before it aborts the operation
|
|
28407
|
-
type: integer
|
|
28408
|
-
nullable: true
|
|
28409
|
-
minimum: 0
|
|
28410
|
-
force:
|
|
28411
|
-
type: boolean
|
|
28412
|
-
description: force the scaling operation without pre-check
|
|
28413
|
-
default: false
|
|
28414
|
-
schedule:
|
|
28415
|
-
$ref: '#/components/schemas/taskSchedule'
|
|
28416
|
-
type: object
|
|
28417
28577
|
opsPromote:
|
|
28418
28578
|
description: OpsPromote is the payload to promote a KubeBlocks cluster
|
|
28419
28579
|
required:
|
|
@@ -28952,7 +29112,6 @@ components:
|
|
|
28952
29112
|
type: object
|
|
28953
29113
|
description: Storage config for environment
|
|
28954
29114
|
required:
|
|
28955
|
-
- log
|
|
28956
29115
|
- backup
|
|
28957
29116
|
- storages
|
|
28958
29117
|
properties:
|
|
@@ -28961,15 +29120,6 @@ components:
|
|
|
28961
29120
|
description: these storages will be created
|
|
28962
29121
|
items:
|
|
28963
29122
|
$ref: '#/components/schemas/environmentStorage'
|
|
28964
|
-
log:
|
|
28965
|
-
type: object
|
|
28966
|
-
description: the storage config for log
|
|
28967
|
-
required:
|
|
28968
|
-
- storageName
|
|
28969
|
-
properties:
|
|
28970
|
-
storageName:
|
|
28971
|
-
type: string
|
|
28972
|
-
description: the name of storage
|
|
28973
29123
|
backup:
|
|
28974
29124
|
type: object
|
|
28975
29125
|
description: the storage config for backup
|
|
@@ -29210,6 +29360,10 @@ components:
|
|
|
29210
29360
|
description: whether to enable calculate the cluster SLA for the environment
|
|
29211
29361
|
type: boolean
|
|
29212
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
|
|
29213
29367
|
environmentList:
|
|
29214
29368
|
description: EnvironmentList is a list of Environments
|
|
29215
29369
|
properties:
|
|
@@ -29289,6 +29443,10 @@ components:
|
|
|
29289
29443
|
description: whether to enable calculate the cluster SLA for the environment
|
|
29290
29444
|
type: boolean
|
|
29291
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
|
|
29292
29450
|
preflight:
|
|
29293
29451
|
title: Preflight results
|
|
29294
29452
|
description: The result of preflight check
|
|
@@ -29417,6 +29575,10 @@ components:
|
|
|
29417
29575
|
description: whether to enable calculate the cluster SLA for the environment
|
|
29418
29576
|
type: boolean
|
|
29419
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
|
|
29420
29582
|
clusterSchedulingPolicy:
|
|
29421
29583
|
$ref: '#/components/schemas/clusterSchedulingPolicy'
|
|
29422
29584
|
environmentStateEvent:
|
|
@@ -29742,6 +29904,50 @@ components:
|
|
|
29742
29904
|
required:
|
|
29743
29905
|
- items
|
|
29744
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'
|
|
29745
29951
|
listBody:
|
|
29746
29952
|
description: Represents a list of JSON bodies.
|
|
29747
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
|
|
@@ -84,7 +84,6 @@ common.ts
|
|
|
84
84
|
configuration.ts
|
|
85
85
|
git_push.sh
|
|
86
86
|
index.ts
|
|
87
|
-
models/access-level.ts
|
|
88
87
|
models/account-list-item.ts
|
|
89
88
|
models/account-list-role-type.ts
|
|
90
89
|
models/account-option.ts
|
|
@@ -224,7 +223,6 @@ models/cdc-worker-template.ts
|
|
|
224
223
|
models/certificate-issuer.ts
|
|
225
224
|
models/certificate.ts
|
|
226
225
|
models/channel-status.ts
|
|
227
|
-
models/check-apikey.ts
|
|
228
226
|
models/class-type.ts
|
|
229
227
|
models/class.ts
|
|
230
228
|
models/cluster-alert-summary.ts
|
|
@@ -515,11 +513,14 @@ models/ip-whitelist-list.ts
|
|
|
515
513
|
models/ip-whitelist.ts
|
|
516
514
|
models/key-list.ts
|
|
517
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
|
|
518
521
|
models/kubeblocks-endpoint.ts
|
|
519
522
|
models/license-option.ts
|
|
520
523
|
models/license.ts
|
|
521
|
-
models/llm-list.ts
|
|
522
|
-
models/llm.ts
|
|
523
524
|
models/load-balancer-available-type.ts
|
|
524
525
|
models/load-balancer-ipam-status.ts
|
|
525
526
|
models/load-balancer-status.ts
|