kb-cloud-client-typescript 2.3.84 → 2.3.85

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 (58) hide show
  1. package/dist/adminapi/apis/alert-object-api.d.ts +26 -2
  2. package/dist/adminapi/apis/alert-object-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/alert-object-api.js +20 -5
  4. package/dist/adminapi/apis/alert-object-api.js.map +1 -1
  5. package/dist/adminapi/models/component-item-create.d.ts +2 -2
  6. package/dist/adminapi/models/component-item.d.ts +1 -1
  7. package/dist/adminapi/models/instance-template-attribute.d.ts +0 -2
  8. package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -1
  9. package/dist/adminapi/models/instance-template-attribute.js +0 -2
  10. package/dist/adminapi/models/instance-template-attribute.js.map +1 -1
  11. package/dist/adminapi/models/instance-template-create-env-inner.d.ts +1 -1
  12. package/dist/adminapi/models/instance-template-create.d.ts +3 -19
  13. package/dist/adminapi/models/instance-template-create.d.ts.map +1 -1
  14. package/dist/adminapi/models/instance-template-env.d.ts +3 -3
  15. package/dist/adminapi/models/mode-component-instance-template.d.ts +2 -2
  16. package/dist/adminapi/models/placement-scope.d.ts +1 -1
  17. package/dist/adminapi/models/placement-scope.js +1 -1
  18. package/dist/internalapi/models/component-item.d.ts +1 -1
  19. package/dist/internalapi/models/instance-template-create-env-inner.d.ts +1 -1
  20. package/dist/internalapi/models/instance-template-create.d.ts +3 -19
  21. package/dist/internalapi/models/instance-template-create.d.ts.map +1 -1
  22. package/dist/openapi/models/component-item-create.d.ts +2 -2
  23. package/dist/openapi/models/component-item.d.ts +1 -1
  24. package/dist/openapi/models/instance-template-attribute.d.ts +0 -2
  25. package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -1
  26. package/dist/openapi/models/instance-template-attribute.js +0 -2
  27. package/dist/openapi/models/instance-template-attribute.js.map +1 -1
  28. package/dist/openapi/models/instance-template-create-env-inner.d.ts +1 -1
  29. package/dist/openapi/models/instance-template-create.d.ts +3 -19
  30. package/dist/openapi/models/instance-template-create.d.ts.map +1 -1
  31. package/dist/openapi/models/instance-template-env.d.ts +3 -3
  32. package/dist/openapi/models/mode-component-instance-template.d.ts +2 -2
  33. package/dist/openapi/models/placement-scope.d.ts +1 -1
  34. package/dist/openapi/models/placement-scope.js +1 -1
  35. package/package.json +1 -1
  36. package/src/adminapi/apis/alert-object-api.ts +44 -5
  37. package/src/adminapi/models/component-item-create.ts +2 -2
  38. package/src/adminapi/models/component-item.ts +1 -1
  39. package/src/adminapi/models/instance-template-attribute.ts +0 -2
  40. package/src/adminapi/models/instance-template-create-env-inner.ts +1 -1
  41. package/src/adminapi/models/instance-template-create.ts +3 -15
  42. package/src/adminapi/models/instance-template-env.ts +3 -3
  43. package/src/adminapi/models/mode-component-instance-template.ts +2 -2
  44. package/src/adminapi/models/placement-scope.ts +1 -1
  45. package/src/adminapi.yaml +32 -32
  46. package/src/internalapi/models/component-item.ts +1 -1
  47. package/src/internalapi/models/instance-template-create-env-inner.ts +1 -1
  48. package/src/internalapi/models/instance-template-create.ts +3 -15
  49. package/src/internalapi.yaml +6 -16
  50. package/src/openapi/models/component-item-create.ts +2 -2
  51. package/src/openapi/models/component-item.ts +1 -1
  52. package/src/openapi/models/instance-template-attribute.ts +0 -2
  53. package/src/openapi/models/instance-template-create-env-inner.ts +1 -1
  54. package/src/openapi/models/instance-template-create.ts +3 -15
  55. package/src/openapi/models/instance-template-env.ts +3 -3
  56. package/src/openapi/models/mode-component-instance-template.ts +2 -2
  57. package/src/openapi/models/placement-scope.ts +1 -1
  58. package/src/openapi.yaml +14 -32
@@ -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.3.84",
3
+ "version": "2.3.85",
4
4
  "description": "Auto-generated TypeScript SDK for KubeBlocks Cloud API",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
@@ -39,10 +39,13 @@ export const AlertObjectApiAxiosParamCreator = function (configuration?: Configu
39
39
  * @param {string} [orgName] name of the Org
40
40
  * @param {number} [page] page number
41
41
  * @param {number} [pageSize] page size
42
+ * @param {string} [clusterName] filter by cluster name
43
+ * @param {string} [status] filter by alert status
44
+ * @param {string} [severity] filter by alert severity
42
45
  * @param {*} [options] Override http request option.
43
46
  * @throws {RequiredError}
44
47
  */
45
- listAlertObjects: async (orgName?: string, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
48
+ listAlertObjects: async (orgName?: string, page?: number, pageSize?: number, clusterName?: string, status?: string, severity?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
46
49
  const localVarPath = `/admin/v1/alerts/objects`;
47
50
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
51
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -74,6 +77,18 @@ export const AlertObjectApiAxiosParamCreator = function (configuration?: Configu
74
77
  localVarQueryParameter['pageSize'] = pageSize;
75
78
  }
76
79
 
80
+ if (clusterName !== undefined) {
81
+ localVarQueryParameter['clusterName'] = clusterName;
82
+ }
83
+
84
+ if (status !== undefined) {
85
+ localVarQueryParameter['status'] = status;
86
+ }
87
+
88
+ if (severity !== undefined) {
89
+ localVarQueryParameter['severity'] = severity;
90
+ }
91
+
77
92
 
78
93
 
79
94
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -197,11 +212,14 @@ export const AlertObjectApiFp = function(configuration?: Configuration) {
197
212
  * @param {string} [orgName] name of the Org
198
213
  * @param {number} [page] page number
199
214
  * @param {number} [pageSize] page size
215
+ * @param {string} [clusterName] filter by cluster name
216
+ * @param {string} [status] filter by alert status
217
+ * @param {string} [severity] filter by alert severity
200
218
  * @param {*} [options] Override http request option.
201
219
  * @throws {RequiredError}
202
220
  */
203
- async listAlertObjects(orgName?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertObjectList>> {
204
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAlertObjects(orgName, page, pageSize, options);
221
+ async listAlertObjects(orgName?: string, page?: number, pageSize?: number, clusterName?: string, status?: string, severity?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertObjectList>> {
222
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAlertObjects(orgName, page, pageSize, clusterName, status, severity, options);
205
223
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
206
224
  const localVarOperationServerBasePath = operationServerMap['AlertObjectApi.listAlertObjects']?.[localVarOperationServerIndex]?.url;
207
225
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -252,7 +270,7 @@ export const AlertObjectApiFactory = function (configuration?: Configuration, ba
252
270
  * @throws {RequiredError}
253
271
  */
254
272
  listAlertObjects(requestParameters: AlertObjectApiListAlertObjectsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<AlertObjectList> {
255
- return localVarFp.listAlertObjects(requestParameters.orgName, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
273
+ return localVarFp.listAlertObjects(requestParameters.orgName, requestParameters.page, requestParameters.pageSize, requestParameters.clusterName, requestParameters.status, requestParameters.severity, options).then((request) => request(axios, basePath));
256
274
  },
257
275
  /**
258
276
  *
@@ -341,6 +359,27 @@ export interface AlertObjectApiListAlertObjectsRequest {
341
359
  * @memberof AlertObjectApiListAlertObjects
342
360
  */
343
361
  readonly pageSize?: number
362
+
363
+ /**
364
+ * filter by cluster name
365
+ * @type {string}
366
+ * @memberof AlertObjectApiListAlertObjects
367
+ */
368
+ readonly clusterName?: string
369
+
370
+ /**
371
+ * filter by alert status
372
+ * @type {string}
373
+ * @memberof AlertObjectApiListAlertObjects
374
+ */
375
+ readonly status?: string
376
+
377
+ /**
378
+ * filter by alert severity
379
+ * @type {string}
380
+ * @memberof AlertObjectApiListAlertObjects
381
+ */
382
+ readonly severity?: string
344
383
  }
345
384
 
346
385
  /**
@@ -401,7 +440,7 @@ export class AlertObjectApi extends BaseAPI implements AlertObjectApiInterface {
401
440
  * @memberof AlertObjectApi
402
441
  */
403
442
  public listAlertObjects(requestParameters: AlertObjectApiListAlertObjectsRequest = {}, options?: RawAxiosRequestConfig) {
404
- return AlertObjectApiFp(this.configuration).listAlertObjects(requestParameters.orgName, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
443
+ return AlertObjectApiFp(this.configuration).listAlertObjects(requestParameters.orgName, requestParameters.page, requestParameters.pageSize, requestParameters.clusterName, requestParameters.status, requestParameters.severity, options).then((request) => request(this.axios, this.basePath));
405
444
  }
406
445
 
407
446
  /**
@@ -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
  */
@@ -72,7 +72,7 @@ export interface ComponentItemCreate {
72
72
  */
73
73
  'replicas'?: number;
74
74
  /**
75
- * Per-template replicas and optional overlays (env, annotations, labels, availability zone, storage class). Required when the current mode component declares instanceTemplate in engine_options; otherwise omit. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts.
75
+ * Per-template replicas and optional overlays (env, availability zone, storage class). Required when the current mode component declares instanceTemplate in engine_options; otherwise omit. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts.
76
76
  * @type {Array<InstanceTemplateCreate>}
77
77
  * @memberof ComponentItemCreate
78
78
  */
@@ -54,7 +54,7 @@ export interface ComponentItem {
54
54
  */
55
55
  'availabilityZone'?: string;
56
56
  /**
57
- * Instance template assignments with effective replicas, placement and storage class, and user-provided env, labels and annotations.
57
+ * Instance template assignments with effective replicas, placement and storage class, and user-provided env.
58
58
  * @type {Array<InstanceTemplateCreate>}
59
59
  * @memberof ComponentItem
60
60
  */
@@ -22,8 +22,6 @@
22
22
 
23
23
  export const InstanceTemplateAttribute = {
24
24
  env: 'env',
25
- annotations: 'annotations',
26
- labels: 'labels',
27
25
  storageClass: 'storageClass'
28
26
  } as const;
29
27
 
@@ -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, annotations, labels, 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,22 +54,10 @@ 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
  */
61
61
  'env'?: Array<InstanceTemplateCreateEnvInner>;
62
- /**
63
- * Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
64
- * @type {{ [key: string]: string; }}
65
- * @memberof InstanceTemplateCreate
66
- */
67
- 'annotations'?: { [key: string]: string; };
68
- /**
69
- * Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted. The apps.kubeblocks.io/instance-template label is managed by the system and must equal the template name if supplied.
70
- * @type {{ [key: string]: string; }}
71
- * @memberof InstanceTemplateCreate
72
- */
73
- 'labels'?: { [key: string]: string; };
74
62
  }
75
63
 
@@ -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
@@ -15230,6 +15230,24 @@ paths:
15230
15230
  required: false
15231
15231
  schema:
15232
15232
  type: integer
15233
+ - name: clusterName
15234
+ in: query
15235
+ description: filter by cluster name
15236
+ required: false
15237
+ schema:
15238
+ type: string
15239
+ - name: status
15240
+ in: query
15241
+ description: filter by alert status
15242
+ required: false
15243
+ schema:
15244
+ type: string
15245
+ - name: severity
15246
+ in: query
15247
+ description: filter by alert severity
15248
+ required: false
15249
+ schema:
15250
+ type: string
15233
15251
  responses:
15234
15252
  '200':
15235
15253
  description: A successful response.
@@ -31584,7 +31602,7 @@ components:
31584
31602
  instanceTemplateCreate:
31585
31603
  type: object
31586
31604
  additionalProperties: false
31587
- description: Create assignment for one instance template. name and replicas are required. env, annotations, labels, 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.
31605
+ 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.'
31588
31606
  required:
31589
31607
  - name
31590
31608
  - replicas
@@ -31602,13 +31620,13 @@ components:
31602
31620
  description: Replica count for this instance template.
31603
31621
  availabilityZone:
31604
31622
  type: string
31605
- 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.
31623
+ 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.
31606
31624
  storageClass:
31607
31625
  type: string
31608
31626
  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.
31609
31627
  env:
31610
31628
  type: array
31611
- description: Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
31629
+ description: Declared env overrides. Names must be unique; defaults apply only to omitted variables.
31612
31630
  items:
31613
31631
  type: object
31614
31632
  required:
@@ -31617,20 +31635,10 @@ components:
31617
31635
  properties:
31618
31636
  name:
31619
31637
  type: string
31638
+ minLength: 1
31620
31639
  value:
31621
31640
  type: string
31622
- minLength: 1
31623
- description: Plain string value only. valueFrom is not supported.
31624
- annotations:
31625
- type: object
31626
- additionalProperties:
31627
- type: string
31628
- description: Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
31629
- labels:
31630
- type: object
31631
- additionalProperties:
31632
- type: string
31633
- description: Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted. The apps.kubeblocks.io/instance-template label is managed by the system and must equal the template name if supplied.
31641
+ description: Literal string; optional values may be empty. valueFrom is unsupported.
31634
31642
  ioQuantity:
31635
31643
  description: IO Quantity describes IOPS and BPS of a volume
31636
31644
  properties:
@@ -31718,7 +31726,7 @@ components:
31718
31726
  description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
31719
31727
  availabilityZone:
31720
31728
  type: string
31721
- 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.
31729
+ 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.
31722
31730
  component:
31723
31731
  type: string
31724
31732
  description: component type, refer to componentDef and support NamePrefix
@@ -31733,7 +31741,7 @@ components:
31733
31741
  instanceTemplates:
31734
31742
  type: array
31735
31743
  minItems: 1
31736
- description: Per-template replicas and optional overlays (env, annotations, labels, availability zone, storage class). Required when the current mode component declares instanceTemplate in engine_options; otherwise omit. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts.
31744
+ description: Per-template replicas and optional overlays (env, availability zone, storage class). Required when the current mode component declares instanceTemplate in engine_options; otherwise omit. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts.
31737
31745
  items:
31738
31746
  $ref: '#/components/schemas/instanceTemplateCreate'
31739
31747
  skipResourceConstraints:
@@ -32076,7 +32084,7 @@ components:
32076
32084
  instanceTemplates:
32077
32085
  type: array
32078
32086
  x-omitempty: true
32079
- description: Instance template assignments with effective replicas, placement and storage class, and user-provided env, labels and annotations.
32087
+ description: Instance template assignments with effective replicas, placement and storage class, and user-provided env.
32080
32088
  items:
32081
32089
  $ref: '#/components/schemas/instanceTemplateCreate'
32082
32090
  name:
@@ -41557,7 +41565,7 @@ components:
41557
41565
  x-nullable: false
41558
41566
  placementScope:
41559
41567
  type: string
41560
- 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.
41568
+ 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.
41561
41569
  enum:
41562
41570
  - cluster
41563
41571
  - component
@@ -41581,12 +41589,10 @@ components:
41581
41589
  description: Heterogeneous attribute the frontend may render on an instance template at create.
41582
41590
  enum:
41583
41591
  - env
41584
- - annotations
41585
- - labels
41586
41592
  - storageClass
41587
41593
  instanceTemplateEnv:
41588
41594
  type: object
41589
- description: One fillable env var on an instance template, for frontend rendering.
41595
+ description: Allowed template env variable and its input constraints.
41590
41596
  required:
41591
41597
  - name
41592
41598
  properties:
@@ -41600,10 +41606,10 @@ components:
41600
41606
  $ref: '#/components/schemas/localizedDescription'
41601
41607
  required:
41602
41608
  type: boolean
41603
- description: If true, the frontend should treat this env as required. Create does not re-check.
41609
+ description: Requires a non-blank value after applying the default.
41604
41610
  default:
41605
41611
  type: string
41606
- description: Default value shown by the frontend.
41612
+ description: Used only when the variable is omitted.
41607
41613
  modeReadonlyEndpoint:
41608
41614
  type: object
41609
41615
  required:
@@ -41660,16 +41666,10 @@ components:
41660
41666
  uniqueItems: true
41661
41667
  items:
41662
41668
  $ref: '#/components/schemas/instanceTemplateAttribute'
41663
- description: |
41664
- Heterogeneous attributes the frontend should render on each
41665
- instance template at create. Omitted or empty means only name
41666
- and replicas. Create overlays the request onto the chart and
41667
- does not re-check this list.
41669
+ description: Template UI attributes. Env overrides require env to be enabled.
41668
41670
  env:
41669
41671
  type: array
41670
- description: |
41671
- Env vars the frontend may render when attributes includes env.
41672
- Create does not re-check this list.
41672
+ description: Allowed env variables, with defaults and required checks applied before persistence.
41673
41673
  items:
41674
41674
  $ref: '#/components/schemas/instanceTemplateEnv'
41675
41675
  serviceRef:
@@ -54,7 +54,7 @@ export interface ComponentItem {
54
54
  */
55
55
  'availabilityZone'?: string;
56
56
  /**
57
- * Instance template assignments with effective replicas, placement and storage class, and user-provided env, labels and annotations.
57
+ * Instance template assignments with effective replicas, placement and storage class, and user-provided env.
58
58
  * @type {Array<InstanceTemplateCreate>}
59
59
  * @memberof ComponentItem
60
60
  */
@@ -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, annotations, labels, 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,22 +54,10 @@ 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
  */
61
61
  'env'?: Array<InstanceTemplateCreateEnvInner>;
62
- /**
63
- * Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
64
- * @type {{ [key: string]: string; }}
65
- * @memberof InstanceTemplateCreate
66
- */
67
- 'annotations'?: { [key: string]: string; };
68
- /**
69
- * Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted. The apps.kubeblocks.io/instance-template label is managed by the system and must equal the template name if supplied.
70
- * @type {{ [key: string]: string; }}
71
- * @memberof InstanceTemplateCreate
72
- */
73
- 'labels'?: { [key: string]: string; };
74
62
  }
75
63
 
@@ -2494,7 +2494,7 @@ components:
2494
2494
  instanceTemplateCreate:
2495
2495
  type: object
2496
2496
  additionalProperties: false
2497
- description: Create assignment for one instance template. name and replicas are required. env, annotations, labels, 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.
2497
+ 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.'
2498
2498
  required:
2499
2499
  - name
2500
2500
  - replicas
@@ -2512,13 +2512,13 @@ components:
2512
2512
  description: Replica count for this instance template.
2513
2513
  availabilityZone:
2514
2514
  type: string
2515
- 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.
2515
+ 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.
2516
2516
  storageClass:
2517
2517
  type: string
2518
2518
  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.
2519
2519
  env:
2520
2520
  type: array
2521
- description: Simple env vars (name and value only) merged into this template. valueFrom is not supported; overlaying a name clears any chart valueFrom.
2521
+ description: Declared env overrides. Names must be unique; defaults apply only to omitted variables.
2522
2522
  items:
2523
2523
  type: object
2524
2524
  required:
@@ -2527,20 +2527,10 @@ components:
2527
2527
  properties:
2528
2528
  name:
2529
2529
  type: string
2530
+ minLength: 1
2530
2531
  value:
2531
2532
  type: string
2532
- minLength: 1
2533
- description: Plain string value only. valueFrom is not supported.
2534
- annotations:
2535
- type: object
2536
- additionalProperties:
2537
- type: string
2538
- description: Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
2539
- labels:
2540
- type: object
2541
- additionalProperties:
2542
- type: string
2543
- description: Label map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted. The apps.kubeblocks.io/instance-template label is managed by the system and must equal the template name if supplied.
2533
+ description: Literal string; optional values may be empty. valueFrom is unsupported.
2544
2534
  ioQuantity:
2545
2535
  description: IO Quantity describes IOPS and BPS of a volume
2546
2536
  properties:
@@ -2625,7 +2615,7 @@ components:
2625
2615
  instanceTemplates:
2626
2616
  type: array
2627
2617
  x-omitempty: true
2628
- description: Instance template assignments with effective replicas, placement and storage class, and user-provided env, labels and annotations.
2618
+ description: Instance template assignments with effective replicas, placement and storage class, and user-provided env.
2629
2619
  items:
2630
2620
  $ref: '#/components/schemas/instanceTemplateCreate'
2631
2621
  name:
@@ -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
  */
@@ -72,7 +72,7 @@ export interface ComponentItemCreate {
72
72
  */
73
73
  'replicas'?: number;
74
74
  /**
75
- * Per-template replicas and optional overlays (env, annotations, labels, availability zone, storage class). Required when the current mode component declares instanceTemplate in engine_options; otherwise omit. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts.
75
+ * Per-template replicas and optional overlays (env, availability zone, storage class). Required when the current mode component declares instanceTemplate in engine_options; otherwise omit. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts.
76
76
  * @type {Array<InstanceTemplateCreate>}
77
77
  * @memberof ComponentItemCreate
78
78
  */
@@ -54,7 +54,7 @@ export interface ComponentItem {
54
54
  */
55
55
  'availabilityZone'?: string;
56
56
  /**
57
- * Instance template assignments with effective replicas, placement and storage class, and user-provided env, labels and annotations.
57
+ * Instance template assignments with effective replicas, placement and storage class, and user-provided env.
58
58
  * @type {Array<InstanceTemplateCreate>}
59
59
  * @memberof ComponentItem
60
60
  */
@@ -22,8 +22,6 @@
22
22
 
23
23
  export const InstanceTemplateAttribute = {
24
24
  env: 'env',
25
- annotations: 'annotations',
26
- labels: 'labels',
27
25
  storageClass: 'storageClass'
28
26
  } as const;
29
27