kb-cloud-client-typescript 2.4.0-alpha.164 → 2.4.0-alpha.166

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.
Files changed (34) hide show
  1. package/dist/adminapi/models/component-item-create.d.ts +1 -1
  2. package/dist/adminapi/models/instance-template-create-env-inner.d.ts +1 -1
  3. package/dist/adminapi/models/instance-template-create.d.ts +3 -3
  4. package/dist/adminapi/models/instance-template-env.d.ts +3 -3
  5. package/dist/adminapi/models/mode-component-instance-template.d.ts +2 -2
  6. package/dist/adminapi/models/placement-scope.d.ts +1 -1
  7. package/dist/adminapi/models/placement-scope.js +1 -1
  8. package/dist/internalapi/models/instance-template-create-env-inner.d.ts +1 -1
  9. package/dist/internalapi/models/instance-template-create.d.ts +3 -3
  10. package/dist/openapi/models/component-item-create.d.ts +1 -1
  11. package/dist/openapi/models/instance-template-create-env-inner.d.ts +1 -1
  12. package/dist/openapi/models/instance-template-create.d.ts +3 -3
  13. package/dist/openapi/models/instance-template-env.d.ts +3 -3
  14. package/dist/openapi/models/mode-component-instance-template.d.ts +2 -2
  15. package/dist/openapi/models/placement-scope.d.ts +1 -1
  16. package/dist/openapi/models/placement-scope.js +1 -1
  17. package/package.json +1 -1
  18. package/src/adminapi/models/component-item-create.ts +1 -1
  19. package/src/adminapi/models/instance-template-create-env-inner.ts +1 -1
  20. package/src/adminapi/models/instance-template-create.ts +3 -3
  21. package/src/adminapi/models/instance-template-env.ts +3 -3
  22. package/src/adminapi/models/mode-component-instance-template.ts +2 -2
  23. package/src/adminapi/models/placement-scope.ts +1 -1
  24. package/src/adminapi.yaml +12 -18
  25. package/src/internalapi/models/instance-template-create-env-inner.ts +1 -1
  26. package/src/internalapi/models/instance-template-create.ts +3 -3
  27. package/src/internalapi.yaml +5 -5
  28. package/src/openapi/models/component-item-create.ts +1 -1
  29. package/src/openapi/models/instance-template-create-env-inner.ts +1 -1
  30. package/src/openapi/models/instance-template-create.ts +3 -3
  31. package/src/openapi/models/instance-template-env.ts +3 -3
  32. package/src/openapi/models/mode-component-instance-template.ts +2 -2
  33. package/src/openapi/models/placement-scope.ts +1 -1
  34. package/src/openapi.yaml +12 -18
@@ -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
  */
@@ -22,7 +22,7 @@ export interface InstanceTemplateCreateEnvInner {
22
22
  */
23
23
  'name': string;
24
24
  /**
25
- * Plain string value only. valueFrom is not supported.
25
+ * Literal string; optional values may be empty. valueFrom is unsupported.
26
26
  * @type {string}
27
27
  * @memberof InstanceTemplateCreateEnvInner
28
28
  */
@@ -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
  */
@@ -47,7 +47,7 @@ export interface InstanceTemplateCreate {
47
47
  */
48
48
  'storageClass'?: string;
49
49
  /**
50
- * Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
50
+ * Declared env overrides. Names must be unique; defaults apply only to omitted variables.
51
51
  * @type {Array<InstanceTemplateCreateEnvInner>}
52
52
  * @memberof InstanceTemplateCreate
53
53
  */
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { LocalizedDescription } from './localized-description';
13
13
  /**
14
- * One fillable env var on an instance template, for frontend rendering.
14
+ * Allowed template env variable and its input constraints.
15
15
  * @export
16
16
  * @interface InstanceTemplateEnv
17
17
  */
@@ -35,13 +35,13 @@ export interface InstanceTemplateEnv {
35
35
  */
36
36
  'description'?: LocalizedDescription;
37
37
  /**
38
- * If true, the frontend should treat this env as required. Create does not re-check.
38
+ * Requires a non-blank value after applying the default.
39
39
  * @type {boolean}
40
40
  * @memberof InstanceTemplateEnv
41
41
  */
42
42
  'required'?: boolean;
43
43
  /**
44
- * Default value shown by the frontend.
44
+ * Used only when the variable is omitted.
45
45
  * @type {string}
46
46
  * @memberof InstanceTemplateEnv
47
47
  */
@@ -31,13 +31,13 @@ export interface ModeComponentInstanceTemplate {
31
31
  */
32
32
  'ops': Array<InstanceTemplateOp>;
33
33
  /**
34
- * Heterogeneous attributes the frontend should render on each instance template at create. Omitted or empty means only name and replicas. Create overlays the request onto the chart and does not re-check this list.
34
+ * Template UI attributes. Env overrides require env to be enabled.
35
35
  * @type {Set<InstanceTemplateAttribute>}
36
36
  * @memberof ModeComponentInstanceTemplate
37
37
  */
38
38
  'attributes'?: Set<InstanceTemplateAttribute>;
39
39
  /**
40
- * Env vars the frontend may render when attributes includes env. Create does not re-check this list.
40
+ * Allowed env variables, with defaults and required checks applied before persistence.
41
41
  * @type {Array<InstanceTemplateEnv>}
42
42
  * @memberof ModeComponentInstanceTemplate
43
43
  */
@@ -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
  */
@@ -22,7 +22,7 @@ export interface InstanceTemplateCreateEnvInner {
22
22
  */
23
23
  'name': string;
24
24
  /**
25
- * Plain string value only. valueFrom is not supported.
25
+ * Literal string; optional values may be empty. valueFrom is unsupported.
26
26
  * @type {string}
27
27
  * @memberof InstanceTemplateCreateEnvInner
28
28
  */
@@ -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
  */
@@ -47,7 +47,7 @@ export interface InstanceTemplateCreate {
47
47
  */
48
48
  'storageClass'?: string;
49
49
  /**
50
- * Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
50
+ * Declared env overrides. Names must be unique; defaults apply only to omitted variables.
51
51
  * @type {Array<InstanceTemplateCreateEnvInner>}
52
52
  * @memberof InstanceTemplateCreate
53
53
  */
@@ -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
  */
@@ -22,7 +22,7 @@ export interface InstanceTemplateCreateEnvInner {
22
22
  */
23
23
  'name': string;
24
24
  /**
25
- * Plain string value only. valueFrom is not supported.
25
+ * Literal string; optional values may be empty. valueFrom is unsupported.
26
26
  * @type {string}
27
27
  * @memberof InstanceTemplateCreateEnvInner
28
28
  */
@@ -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
  */
@@ -47,7 +47,7 @@ export interface InstanceTemplateCreate {
47
47
  */
48
48
  'storageClass'?: string;
49
49
  /**
50
- * Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
50
+ * Declared env overrides. Names must be unique; defaults apply only to omitted variables.
51
51
  * @type {Array<InstanceTemplateCreateEnvInner>}
52
52
  * @memberof InstanceTemplateCreate
53
53
  */
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { LocalizedDescription } from './localized-description';
13
13
  /**
14
- * One fillable env var on an instance template, for frontend rendering.
14
+ * Allowed template env variable and its input constraints.
15
15
  * @export
16
16
  * @interface InstanceTemplateEnv
17
17
  */
@@ -35,13 +35,13 @@ export interface InstanceTemplateEnv {
35
35
  */
36
36
  'description'?: LocalizedDescription;
37
37
  /**
38
- * If true, the frontend should treat this env as required. Create does not re-check.
38
+ * Requires a non-blank value after applying the default.
39
39
  * @type {boolean}
40
40
  * @memberof InstanceTemplateEnv
41
41
  */
42
42
  'required'?: boolean;
43
43
  /**
44
- * Default value shown by the frontend.
44
+ * Used only when the variable is omitted.
45
45
  * @type {string}
46
46
  * @memberof InstanceTemplateEnv
47
47
  */
@@ -31,13 +31,13 @@ export interface ModeComponentInstanceTemplate {
31
31
  */
32
32
  'ops': Array<InstanceTemplateOp>;
33
33
  /**
34
- * Heterogeneous attributes the frontend should render on each instance template at create. Omitted or empty means only name and replicas. Create overlays the request onto the chart and does not re-check this list.
34
+ * Template UI attributes. Env overrides require env to be enabled.
35
35
  * @type {Set<InstanceTemplateAttribute>}
36
36
  * @memberof ModeComponentInstanceTemplate
37
37
  */
38
38
  'attributes'?: Set<InstanceTemplateAttribute>;
39
39
  /**
40
- * Env vars the frontend may render when attributes includes env. Create does not re-check this list.
40
+ * Allowed env variables, with defaults and required checks applied before persistence.
41
41
  * @type {Array<InstanceTemplateEnv>}
42
42
  * @memberof ModeComponentInstanceTemplate
43
43
  */
@@ -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": "2.4.0-alpha.164",
3
+ "version": "2.4.0-alpha.166",
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
  */
@@ -27,7 +27,7 @@ export interface InstanceTemplateCreateEnvInner {
27
27
  */
28
28
  'name': string;
29
29
  /**
30
- * Plain string value only. valueFrom is not supported.
30
+ * Literal string; optional values may be empty. valueFrom is unsupported.
31
31
  * @type {string}
32
32
  * @memberof InstanceTemplateCreateEnvInner
33
33
  */
@@ -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
  */
@@ -54,7 +54,7 @@ export interface InstanceTemplateCreate {
54
54
  */
55
55
  'storageClass'?: string;
56
56
  /**
57
- * Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
57
+ * Declared env overrides. Names must be unique; defaults apply only to omitted variables.
58
58
  * @type {Array<InstanceTemplateCreateEnvInner>}
59
59
  * @memberof InstanceTemplateCreate
60
60
  */
@@ -18,7 +18,7 @@
18
18
  import type { LocalizedDescription } from './localized-description';
19
19
 
20
20
  /**
21
- * One fillable env var on an instance template, for frontend rendering.
21
+ * Allowed template env variable and its input constraints.
22
22
  * @export
23
23
  * @interface InstanceTemplateEnv
24
24
  */
@@ -42,13 +42,13 @@ export interface InstanceTemplateEnv {
42
42
  */
43
43
  'description'?: LocalizedDescription;
44
44
  /**
45
- * If true, the frontend should treat this env as required. Create does not re-check.
45
+ * Requires a non-blank value after applying the default.
46
46
  * @type {boolean}
47
47
  * @memberof InstanceTemplateEnv
48
48
  */
49
49
  'required'?: boolean;
50
50
  /**
51
- * Default value shown by the frontend.
51
+ * Used only when the variable is omitted.
52
52
  * @type {string}
53
53
  * @memberof InstanceTemplateEnv
54
54
  */
@@ -42,13 +42,13 @@ export interface ModeComponentInstanceTemplate {
42
42
  */
43
43
  'ops': Array<InstanceTemplateOp>;
44
44
  /**
45
- * Heterogeneous attributes the frontend should render on each instance template at create. Omitted or empty means only name and replicas. Create overlays the request onto the chart and does not re-check this list.
45
+ * Template UI attributes. Env overrides require env to be enabled.
46
46
  * @type {Set<InstanceTemplateAttribute>}
47
47
  * @memberof ModeComponentInstanceTemplate
48
48
  */
49
49
  'attributes'?: Set<InstanceTemplateAttribute>;
50
50
  /**
51
- * Env vars the frontend may render when attributes includes env. Create does not re-check this list.
51
+ * Allowed env variables, with defaults and required checks applied before persistence.
52
52
  * @type {Array<InstanceTemplateEnv>}
53
53
  * @memberof ModeComponentInstanceTemplate
54
54
  */
@@ -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,13 +35240,13 @@ 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.
35247
35247
  env:
35248
35248
  type: array
35249
- description: Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
35249
+ description: Declared env overrides. Names must be unique; defaults apply only to omitted variables.
35250
35250
  items:
35251
35251
  type: object
35252
35252
  required:
@@ -35255,10 +35255,10 @@ components:
35255
35255
  properties:
35256
35256
  name:
35257
35257
  type: string
35258
+ minLength: 1
35258
35259
  value:
35259
35260
  type: string
35260
- minLength: 1
35261
- description: Plain string value only. valueFrom is not supported.
35261
+ description: Literal string; optional values may be empty. valueFrom is unsupported.
35262
35262
  ioQuantity:
35263
35263
  description: IO Quantity describes IOPS and BPS of a volume
35264
35264
  properties:
@@ -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
@@ -45273,7 +45273,7 @@ components:
45273
45273
  x-nullable: false
45274
45274
  placementScope:
45275
45275
  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.
45276
+ 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
45277
  enum:
45278
45278
  - cluster
45279
45279
  - component
@@ -45300,7 +45300,7 @@ components:
45300
45300
  - storageClass
45301
45301
  instanceTemplateEnv:
45302
45302
  type: object
45303
- description: One fillable env var on an instance template, for frontend rendering.
45303
+ description: Allowed template env variable and its input constraints.
45304
45304
  required:
45305
45305
  - name
45306
45306
  properties:
@@ -45314,10 +45314,10 @@ components:
45314
45314
  $ref: '#/components/schemas/localizedDescription'
45315
45315
  required:
45316
45316
  type: boolean
45317
- description: If true, the frontend should treat this env as required. Create does not re-check.
45317
+ description: Requires a non-blank value after applying the default.
45318
45318
  default:
45319
45319
  type: string
45320
- description: Default value shown by the frontend.
45320
+ description: Used only when the variable is omitted.
45321
45321
  modeReadonlyEndpoint:
45322
45322
  type: object
45323
45323
  required:
@@ -45374,16 +45374,10 @@ components:
45374
45374
  uniqueItems: true
45375
45375
  items:
45376
45376
  $ref: '#/components/schemas/instanceTemplateAttribute'
45377
- description: |
45378
- Heterogeneous attributes the frontend should render on each
45379
- instance template at create. Omitted or empty means only name
45380
- and replicas. Create overlays the request onto the chart and
45381
- does not re-check this list.
45377
+ description: Template UI attributes. Env overrides require env to be enabled.
45382
45378
  env:
45383
45379
  type: array
45384
- description: |
45385
- Env vars the frontend may render when attributes includes env.
45386
- Create does not re-check this list.
45380
+ description: Allowed env variables, with defaults and required checks applied before persistence.
45387
45381
  items:
45388
45382
  $ref: '#/components/schemas/instanceTemplateEnv'
45389
45383
  serviceRef:
@@ -27,7 +27,7 @@ export interface InstanceTemplateCreateEnvInner {
27
27
  */
28
28
  'name': string;
29
29
  /**
30
- * Plain string value only. valueFrom is not supported.
30
+ * Literal string; optional values may be empty. valueFrom is unsupported.
31
31
  * @type {string}
32
32
  * @memberof InstanceTemplateCreateEnvInner
33
33
  */
@@ -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
  */
@@ -54,7 +54,7 @@ export interface InstanceTemplateCreate {
54
54
  */
55
55
  'storageClass'?: string;
56
56
  /**
57
- * Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
57
+ * Declared env overrides. Names must be unique; defaults apply only to omitted variables.
58
58
  * @type {Array<InstanceTemplateCreateEnvInner>}
59
59
  * @memberof InstanceTemplateCreate
60
60
  */
@@ -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,13 +2671,13 @@ 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.
2678
2678
  env:
2679
2679
  type: array
2680
- description: Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
2680
+ description: Declared env overrides. Names must be unique; defaults apply only to omitted variables.
2681
2681
  items:
2682
2682
  type: object
2683
2683
  required:
@@ -2686,10 +2686,10 @@ components:
2686
2686
  properties:
2687
2687
  name:
2688
2688
  type: string
2689
+ minLength: 1
2689
2690
  value:
2690
2691
  type: string
2691
- minLength: 1
2692
- description: Plain string value only. valueFrom is not supported.
2692
+ description: Literal string; optional values may be empty. valueFrom is unsupported.
2693
2693
  ioQuantity:
2694
2694
  description: IO Quantity describes IOPS and BPS of a volume
2695
2695
  properties:
@@ -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
  */
@@ -27,7 +27,7 @@ export interface InstanceTemplateCreateEnvInner {
27
27
  */
28
28
  'name': string;
29
29
  /**
30
- * Plain string value only. valueFrom is not supported.
30
+ * Literal string; optional values may be empty. valueFrom is unsupported.
31
31
  * @type {string}
32
32
  * @memberof InstanceTemplateCreateEnvInner
33
33
  */
@@ -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
  */
@@ -54,7 +54,7 @@ export interface InstanceTemplateCreate {
54
54
  */
55
55
  'storageClass'?: string;
56
56
  /**
57
- * Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
57
+ * Declared env overrides. Names must be unique; defaults apply only to omitted variables.
58
58
  * @type {Array<InstanceTemplateCreateEnvInner>}
59
59
  * @memberof InstanceTemplateCreate
60
60
  */
@@ -18,7 +18,7 @@
18
18
  import type { LocalizedDescription } from './localized-description';
19
19
 
20
20
  /**
21
- * One fillable env var on an instance template, for frontend rendering.
21
+ * Allowed template env variable and its input constraints.
22
22
  * @export
23
23
  * @interface InstanceTemplateEnv
24
24
  */
@@ -42,13 +42,13 @@ export interface InstanceTemplateEnv {
42
42
  */
43
43
  'description'?: LocalizedDescription;
44
44
  /**
45
- * If true, the frontend should treat this env as required. Create does not re-check.
45
+ * Requires a non-blank value after applying the default.
46
46
  * @type {boolean}
47
47
  * @memberof InstanceTemplateEnv
48
48
  */
49
49
  'required'?: boolean;
50
50
  /**
51
- * Default value shown by the frontend.
51
+ * Used only when the variable is omitted.
52
52
  * @type {string}
53
53
  * @memberof InstanceTemplateEnv
54
54
  */
@@ -42,13 +42,13 @@ export interface ModeComponentInstanceTemplate {
42
42
  */
43
43
  'ops': Array<InstanceTemplateOp>;
44
44
  /**
45
- * Heterogeneous attributes the frontend should render on each instance template at create. Omitted or empty means only name and replicas. Create overlays the request onto the chart and does not re-check this list.
45
+ * Template UI attributes. Env overrides require env to be enabled.
46
46
  * @type {Set<InstanceTemplateAttribute>}
47
47
  * @memberof ModeComponentInstanceTemplate
48
48
  */
49
49
  'attributes'?: Set<InstanceTemplateAttribute>;
50
50
  /**
51
- * Env vars the frontend may render when attributes includes env. Create does not re-check this list.
51
+ * Allowed env variables, with defaults and required checks applied before persistence.
52
52
  * @type {Array<InstanceTemplateEnv>}
53
53
  * @memberof ModeComponentInstanceTemplate
54
54
  */
@@ -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,13 +30508,13 @@ 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.
30515
30515
  env:
30516
30516
  type: array
30517
- description: Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
30517
+ description: Declared env overrides. Names must be unique; defaults apply only to omitted variables.
30518
30518
  items:
30519
30519
  type: object
30520
30520
  required:
@@ -30523,10 +30523,10 @@ components:
30523
30523
  properties:
30524
30524
  name:
30525
30525
  type: string
30526
+ minLength: 1
30526
30527
  value:
30527
30528
  type: string
30528
- minLength: 1
30529
- description: Plain string value only. valueFrom is not supported.
30529
+ description: Literal string; optional values may be empty. valueFrom is unsupported.
30530
30530
  ioQuantity:
30531
30531
  description: IO Quantity describes IOPS and BPS of a volume
30532
30532
  properties:
@@ -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
@@ -38955,7 +38955,7 @@ components:
38955
38955
  x-nullable: false
38956
38956
  placementScope:
38957
38957
  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.
38958
+ 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
38959
  enum:
38960
38960
  - cluster
38961
38961
  - component
@@ -38982,7 +38982,7 @@ components:
38982
38982
  - storageClass
38983
38983
  instanceTemplateEnv:
38984
38984
  type: object
38985
- description: One fillable env var on an instance template, for frontend rendering.
38985
+ description: Allowed template env variable and its input constraints.
38986
38986
  required:
38987
38987
  - name
38988
38988
  properties:
@@ -38996,10 +38996,10 @@ components:
38996
38996
  $ref: '#/components/schemas/localizedDescription'
38997
38997
  required:
38998
38998
  type: boolean
38999
- description: If true, the frontend should treat this env as required. Create does not re-check.
38999
+ description: Requires a non-blank value after applying the default.
39000
39000
  default:
39001
39001
  type: string
39002
- description: Default value shown by the frontend.
39002
+ description: Used only when the variable is omitted.
39003
39003
  modeReadonlyEndpoint:
39004
39004
  type: object
39005
39005
  required:
@@ -39056,16 +39056,10 @@ components:
39056
39056
  uniqueItems: true
39057
39057
  items:
39058
39058
  $ref: '#/components/schemas/instanceTemplateAttribute'
39059
- description: |
39060
- Heterogeneous attributes the frontend should render on each
39061
- instance template at create. Omitted or empty means only name
39062
- and replicas. Create overlays the request onto the chart and
39063
- does not re-check this list.
39059
+ description: Template UI attributes. Env overrides require env to be enabled.
39064
39060
  env:
39065
39061
  type: array
39066
- description: |
39067
- Env vars the frontend may render when attributes includes env.
39068
- Create does not re-check this list.
39062
+ description: Allowed env variables, with defaults and required checks applied before persistence.
39069
39063
  items:
39070
39064
  $ref: '#/components/schemas/instanceTemplateEnv'
39071
39065
  serviceRef: