kb-cloud-client-typescript 0.0.0-support-placement-scope-validation.20261123.1036 → 0.0.0-support-instance-template-equal-replicas.20261123.1114
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/models/component-item-create.d.ts +1 -1
- package/dist/adminapi/models/instance-template-create.d.ts +3 -3
- package/dist/adminapi/models/instance-template-replicas.d.ts +1 -1
- package/dist/adminapi/models/placement-scope.d.ts +1 -1
- package/dist/adminapi/models/placement-scope.js +1 -1
- package/dist/internalapi/models/instance-template-create.d.ts +3 -3
- package/dist/openapi/models/component-item-create.d.ts +1 -1
- package/dist/openapi/models/instance-template-create.d.ts +3 -3
- package/dist/openapi/models/instance-template-replicas.d.ts +1 -1
- package/dist/openapi/models/placement-scope.d.ts +1 -1
- package/dist/openapi/models/placement-scope.js +1 -1
- package/package.json +1 -1
- package/src/adminapi/models/component-item-create.ts +1 -1
- package/src/adminapi/models/instance-template-create.ts +3 -3
- package/src/adminapi/models/instance-template-replicas.ts +1 -1
- package/src/adminapi/models/placement-scope.ts +1 -1
- package/src/adminapi.yaml +6 -6
- package/src/internalapi/models/instance-template-create.ts +3 -3
- package/src/internalapi.yaml +3 -3
- package/src/openapi/models/component-item-create.ts +1 -1
- package/src/openapi/models/instance-template-create.ts +3 -3
- package/src/openapi/models/instance-template-replicas.ts +1 -1
- package/src/openapi/models/placement-scope.ts +1 -1
- package/src/openapi.yaml +6 -6
|
@@ -41,7 +41,7 @@ export interface ComponentItemCreate {
|
|
|
41
41
|
*/
|
|
42
42
|
'nodeGroup'?: string;
|
|
43
43
|
/**
|
|
44
|
-
* Single AZ for component placement.
|
|
44
|
+
* Single AZ for explicit component placement. Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the cluster host group. Omitting both retains cluster scheduling.
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof ComponentItemCreate
|
|
47
47
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { InstanceTemplateCreateEnvInner } from './instance-template-create-env-inner';
|
|
13
13
|
/**
|
|
14
|
-
* Create assignment for one instance template. name and replicas are required. env and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once.
|
|
14
|
+
* Create assignment for one instance template. name and replicas are required. env, availabilityZone, nodeGroup and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once. Explicit placement requires availabilityZone and optionally accepts nodeGroup, without inheriting upper-level AZ or NodeGroup. Omitting both leaves SchedulingPolicy unset for KubeBlocks default inheritance. Hostname, user scheduling rules and additional topology keys are preserved.
|
|
15
15
|
* @export
|
|
16
16
|
* @interface InstanceTemplateCreate
|
|
17
17
|
*/
|
|
@@ -29,13 +29,13 @@ export interface InstanceTemplateCreate {
|
|
|
29
29
|
*/
|
|
30
30
|
'name': string;
|
|
31
31
|
/**
|
|
32
|
-
* Replica count
|
|
32
|
+
* Replica count; all templates in the component must have equal counts summing to component replicas.
|
|
33
33
|
* @type {number}
|
|
34
34
|
* @memberof InstanceTemplateCreate
|
|
35
35
|
*/
|
|
36
36
|
'replicas': number;
|
|
37
37
|
/**
|
|
38
|
-
* Single AZ for template placement (topology.kubernetes.io/zone).
|
|
38
|
+
* Single AZ for explicit template placement (topology.kubernetes.io/zone). Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the component or cluster host group. Omitting both leaves SchedulingPolicy unset for KubeBlocks inheritance.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof InstanceTemplateCreate
|
|
41
41
|
*/
|
|
@@ -22,7 +22,7 @@ export interface InstanceTemplateReplicas {
|
|
|
22
22
|
*/
|
|
23
23
|
'name': string;
|
|
24
24
|
/**
|
|
25
|
-
* Target
|
|
25
|
+
* Target replicas; all templates in the component must have equal counts summing to component replicas.
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof InstanceTemplateReplicas
|
|
28
28
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* UI placement input scope for this mode. Omitted defaults to cluster. cluster displays AZ and NodeGroup selection for the cluster. component hides cluster placement and displays selection for each component, or for each instance template when the component declares templates. This does not restrict API placement overrides.
|
|
14
14
|
* @export
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.PlacementScope = void 0;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* UI placement input scope for this mode. Omitted defaults to cluster. cluster displays AZ and NodeGroup selection for the cluster. component hides cluster placement and displays selection for each component, or for each instance template when the component declares templates. This does not restrict API placement overrides.
|
|
19
19
|
* @export
|
|
20
20
|
* @enum {string}
|
|
21
21
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { InstanceTemplateCreateEnvInner } from './instance-template-create-env-inner';
|
|
13
13
|
/**
|
|
14
|
-
* Create assignment for one instance template. name and replicas are required. env and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once.
|
|
14
|
+
* Create assignment for one instance template. name and replicas are required. env, availabilityZone, nodeGroup and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once. Explicit placement requires availabilityZone and optionally accepts nodeGroup, without inheriting upper-level AZ or NodeGroup. Omitting both leaves SchedulingPolicy unset for KubeBlocks default inheritance. Hostname, user scheduling rules and additional topology keys are preserved.
|
|
15
15
|
* @export
|
|
16
16
|
* @interface InstanceTemplateCreate
|
|
17
17
|
*/
|
|
@@ -29,13 +29,13 @@ export interface InstanceTemplateCreate {
|
|
|
29
29
|
*/
|
|
30
30
|
'name': string;
|
|
31
31
|
/**
|
|
32
|
-
* Replica count
|
|
32
|
+
* Replica count; all templates in the component must have equal counts summing to component replicas.
|
|
33
33
|
* @type {number}
|
|
34
34
|
* @memberof InstanceTemplateCreate
|
|
35
35
|
*/
|
|
36
36
|
'replicas': number;
|
|
37
37
|
/**
|
|
38
|
-
* Single AZ for template placement (topology.kubernetes.io/zone).
|
|
38
|
+
* Single AZ for explicit template placement (topology.kubernetes.io/zone). Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the component or cluster host group. Omitting both leaves SchedulingPolicy unset for KubeBlocks inheritance.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof InstanceTemplateCreate
|
|
41
41
|
*/
|
|
@@ -41,7 +41,7 @@ export interface ComponentItemCreate {
|
|
|
41
41
|
*/
|
|
42
42
|
'nodeGroup'?: string;
|
|
43
43
|
/**
|
|
44
|
-
* Single AZ for component placement.
|
|
44
|
+
* Single AZ for explicit component placement. Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the cluster host group. Omitting both retains cluster scheduling.
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof ComponentItemCreate
|
|
47
47
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { InstanceTemplateCreateEnvInner } from './instance-template-create-env-inner';
|
|
13
13
|
/**
|
|
14
|
-
* Create assignment for one instance template. name and replicas are required. env and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once.
|
|
14
|
+
* Create assignment for one instance template. name and replicas are required. env, availabilityZone, nodeGroup and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once. Explicit placement requires availabilityZone and optionally accepts nodeGroup, without inheriting upper-level AZ or NodeGroup. Omitting both leaves SchedulingPolicy unset for KubeBlocks default inheritance. Hostname, user scheduling rules and additional topology keys are preserved.
|
|
15
15
|
* @export
|
|
16
16
|
* @interface InstanceTemplateCreate
|
|
17
17
|
*/
|
|
@@ -29,13 +29,13 @@ export interface InstanceTemplateCreate {
|
|
|
29
29
|
*/
|
|
30
30
|
'name': string;
|
|
31
31
|
/**
|
|
32
|
-
* Replica count
|
|
32
|
+
* Replica count; all templates in the component must have equal counts summing to component replicas.
|
|
33
33
|
* @type {number}
|
|
34
34
|
* @memberof InstanceTemplateCreate
|
|
35
35
|
*/
|
|
36
36
|
'replicas': number;
|
|
37
37
|
/**
|
|
38
|
-
* Single AZ for template placement (topology.kubernetes.io/zone).
|
|
38
|
+
* Single AZ for explicit template placement (topology.kubernetes.io/zone). Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the component or cluster host group. Omitting both leaves SchedulingPolicy unset for KubeBlocks inheritance.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof InstanceTemplateCreate
|
|
41
41
|
*/
|
|
@@ -22,7 +22,7 @@ export interface InstanceTemplateReplicas {
|
|
|
22
22
|
*/
|
|
23
23
|
'name': string;
|
|
24
24
|
/**
|
|
25
|
-
* Target
|
|
25
|
+
* Target replicas; all templates in the component must have equal counts summing to component replicas.
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof InstanceTemplateReplicas
|
|
28
28
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* UI placement input scope for this mode. Omitted defaults to cluster. cluster displays AZ and NodeGroup selection for the cluster. component hides cluster placement and displays selection for each component, or for each instance template when the component declares templates. This does not restrict API placement overrides.
|
|
14
14
|
* @export
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.PlacementScope = void 0;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* UI placement input scope for this mode. Omitted defaults to cluster. cluster displays AZ and NodeGroup selection for the cluster. component hides cluster placement and displays selection for each component, or for each instance template when the component declares templates. This does not restrict API placement overrides.
|
|
19
19
|
* @export
|
|
20
20
|
* @enum {string}
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kb-cloud-client-typescript",
|
|
3
|
-
"version": "0.0.0-support-
|
|
3
|
+
"version": "0.0.0-support-instance-template-equal-replicas.20261123.1114",
|
|
4
4
|
"description": "Auto-generated TypeScript SDK for KubeBlocks Cloud API",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,7 +48,7 @@ export interface ComponentItemCreate {
|
|
|
48
48
|
*/
|
|
49
49
|
'nodeGroup'?: string;
|
|
50
50
|
/**
|
|
51
|
-
* Single AZ for component placement.
|
|
51
|
+
* Single AZ for explicit component placement. Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the cluster host group. Omitting both retains cluster scheduling.
|
|
52
52
|
* @type {string}
|
|
53
53
|
* @memberof ComponentItemCreate
|
|
54
54
|
*/
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import type { InstanceTemplateCreateEnvInner } from './instance-template-create-env-inner';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* Create assignment for one instance template. name and replicas are required. env and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once.
|
|
21
|
+
* Create assignment for one instance template. name and replicas are required. env, availabilityZone, nodeGroup and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once. Explicit placement requires availabilityZone and optionally accepts nodeGroup, without inheriting upper-level AZ or NodeGroup. Omitting both leaves SchedulingPolicy unset for KubeBlocks default inheritance. Hostname, user scheduling rules and additional topology keys are preserved.
|
|
22
22
|
* @export
|
|
23
23
|
* @interface InstanceTemplateCreate
|
|
24
24
|
*/
|
|
@@ -36,13 +36,13 @@ export interface InstanceTemplateCreate {
|
|
|
36
36
|
*/
|
|
37
37
|
'name': string;
|
|
38
38
|
/**
|
|
39
|
-
* Replica count
|
|
39
|
+
* Replica count; all templates in the component must have equal counts summing to component replicas.
|
|
40
40
|
* @type {number}
|
|
41
41
|
* @memberof InstanceTemplateCreate
|
|
42
42
|
*/
|
|
43
43
|
'replicas': number;
|
|
44
44
|
/**
|
|
45
|
-
* Single AZ for template placement (topology.kubernetes.io/zone).
|
|
45
|
+
* Single AZ for explicit template placement (topology.kubernetes.io/zone). Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the component or cluster host group. Omitting both leaves SchedulingPolicy unset for KubeBlocks inheritance.
|
|
46
46
|
* @type {string}
|
|
47
47
|
* @memberof InstanceTemplateCreate
|
|
48
48
|
*/
|
|
@@ -27,7 +27,7 @@ export interface InstanceTemplateReplicas {
|
|
|
27
27
|
*/
|
|
28
28
|
'name': string;
|
|
29
29
|
/**
|
|
30
|
-
* Target
|
|
30
|
+
* Target replicas; all templates in the component must have equal counts summing to component replicas.
|
|
31
31
|
* @type {number}
|
|
32
32
|
* @memberof InstanceTemplateReplicas
|
|
33
33
|
*/
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* UI placement input scope for this mode. Omitted defaults to cluster. cluster displays AZ and NodeGroup selection for the cluster. component hides cluster placement and displays selection for each component, or for each instance template when the component declares templates. This does not restrict API placement overrides.
|
|
19
19
|
* @export
|
|
20
20
|
* @enum {string}
|
|
21
21
|
*/
|
package/src/adminapi.yaml
CHANGED
|
@@ -35222,7 +35222,7 @@ components:
|
|
|
35222
35222
|
instanceTemplateCreate:
|
|
35223
35223
|
type: object
|
|
35224
35224
|
additionalProperties: false
|
|
35225
|
-
description: Create assignment for one instance template. name and replicas are required. env and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once.
|
|
35225
|
+
description: Create assignment for one instance template. name and replicas are required. env, availabilityZone, nodeGroup and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once. Explicit placement requires availabilityZone and optionally accepts nodeGroup, without inheriting upper-level AZ or NodeGroup. Omitting both leaves SchedulingPolicy unset for KubeBlocks default inheritance. Hostname, user scheduling rules and additional topology keys are preserved.
|
|
35226
35226
|
required:
|
|
35227
35227
|
- name
|
|
35228
35228
|
- replicas
|
|
@@ -35237,10 +35237,10 @@ components:
|
|
|
35237
35237
|
replicas:
|
|
35238
35238
|
type: integer
|
|
35239
35239
|
minimum: 0
|
|
35240
|
-
description: Replica count
|
|
35240
|
+
description: Replica count; all templates in the component must have equal counts summing to component replicas.
|
|
35241
35241
|
availabilityZone:
|
|
35242
35242
|
type: string
|
|
35243
|
-
description: Single AZ for template placement (topology.kubernetes.io/zone).
|
|
35243
|
+
description: Single AZ for explicit template placement (topology.kubernetes.io/zone). Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the component or cluster host group. Omitting both leaves SchedulingPolicy unset for KubeBlocks inheritance.
|
|
35244
35244
|
storageClass:
|
|
35245
35245
|
type: string
|
|
35246
35246
|
description: StorageClass name for all persistent volumes in this template. Copied from component volumeClaimTemplates, preserving volume sizes and other settings while overriding storageClassName. Chart instance volume templates are cleared; omitted or empty leaves instance volumeClaimTemplates unset.
|
|
@@ -35346,7 +35346,7 @@ components:
|
|
|
35346
35346
|
description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
|
|
35347
35347
|
availabilityZone:
|
|
35348
35348
|
type: string
|
|
35349
|
-
description: Single AZ for component placement.
|
|
35349
|
+
description: Single AZ for explicit component placement. Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the cluster host group. Omitting both retains cluster scheduling.
|
|
35350
35350
|
component:
|
|
35351
35351
|
type: string
|
|
35352
35352
|
description: component type, refer to componentDef and support NamePrefix
|
|
@@ -36834,7 +36834,7 @@ components:
|
|
|
36834
36834
|
replicas:
|
|
36835
36835
|
type: integer
|
|
36836
36836
|
minimum: 0
|
|
36837
|
-
description: Target
|
|
36837
|
+
description: Target replicas; all templates in the component must have equal counts summing to component replicas.
|
|
36838
36838
|
opsHScale:
|
|
36839
36839
|
description: OpsHScale is the payload to horizontally scale a KubeBlocks cluster. Specify replicas or shards. Replica scaling requires explicit template targets when the current mode component declares instanceTemplate.ops hscale.
|
|
36840
36840
|
required:
|
|
@@ -45273,7 +45273,7 @@ components:
|
|
|
45273
45273
|
x-nullable: false
|
|
45274
45274
|
placementScope:
|
|
45275
45275
|
type: string
|
|
45276
|
-
description:
|
|
45276
|
+
description: UI placement input scope for this mode. Omitted defaults to cluster. cluster displays AZ and NodeGroup selection for the cluster. component hides cluster placement and displays selection for each component, or for each instance template when the component declares templates. This does not restrict API placement overrides.
|
|
45277
45277
|
enum:
|
|
45278
45278
|
- cluster
|
|
45279
45279
|
- component
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import type { InstanceTemplateCreateEnvInner } from './instance-template-create-env-inner';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* Create assignment for one instance template. name and replicas are required. env and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once.
|
|
21
|
+
* Create assignment for one instance template. name and replicas are required. env, availabilityZone, nodeGroup and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once. Explicit placement requires availabilityZone and optionally accepts nodeGroup, without inheriting upper-level AZ or NodeGroup. Omitting both leaves SchedulingPolicy unset for KubeBlocks default inheritance. Hostname, user scheduling rules and additional topology keys are preserved.
|
|
22
22
|
* @export
|
|
23
23
|
* @interface InstanceTemplateCreate
|
|
24
24
|
*/
|
|
@@ -36,13 +36,13 @@ export interface InstanceTemplateCreate {
|
|
|
36
36
|
*/
|
|
37
37
|
'name': string;
|
|
38
38
|
/**
|
|
39
|
-
* Replica count
|
|
39
|
+
* Replica count; all templates in the component must have equal counts summing to component replicas.
|
|
40
40
|
* @type {number}
|
|
41
41
|
* @memberof InstanceTemplateCreate
|
|
42
42
|
*/
|
|
43
43
|
'replicas': number;
|
|
44
44
|
/**
|
|
45
|
-
* Single AZ for template placement (topology.kubernetes.io/zone).
|
|
45
|
+
* Single AZ for explicit template placement (topology.kubernetes.io/zone). Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the component or cluster host group. Omitting both leaves SchedulingPolicy unset for KubeBlocks inheritance.
|
|
46
46
|
* @type {string}
|
|
47
47
|
* @memberof InstanceTemplateCreate
|
|
48
48
|
*/
|
package/src/internalapi.yaml
CHANGED
|
@@ -2653,7 +2653,7 @@ components:
|
|
|
2653
2653
|
instanceTemplateCreate:
|
|
2654
2654
|
type: object
|
|
2655
2655
|
additionalProperties: false
|
|
2656
|
-
description: Create assignment for one instance template. name and replicas are required. env and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once.
|
|
2656
|
+
description: Create assignment for one instance template. name and replicas are required. env, availabilityZone, nodeGroup and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once. Explicit placement requires availabilityZone and optionally accepts nodeGroup, without inheriting upper-level AZ or NodeGroup. Omitting both leaves SchedulingPolicy unset for KubeBlocks default inheritance. Hostname, user scheduling rules and additional topology keys are preserved.
|
|
2657
2657
|
required:
|
|
2658
2658
|
- name
|
|
2659
2659
|
- replicas
|
|
@@ -2668,10 +2668,10 @@ components:
|
|
|
2668
2668
|
replicas:
|
|
2669
2669
|
type: integer
|
|
2670
2670
|
minimum: 0
|
|
2671
|
-
description: Replica count
|
|
2671
|
+
description: Replica count; all templates in the component must have equal counts summing to component replicas.
|
|
2672
2672
|
availabilityZone:
|
|
2673
2673
|
type: string
|
|
2674
|
-
description: Single AZ for template placement (topology.kubernetes.io/zone).
|
|
2674
|
+
description: Single AZ for explicit template placement (topology.kubernetes.io/zone). Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the component or cluster host group. Omitting both leaves SchedulingPolicy unset for KubeBlocks inheritance.
|
|
2675
2675
|
storageClass:
|
|
2676
2676
|
type: string
|
|
2677
2677
|
description: StorageClass name for all persistent volumes in this template. Copied from component volumeClaimTemplates, preserving volume sizes and other settings while overriding storageClassName. Chart instance volume templates are cleared; omitted or empty leaves instance volumeClaimTemplates unset.
|
|
@@ -48,7 +48,7 @@ export interface ComponentItemCreate {
|
|
|
48
48
|
*/
|
|
49
49
|
'nodeGroup'?: string;
|
|
50
50
|
/**
|
|
51
|
-
* Single AZ for component placement.
|
|
51
|
+
* Single AZ for explicit component placement. Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the cluster host group. Omitting both retains cluster scheduling.
|
|
52
52
|
* @type {string}
|
|
53
53
|
* @memberof ComponentItemCreate
|
|
54
54
|
*/
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import type { InstanceTemplateCreateEnvInner } from './instance-template-create-env-inner';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* Create assignment for one instance template. name and replicas are required. env and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once.
|
|
21
|
+
* Create assignment for one instance template. name and replicas are required. env, availabilityZone, nodeGroup and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once. Explicit placement requires availabilityZone and optionally accepts nodeGroup, without inheriting upper-level AZ or NodeGroup. Omitting both leaves SchedulingPolicy unset for KubeBlocks default inheritance. Hostname, user scheduling rules and additional topology keys are preserved.
|
|
22
22
|
* @export
|
|
23
23
|
* @interface InstanceTemplateCreate
|
|
24
24
|
*/
|
|
@@ -36,13 +36,13 @@ export interface InstanceTemplateCreate {
|
|
|
36
36
|
*/
|
|
37
37
|
'name': string;
|
|
38
38
|
/**
|
|
39
|
-
* Replica count
|
|
39
|
+
* Replica count; all templates in the component must have equal counts summing to component replicas.
|
|
40
40
|
* @type {number}
|
|
41
41
|
* @memberof InstanceTemplateCreate
|
|
42
42
|
*/
|
|
43
43
|
'replicas': number;
|
|
44
44
|
/**
|
|
45
|
-
* Single AZ for template placement (topology.kubernetes.io/zone).
|
|
45
|
+
* Single AZ for explicit template placement (topology.kubernetes.io/zone). Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the component or cluster host group. Omitting both leaves SchedulingPolicy unset for KubeBlocks inheritance.
|
|
46
46
|
* @type {string}
|
|
47
47
|
* @memberof InstanceTemplateCreate
|
|
48
48
|
*/
|
|
@@ -27,7 +27,7 @@ export interface InstanceTemplateReplicas {
|
|
|
27
27
|
*/
|
|
28
28
|
'name': string;
|
|
29
29
|
/**
|
|
30
|
-
* Target
|
|
30
|
+
* Target replicas; all templates in the component must have equal counts summing to component replicas.
|
|
31
31
|
* @type {number}
|
|
32
32
|
* @memberof InstanceTemplateReplicas
|
|
33
33
|
*/
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* UI placement input scope for this mode. Omitted defaults to cluster. cluster displays AZ and NodeGroup selection for the cluster. component hides cluster placement and displays selection for each component, or for each instance template when the component declares templates. This does not restrict API placement overrides.
|
|
19
19
|
* @export
|
|
20
20
|
* @enum {string}
|
|
21
21
|
*/
|
package/src/openapi.yaml
CHANGED
|
@@ -30490,7 +30490,7 @@ components:
|
|
|
30490
30490
|
instanceTemplateCreate:
|
|
30491
30491
|
type: object
|
|
30492
30492
|
additionalProperties: false
|
|
30493
|
-
description: Create assignment for one instance template. name and replicas are required. env and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once.
|
|
30493
|
+
description: Create assignment for one instance template. name and replicas are required. env, availabilityZone, nodeGroup and storageClass are optional overlays. The request must include every chart-rendered instance template exactly once. Explicit placement requires availabilityZone and optionally accepts nodeGroup, without inheriting upper-level AZ or NodeGroup. Omitting both leaves SchedulingPolicy unset for KubeBlocks default inheritance. Hostname, user scheduling rules and additional topology keys are preserved.
|
|
30494
30494
|
required:
|
|
30495
30495
|
- name
|
|
30496
30496
|
- replicas
|
|
@@ -30505,10 +30505,10 @@ components:
|
|
|
30505
30505
|
replicas:
|
|
30506
30506
|
type: integer
|
|
30507
30507
|
minimum: 0
|
|
30508
|
-
description: Replica count
|
|
30508
|
+
description: Replica count; all templates in the component must have equal counts summing to component replicas.
|
|
30509
30509
|
availabilityZone:
|
|
30510
30510
|
type: string
|
|
30511
|
-
description: Single AZ for template placement (topology.kubernetes.io/zone).
|
|
30511
|
+
description: Single AZ for explicit template placement (topology.kubernetes.io/zone). Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the component or cluster host group. Omitting both leaves SchedulingPolicy unset for KubeBlocks inheritance.
|
|
30512
30512
|
storageClass:
|
|
30513
30513
|
type: string
|
|
30514
30514
|
description: StorageClass name for all persistent volumes in this template. Copied from component volumeClaimTemplates, preserving volume sizes and other settings while overriding storageClassName. Chart instance volume templates are cleared; omitted or empty leaves instance volumeClaimTemplates unset.
|
|
@@ -30609,7 +30609,7 @@ components:
|
|
|
30609
30609
|
description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
|
|
30610
30610
|
availabilityZone:
|
|
30611
30611
|
type: string
|
|
30612
|
-
description: Single AZ for component placement.
|
|
30612
|
+
description: Single AZ for explicit component placement. Must be enabled in the environment and is required when nodeGroup is specified. An omitted nodeGroup does not inherit the cluster host group. Omitting both retains cluster scheduling.
|
|
30613
30613
|
component:
|
|
30614
30614
|
type: string
|
|
30615
30615
|
description: component type, refer to componentDef and support NamePrefix
|
|
@@ -31630,7 +31630,7 @@ components:
|
|
|
31630
31630
|
replicas:
|
|
31631
31631
|
type: integer
|
|
31632
31632
|
minimum: 0
|
|
31633
|
-
description: Target
|
|
31633
|
+
description: Target replicas; all templates in the component must have equal counts summing to component replicas.
|
|
31634
31634
|
opsHScale:
|
|
31635
31635
|
description: OpsHScale is the payload to horizontally scale a KubeBlocks cluster. Specify replicas or shards. Replica scaling requires explicit template targets when the current mode component declares instanceTemplate.ops hscale.
|
|
31636
31636
|
required:
|
|
@@ -38955,7 +38955,7 @@ components:
|
|
|
38955
38955
|
x-nullable: false
|
|
38956
38956
|
placementScope:
|
|
38957
38957
|
type: string
|
|
38958
|
-
description:
|
|
38958
|
+
description: UI placement input scope for this mode. Omitted defaults to cluster. cluster displays AZ and NodeGroup selection for the cluster. component hides cluster placement and displays selection for each component, or for each instance template when the component declares templates. This does not restrict API placement overrides.
|
|
38959
38959
|
enum:
|
|
38960
38960
|
- cluster
|
|
38961
38961
|
- component
|