kb-cloud-client-typescript 0.0.0-support-instance-template-equal-replicas.20261123.1150 → 0.0.0-support-instance-template-storage-display.20261124.745

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.
@@ -41,7 +41,7 @@ export interface ComponentItemCreate {
41
41
  */
42
42
  'nodeGroup'?: string;
43
43
  /**
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.
44
+ * Component AZ, enabled in the environment. Required when placementScope is component and this component has no templates; otherwise forbidden. An omitted nodeGroup does not inherit the cluster host group.
45
45
  * @type {string}
46
46
  * @memberof ComponentItemCreate
47
47
  */
@@ -28,12 +28,6 @@ export interface InstanceStorageItem {
28
28
  * @memberof InstanceStorageItem
29
29
  */
30
30
  'size': string;
31
- /**
32
- * The name of StorageClass in use
33
- * @type {string}
34
- * @memberof InstanceStorageItem
35
- */
36
- 'storageClass'?: string;
37
31
  /**
38
32
  *
39
33
  * @type {IoQuantity}
@@ -1 +1 @@
1
- {"version":3,"file":"instance-storage-item.d.ts","sourceRoot":"","sources":["../../../src/adminapi/models/instance-storage-item.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B"}
1
+ {"version":3,"file":"instance-storage-item.d.ts","sourceRoot":"","sources":["../../../src/adminapi/models/instance-storage-item.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B"}
@@ -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, 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.
14
+ * Instance template assignment. Include every chart-rendered template exactly once, with name and replicas. env and storageClass are optional. Placement follows the mode placementScope: component scope requires template availabilityZone and permits nodeGroup; cluster scope forbids template placement.
15
15
  * @export
16
16
  * @interface InstanceTemplateCreate
17
17
  */
@@ -35,7 +35,7 @@ export interface InstanceTemplateCreate {
35
35
  */
36
36
  'replicas': number;
37
37
  /**
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.
38
+ * Template AZ, enabled in the environment. Required when placementScope is component; forbidden in cluster scope. The containing component must omit placement. An omitted nodeGroup does not inherit an upper-level host group.
39
39
  * @type {string}
40
40
  * @memberof InstanceTemplateCreate
41
41
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
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.
13
+ * Placement scope; defaults to cluster. Cluster placement excludes component/template placement. In component scope, each ordinary component or each declared instance template requires availabilityZone; nodeGroup is optional. Cluster availabilityZones, nodeGroup and singleZone are forbidden. A component cannot specify placement alongside its templates.
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
- * 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.
18
+ * Placement scope; defaults to cluster. Cluster placement excludes component/template placement. In component scope, each ordinary component or each declared instance template requires availabilityZone; nodeGroup is optional. Cluster availabilityZones, nodeGroup and singleZone are forbidden. A component cannot specify placement alongside its templates.
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, 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.
14
+ * Instance template assignment. Include every chart-rendered template exactly once, with name and replicas. env and storageClass are optional. Placement follows the mode placementScope: component scope requires template availabilityZone and permits nodeGroup; cluster scope forbids template placement.
15
15
  * @export
16
16
  * @interface InstanceTemplateCreate
17
17
  */
@@ -35,7 +35,7 @@ export interface InstanceTemplateCreate {
35
35
  */
36
36
  'replicas': number;
37
37
  /**
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.
38
+ * Template AZ, enabled in the environment. Required when placementScope is component; forbidden in cluster scope. The containing component must omit placement. An omitted nodeGroup does not inherit an upper-level host group.
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 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.
44
+ * Component AZ, enabled in the environment. Required when placementScope is component and this component has no templates; otherwise forbidden. An omitted nodeGroup does not inherit the cluster host group.
45
45
  * @type {string}
46
46
  * @memberof ComponentItemCreate
47
47
  */
@@ -28,12 +28,6 @@ export interface InstanceStorageItem {
28
28
  * @memberof InstanceStorageItem
29
29
  */
30
30
  'size': string;
31
- /**
32
- * The name of StorageClass in use
33
- * @type {string}
34
- * @memberof InstanceStorageItem
35
- */
36
- 'storageClass'?: string;
37
31
  /**
38
32
  *
39
33
  * @type {IoQuantity}
@@ -1 +1 @@
1
- {"version":3,"file":"instance-storage-item.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/instance-storage-item.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B"}
1
+ {"version":3,"file":"instance-storage-item.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/instance-storage-item.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B"}
@@ -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, 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.
14
+ * Instance template assignment. Include every chart-rendered template exactly once, with name and replicas. env and storageClass are optional. Placement follows the mode placementScope: component scope requires template availabilityZone and permits nodeGroup; cluster scope forbids template placement.
15
15
  * @export
16
16
  * @interface InstanceTemplateCreate
17
17
  */
@@ -35,7 +35,7 @@ export interface InstanceTemplateCreate {
35
35
  */
36
36
  'replicas': number;
37
37
  /**
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.
38
+ * Template AZ, enabled in the environment. Required when placementScope is component; forbidden in cluster scope. The containing component must omit placement. An omitted nodeGroup does not inherit an upper-level host group.
39
39
  * @type {string}
40
40
  * @memberof InstanceTemplateCreate
41
41
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
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.
13
+ * Placement scope; defaults to cluster. Cluster placement excludes component/template placement. In component scope, each ordinary component or each declared instance template requires availabilityZone; nodeGroup is optional. Cluster availabilityZones, nodeGroup and singleZone are forbidden. A component cannot specify placement alongside its templates.
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
- * 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.
18
+ * Placement scope; defaults to cluster. Cluster placement excludes component/template placement. In component scope, each ordinary component or each declared instance template requires availabilityZone; nodeGroup is optional. Cluster availabilityZones, nodeGroup and singleZone are forbidden. A component cannot specify placement alongside its templates.
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-instance-template-equal-replicas.20261123.1150",
3
+ "version": "0.0.0-support-instance-template-storage-display.20261124.745",
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 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.
51
+ * Component AZ, enabled in the environment. Required when placementScope is component and this component has no templates; otherwise forbidden. An omitted nodeGroup does not inherit the cluster host group.
52
52
  * @type {string}
53
53
  * @memberof ComponentItemCreate
54
54
  */
@@ -35,12 +35,6 @@ export interface InstanceStorageItem {
35
35
  * @memberof InstanceStorageItem
36
36
  */
37
37
  'size': string;
38
- /**
39
- * The name of StorageClass in use
40
- * @type {string}
41
- * @memberof InstanceStorageItem
42
- */
43
- 'storageClass'?: string;
44
38
  /**
45
39
  *
46
40
  * @type {IoQuantity}
@@ -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, 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.
21
+ * Instance template assignment. Include every chart-rendered template exactly once, with name and replicas. env and storageClass are optional. Placement follows the mode placementScope: component scope requires template availabilityZone and permits nodeGroup; cluster scope forbids template placement.
22
22
  * @export
23
23
  * @interface InstanceTemplateCreate
24
24
  */
@@ -42,7 +42,7 @@ export interface InstanceTemplateCreate {
42
42
  */
43
43
  'replicas': number;
44
44
  /**
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.
45
+ * Template AZ, enabled in the environment. Required when placementScope is component; forbidden in cluster scope. The containing component must omit placement. An omitted nodeGroup does not inherit an upper-level host group.
46
46
  * @type {string}
47
47
  * @memberof InstanceTemplateCreate
48
48
  */
@@ -15,7 +15,7 @@
15
15
 
16
16
 
17
17
  /**
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.
18
+ * Placement scope; defaults to cluster. Cluster placement excludes component/template placement. In component scope, each ordinary component or each declared instance template requires availabilityZone; nodeGroup is optional. Cluster availabilityZones, nodeGroup and singleZone are forbidden. A component cannot specify placement alongside its templates.
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, 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.
35225
+ description: 'Instance template assignment. Include every chart-rendered template exactly once, with name and replicas. env and storageClass are optional. Placement follows the mode placementScope: component scope requires template availabilityZone and permits nodeGroup; cluster scope forbids template placement.'
35226
35226
  required:
35227
35227
  - name
35228
35228
  - replicas
@@ -35240,7 +35240,7 @@ components:
35240
35240
  description: Replica count for this instance template.
35241
35241
  availabilityZone:
35242
35242
  type: string
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.
35243
+ description: Template AZ, enabled in the environment. Required when placementScope is component; forbidden in cluster scope. The containing component must omit placement. An omitted nodeGroup does not inherit an upper-level host group.
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 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.
35349
+ description: Component AZ, enabled in the environment. Required when placementScope is component and this component has no templates; otherwise forbidden. An omitted nodeGroup does not inherit the cluster host group.
35350
35350
  component:
35351
35351
  type: string
35352
35352
  description: component type, refer to componentDef and support NamePrefix
@@ -36020,9 +36020,6 @@ components:
36020
36020
  description: Specify the size of storage, the unit is Gi.
36021
36021
  title: size
36022
36022
  type: string
36023
- storageClass:
36024
- description: The name of StorageClass in use
36025
- type: string
36026
36023
  ioReserves:
36027
36024
  $ref: '#/components/schemas/ioQuantity'
36028
36025
  ioLimits:
@@ -45273,7 +45270,7 @@ components:
45273
45270
  x-nullable: false
45274
45271
  placementScope:
45275
45272
  type: string
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.
45273
+ description: Placement scope; defaults to cluster. Cluster placement excludes component/template placement. In component scope, each ordinary component or each declared instance template requires availabilityZone; nodeGroup is optional. Cluster availabilityZones, nodeGroup and singleZone are forbidden. A component cannot specify placement alongside its templates.
45277
45274
  enum:
45278
45275
  - cluster
45279
45276
  - 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, 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.
21
+ * Instance template assignment. Include every chart-rendered template exactly once, with name and replicas. env and storageClass are optional. Placement follows the mode placementScope: component scope requires template availabilityZone and permits nodeGroup; cluster scope forbids template placement.
22
22
  * @export
23
23
  * @interface InstanceTemplateCreate
24
24
  */
@@ -42,7 +42,7 @@ export interface InstanceTemplateCreate {
42
42
  */
43
43
  'replicas': number;
44
44
  /**
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.
45
+ * Template AZ, enabled in the environment. Required when placementScope is component; forbidden in cluster scope. The containing component must omit placement. An omitted nodeGroup does not inherit an upper-level host group.
46
46
  * @type {string}
47
47
  * @memberof InstanceTemplateCreate
48
48
  */
@@ -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, 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.
2656
+ description: 'Instance template assignment. Include every chart-rendered template exactly once, with name and replicas. env and storageClass are optional. Placement follows the mode placementScope: component scope requires template availabilityZone and permits nodeGroup; cluster scope forbids template placement.'
2657
2657
  required:
2658
2658
  - name
2659
2659
  - replicas
@@ -2671,7 +2671,7 @@ components:
2671
2671
  description: Replica count for this instance template.
2672
2672
  availabilityZone:
2673
2673
  type: string
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.
2674
+ description: Template AZ, enabled in the environment. Required when placementScope is component; forbidden in cluster scope. The containing component must omit placement. An omitted nodeGroup does not inherit an upper-level host group.
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 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.
51
+ * Component AZ, enabled in the environment. Required when placementScope is component and this component has no templates; otherwise forbidden. An omitted nodeGroup does not inherit the cluster host group.
52
52
  * @type {string}
53
53
  * @memberof ComponentItemCreate
54
54
  */
@@ -35,12 +35,6 @@ export interface InstanceStorageItem {
35
35
  * @memberof InstanceStorageItem
36
36
  */
37
37
  'size': string;
38
- /**
39
- * The name of StorageClass in use
40
- * @type {string}
41
- * @memberof InstanceStorageItem
42
- */
43
- 'storageClass'?: string;
44
38
  /**
45
39
  *
46
40
  * @type {IoQuantity}
@@ -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, 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.
21
+ * Instance template assignment. Include every chart-rendered template exactly once, with name and replicas. env and storageClass are optional. Placement follows the mode placementScope: component scope requires template availabilityZone and permits nodeGroup; cluster scope forbids template placement.
22
22
  * @export
23
23
  * @interface InstanceTemplateCreate
24
24
  */
@@ -42,7 +42,7 @@ export interface InstanceTemplateCreate {
42
42
  */
43
43
  'replicas': number;
44
44
  /**
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.
45
+ * Template AZ, enabled in the environment. Required when placementScope is component; forbidden in cluster scope. The containing component must omit placement. An omitted nodeGroup does not inherit an upper-level host group.
46
46
  * @type {string}
47
47
  * @memberof InstanceTemplateCreate
48
48
  */
@@ -15,7 +15,7 @@
15
15
 
16
16
 
17
17
  /**
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.
18
+ * Placement scope; defaults to cluster. Cluster placement excludes component/template placement. In component scope, each ordinary component or each declared instance template requires availabilityZone; nodeGroup is optional. Cluster availabilityZones, nodeGroup and singleZone are forbidden. A component cannot specify placement alongside its templates.
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, 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.
30493
+ description: 'Instance template assignment. Include every chart-rendered template exactly once, with name and replicas. env and storageClass are optional. Placement follows the mode placementScope: component scope requires template availabilityZone and permits nodeGroup; cluster scope forbids template placement.'
30494
30494
  required:
30495
30495
  - name
30496
30496
  - replicas
@@ -30508,7 +30508,7 @@ components:
30508
30508
  description: Replica count for this instance template.
30509
30509
  availabilityZone:
30510
30510
  type: string
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.
30511
+ description: Template AZ, enabled in the environment. Required when placementScope is component; forbidden in cluster scope. The containing component must omit placement. An omitted nodeGroup does not inherit an upper-level host group.
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 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.
30612
+ description: Component AZ, enabled in the environment. Required when placementScope is component and this component has no templates; otherwise forbidden. An omitted nodeGroup does not inherit the cluster host group.
30613
30613
  component:
30614
30614
  type: string
30615
30615
  description: component type, refer to componentDef and support NamePrefix
@@ -31270,9 +31270,6 @@ components:
31270
31270
  description: Specify the size of storage, the unit is Gi.
31271
31271
  title: size
31272
31272
  type: string
31273
- storageClass:
31274
- description: The name of StorageClass in use
31275
- type: string
31276
31273
  ioReserves:
31277
31274
  $ref: '#/components/schemas/ioQuantity'
31278
31275
  ioLimits:
@@ -38955,7 +38952,7 @@ components:
38955
38952
  x-nullable: false
38956
38953
  placementScope:
38957
38954
  type: string
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.
38955
+ description: Placement scope; defaults to cluster. Cluster placement excludes component/template placement. In component scope, each ordinary component or each declared instance template requires availabilityZone; nodeGroup is optional. Cluster availabilityZones, nodeGroup and singleZone are forbidden. A component cannot specify placement alongside its templates.
38959
38956
  enum:
38960
38957
  - cluster
38961
38958
  - component