kb-cloud-client-typescript 0.0.0-support-instance-template-ops.20260920.824 → 0.0.0-support-instance-template-ops.20260920.902

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 (27) hide show
  1. package/dist/adminapi/models/component-item-create.d.ts +1 -1
  2. package/dist/adminapi/models/instance-template-create.d.ts +9 -1
  3. package/dist/adminapi/models/instance-template-create.d.ts.map +1 -1
  4. package/dist/adminapi/models/instance-template-overlay-field.d.ts +1 -0
  5. package/dist/adminapi/models/instance-template-overlay-field.d.ts.map +1 -1
  6. package/dist/adminapi/models/instance-template-overlay-field.js +2 -1
  7. package/dist/adminapi/models/instance-template-overlay-field.js.map +1 -1
  8. package/dist/adminapi/models/mode-component-instance-template.d.ts +2 -2
  9. package/dist/openapi/models/component-item-create.d.ts +1 -1
  10. package/dist/openapi/models/instance-template-create.d.ts +9 -1
  11. package/dist/openapi/models/instance-template-create.d.ts.map +1 -1
  12. package/dist/openapi/models/instance-template-overlay-field.d.ts +1 -0
  13. package/dist/openapi/models/instance-template-overlay-field.d.ts.map +1 -1
  14. package/dist/openapi/models/instance-template-overlay-field.js +2 -1
  15. package/dist/openapi/models/instance-template-overlay-field.js.map +1 -1
  16. package/dist/openapi/models/mode-component-instance-template.d.ts +2 -2
  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.ts +7 -1
  20. package/src/adminapi/models/instance-template-overlay-field.ts +2 -1
  21. package/src/adminapi/models/mode-component-instance-template.ts +2 -2
  22. package/src/adminapi.yaml +13 -5
  23. package/src/openapi/models/component-item-create.ts +1 -1
  24. package/src/openapi/models/instance-template-create.ts +7 -1
  25. package/src/openapi/models/instance-template-overlay-field.ts +2 -1
  26. package/src/openapi/models/mode-component-instance-template.ts +2 -2
  27. package/src/openapi.yaml +13 -5
@@ -37,7 +37,7 @@ export interface ComponentItemCreate {
37
37
  */
38
38
  'replicas'?: number | null;
39
39
  /**
40
- * Per-template replicas and optional overlays (classCode, storageClass, availabilityZone, env, annotations). Node group is cluster-level and inherited by every component and template. Required when the engine option declares instanceTemplate. Names must match instanceTemplate.names exactly. classCode and volumes on the component are copied onto each template; the apiserver does not even-split replicas.
40
+ * Per-template replicas and optional overlays (classCode, storageClass, availabilityZone, env, annotations, labels). Node group is cluster-level and inherited. Required when the engine option declares instanceTemplate. Request instances fully replace the Helm chart instances list. Names must be in instanceTemplate.names. Component replicas must equal the sum of these replica counts.
41
41
  * @type {Array<InstanceTemplateCreate>}
42
42
  * @memberof ComponentItemCreate
43
43
  */
@@ -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. classCode, storageClass, availabilityZone, env, and annotations are optional overlays; omitted fields inherit the component. Node group is cluster-level and is inherited by every component and template. Volume sizes are defined once on the component and copied onto each template.
14
+ * Create assignment for one instance template. name and replicas are required. classCode, storageClass, availabilityZone, env, annotations, and labels are optional overlays; omitted fields inherit the component. Node group is cluster-level. Volume sizes are defined once on the component and copied onto each template. The request list fully replaces chart instances.
15
15
  * @export
16
16
  * @interface InstanceTemplateCreate
17
17
  */
@@ -60,5 +60,13 @@ export interface InstanceTemplateCreate {
60
60
  'annotations'?: {
61
61
  [key: string]: string;
62
62
  };
63
+ /**
64
+ * Labels merged into this template (same-name keys overwritten).
65
+ * @type {{ [key: string]: string; }}
66
+ * @memberof InstanceTemplateCreate
67
+ */
68
+ 'labels'?: {
69
+ [key: string]: string;
70
+ };
63
71
  }
64
72
  //# sourceMappingURL=instance-template-create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instance-template-create.d.ts","sourceRoot":"","sources":["../../../src/adminapi/models/instance-template-create.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAE3F;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAC9C;;;;OAIG;IACH,aAAa,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;CAC9C"}
1
+ {"version":3,"file":"instance-template-create.d.ts","sourceRoot":"","sources":["../../../src/adminapi/models/instance-template-create.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAE3F;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAC9C;;;;OAIG;IACH,aAAa,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;CACzC"}
@@ -20,6 +20,7 @@ export declare const InstanceTemplateOverlayField: {
20
20
  readonly availabilityZone: "availabilityZone";
21
21
  readonly env: "env";
22
22
  readonly annotations: "annotations";
23
+ readonly labels: "labels";
23
24
  };
24
25
  export type InstanceTemplateOverlayField = typeof InstanceTemplateOverlayField[keyof typeof InstanceTemplateOverlayField];
25
26
  //# sourceMappingURL=instance-template-overlay-field.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instance-template-overlay-field.d.ts","sourceRoot":"","sources":["../../../src/adminapi/models/instance-template-overlay-field.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,4BAA4B;;;;;;CAM/B,CAAC;AAEX,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC"}
1
+ {"version":3,"file":"instance-template-overlay-field.d.ts","sourceRoot":"","sources":["../../../src/adminapi/models/instance-template-overlay-field.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,4BAA4B;;;;;;;CAO/B,CAAC;AAEX,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC"}
@@ -24,6 +24,7 @@ exports.InstanceTemplateOverlayField = {
24
24
  storageClass: 'storageClass',
25
25
  availabilityZone: 'availabilityZone',
26
26
  env: 'env',
27
- annotations: 'annotations'
27
+ annotations: 'annotations',
28
+ labels: 'labels'
28
29
  };
29
30
  //# sourceMappingURL=instance-template-overlay-field.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"instance-template-overlay-field.js","sourceRoot":"","sources":["../../../src/adminapi/models/instance-template-overlay-field.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,4BAA4B,GAAG;IACxC,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;IAC5B,gBAAgB,EAAE,kBAAkB;IACpC,GAAG,EAAE,KAAK;IACV,WAAW,EAAE,aAAa;CACpB,CAAC"}
1
+ {"version":3,"file":"instance-template-overlay-field.js","sourceRoot":"","sources":["../../../src/adminapi/models/instance-template-overlay-field.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,4BAA4B,GAAG;IACxC,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;IAC5B,gBAAgB,EAAE,kBAAkB;IACpC,GAAG,EAAE,KAAK;IACV,WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE,QAAQ;CACV,CAAC"}
@@ -19,7 +19,7 @@ import type { InstanceTemplateOverlayField } from './instance-template-overlay-f
19
19
  */
20
20
  export interface ModeComponentInstanceTemplate {
21
21
  /**
22
- * Declared instance template names. Request payloads may only use these names. Names must be unique.
22
+ * Allowed instance template names for create and ops payloads. Request names must be in this list. Create builds spec.instances from the request and replaces the chart-rendered list.
23
23
  * @type {Set<string>}
24
24
  * @memberof ModeComponentInstanceTemplate
25
25
  */
@@ -31,7 +31,7 @@ export interface ModeComponentInstanceTemplate {
31
31
  */
32
32
  'ops': Array<InstanceTemplateOp>;
33
33
  /**
34
- * Overlay fields the frontend should render on each instance template. Omitted or empty means only name and replicas. Request fields not listed here are rejected.
34
+ * Overlay fields the frontend should render on each instance template. Omitted or empty means only name and replicas. Request fields not listed here are rejected. Includes classCode, storageClass, availabilityZone, env, annotations, labels.
35
35
  * @type {Set<InstanceTemplateOverlayField>}
36
36
  * @memberof ModeComponentInstanceTemplate
37
37
  */
@@ -37,7 +37,7 @@ export interface ComponentItemCreate {
37
37
  */
38
38
  'replicas'?: number | null;
39
39
  /**
40
- * Per-template replicas and optional overlays (classCode, storageClass, availabilityZone, env, annotations). Node group is cluster-level and inherited by every component and template. Required when the engine option declares instanceTemplate. Names must match instanceTemplate.names exactly. classCode and volumes on the component are copied onto each template; the apiserver does not even-split replicas.
40
+ * Per-template replicas and optional overlays (classCode, storageClass, availabilityZone, env, annotations, labels). Node group is cluster-level and inherited. Required when the engine option declares instanceTemplate. Request instances fully replace the Helm chart instances list. Names must be in instanceTemplate.names. Component replicas must equal the sum of these replica counts.
41
41
  * @type {Array<InstanceTemplateCreate>}
42
42
  * @memberof ComponentItemCreate
43
43
  */
@@ -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. classCode, storageClass, availabilityZone, env, and annotations are optional overlays; omitted fields inherit the component. Node group is cluster-level and is inherited by every component and template. Volume sizes are defined once on the component and copied onto each template.
14
+ * Create assignment for one instance template. name and replicas are required. classCode, storageClass, availabilityZone, env, annotations, and labels are optional overlays; omitted fields inherit the component. Node group is cluster-level. Volume sizes are defined once on the component and copied onto each template. The request list fully replaces chart instances.
15
15
  * @export
16
16
  * @interface InstanceTemplateCreate
17
17
  */
@@ -60,5 +60,13 @@ export interface InstanceTemplateCreate {
60
60
  'annotations'?: {
61
61
  [key: string]: string;
62
62
  };
63
+ /**
64
+ * Labels merged into this template (same-name keys overwritten).
65
+ * @type {{ [key: string]: string; }}
66
+ * @memberof InstanceTemplateCreate
67
+ */
68
+ 'labels'?: {
69
+ [key: string]: string;
70
+ };
63
71
  }
64
72
  //# sourceMappingURL=instance-template-create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instance-template-create.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-create.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAE3F;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAC9C;;;;OAIG;IACH,aAAa,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;CAC9C"}
1
+ {"version":3,"file":"instance-template-create.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-create.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAE3F;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,8BAA8B,CAAC,CAAC;IAC9C;;;;OAIG;IACH,aAAa,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;CACzC"}
@@ -20,6 +20,7 @@ export declare const InstanceTemplateOverlayField: {
20
20
  readonly availabilityZone: "availabilityZone";
21
21
  readonly env: "env";
22
22
  readonly annotations: "annotations";
23
+ readonly labels: "labels";
23
24
  };
24
25
  export type InstanceTemplateOverlayField = typeof InstanceTemplateOverlayField[keyof typeof InstanceTemplateOverlayField];
25
26
  //# sourceMappingURL=instance-template-overlay-field.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instance-template-overlay-field.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-overlay-field.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,4BAA4B;;;;;;CAM/B,CAAC;AAEX,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC"}
1
+ {"version":3,"file":"instance-template-overlay-field.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-overlay-field.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,4BAA4B;;;;;;;CAO/B,CAAC;AAEX,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC"}
@@ -24,6 +24,7 @@ exports.InstanceTemplateOverlayField = {
24
24
  storageClass: 'storageClass',
25
25
  availabilityZone: 'availabilityZone',
26
26
  env: 'env',
27
- annotations: 'annotations'
27
+ annotations: 'annotations',
28
+ labels: 'labels'
28
29
  };
29
30
  //# sourceMappingURL=instance-template-overlay-field.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"instance-template-overlay-field.js","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-overlay-field.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,4BAA4B,GAAG;IACxC,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;IAC5B,gBAAgB,EAAE,kBAAkB;IACpC,GAAG,EAAE,KAAK;IACV,WAAW,EAAE,aAAa;CACpB,CAAC"}
1
+ {"version":3,"file":"instance-template-overlay-field.js","sourceRoot":"","sources":["../../../src/openapi/models/instance-template-overlay-field.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH;;;;GAIG;AAEU,QAAA,4BAA4B,GAAG;IACxC,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;IAC5B,gBAAgB,EAAE,kBAAkB;IACpC,GAAG,EAAE,KAAK;IACV,WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE,QAAQ;CACV,CAAC"}
@@ -19,7 +19,7 @@ import type { InstanceTemplateOverlayField } from './instance-template-overlay-f
19
19
  */
20
20
  export interface ModeComponentInstanceTemplate {
21
21
  /**
22
- * Declared instance template names. Request payloads may only use these names. Names must be unique.
22
+ * Allowed instance template names for create and ops payloads. Request names must be in this list. Create builds spec.instances from the request and replaces the chart-rendered list.
23
23
  * @type {Set<string>}
24
24
  * @memberof ModeComponentInstanceTemplate
25
25
  */
@@ -31,7 +31,7 @@ export interface ModeComponentInstanceTemplate {
31
31
  */
32
32
  'ops': Array<InstanceTemplateOp>;
33
33
  /**
34
- * Overlay fields the frontend should render on each instance template. Omitted or empty means only name and replicas. Request fields not listed here are rejected.
34
+ * Overlay fields the frontend should render on each instance template. Omitted or empty means only name and replicas. Request fields not listed here are rejected. Includes classCode, storageClass, availabilityZone, env, annotations, labels.
35
35
  * @type {Set<InstanceTemplateOverlayField>}
36
36
  * @memberof ModeComponentInstanceTemplate
37
37
  */
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-ops.20260920.824",
3
+ "version": "0.0.0-support-instance-template-ops.20260920.902",
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
  'replicas'?: number | null;
50
50
  /**
51
- * Per-template replicas and optional overlays (classCode, storageClass, availabilityZone, env, annotations). Node group is cluster-level and inherited by every component and template. Required when the engine option declares instanceTemplate. Names must match instanceTemplate.names exactly. classCode and volumes on the component are copied onto each template; the apiserver does not even-split replicas.
51
+ * Per-template replicas and optional overlays (classCode, storageClass, availabilityZone, env, annotations, labels). Node group is cluster-level and inherited. Required when the engine option declares instanceTemplate. Request instances fully replace the Helm chart instances list. Names must be in instanceTemplate.names. Component replicas must equal the sum of these replica counts.
52
52
  * @type {Array<InstanceTemplateCreate>}
53
53
  * @memberof ComponentItemCreate
54
54
  */
@@ -18,7 +18,7 @@
18
18
  import type { InstanceTemplateCreateEnvInner } from './instance-template-create-env-inner';
19
19
 
20
20
  /**
21
- * Create assignment for one instance template. name and replicas are required. classCode, storageClass, availabilityZone, env, and annotations are optional overlays; omitted fields inherit the component. Node group is cluster-level and is inherited by every component and template. Volume sizes are defined once on the component and copied onto each template.
21
+ * Create assignment for one instance template. name and replicas are required. classCode, storageClass, availabilityZone, env, annotations, and labels are optional overlays; omitted fields inherit the component. Node group is cluster-level. Volume sizes are defined once on the component and copied onto each template. The request list fully replaces chart instances.
22
22
  * @export
23
23
  * @interface InstanceTemplateCreate
24
24
  */
@@ -65,5 +65,11 @@ export interface InstanceTemplateCreate {
65
65
  * @memberof InstanceTemplateCreate
66
66
  */
67
67
  'annotations'?: { [key: string]: string; };
68
+ /**
69
+ * Labels merged into this template (same-name keys overwritten).
70
+ * @type {{ [key: string]: string; }}
71
+ * @memberof InstanceTemplateCreate
72
+ */
73
+ 'labels'?: { [key: string]: string; };
68
74
  }
69
75
 
@@ -25,7 +25,8 @@ export const InstanceTemplateOverlayField = {
25
25
  storageClass: 'storageClass',
26
26
  availabilityZone: 'availabilityZone',
27
27
  env: 'env',
28
- annotations: 'annotations'
28
+ annotations: 'annotations',
29
+ labels: 'labels'
29
30
  } as const;
30
31
 
31
32
  export type InstanceTemplateOverlayField = typeof InstanceTemplateOverlayField[keyof typeof InstanceTemplateOverlayField];
@@ -30,7 +30,7 @@ import type { InstanceTemplateOverlayField } from './instance-template-overlay-f
30
30
  */
31
31
  export interface ModeComponentInstanceTemplate {
32
32
  /**
33
- * Declared instance template names. Request payloads may only use these names. Names must be unique.
33
+ * Allowed instance template names for create and ops payloads. Request names must be in this list. Create builds spec.instances from the request and replaces the chart-rendered list.
34
34
  * @type {Set<string>}
35
35
  * @memberof ModeComponentInstanceTemplate
36
36
  */
@@ -42,7 +42,7 @@ export interface ModeComponentInstanceTemplate {
42
42
  */
43
43
  'ops': Array<InstanceTemplateOp>;
44
44
  /**
45
- * Overlay fields the frontend should render on each instance template. Omitted or empty means only name and replicas. Request fields not listed here are rejected.
45
+ * Overlay fields the frontend should render on each instance template. Omitted or empty means only name and replicas. Request fields not listed here are rejected. Includes classCode, storageClass, availabilityZone, env, annotations, labels.
46
46
  * @type {Set<InstanceTemplateOverlayField>}
47
47
  * @memberof ModeComponentInstanceTemplate
48
48
  */
package/src/adminapi.yaml CHANGED
@@ -28950,7 +28950,7 @@ components:
28950
28950
  instanceTemplateCreate:
28951
28951
  type: object
28952
28952
  description: |
28953
- Create assignment for one instance template. name and replicas are required. classCode, storageClass, availabilityZone, env, and annotations are optional overlays; omitted fields inherit the component. Node group is cluster-level and is inherited by every component and template. Volume sizes are defined once on the component and copied onto each template.
28953
+ Create assignment for one instance template. name and replicas are required. classCode, storageClass, availabilityZone, env, annotations, and labels are optional overlays; omitted fields inherit the component. Node group is cluster-level. Volume sizes are defined once on the component and copied onto each template. The request list fully replaces chart instances.
28954
28954
  required:
28955
28955
  - name
28956
28956
  - replicas
@@ -28989,6 +28989,11 @@ components:
28989
28989
  additionalProperties:
28990
28990
  type: string
28991
28991
  description: Annotations merged into this template (same-name keys overwritten).
28992
+ labels:
28993
+ type: object
28994
+ additionalProperties:
28995
+ type: string
28996
+ description: Labels merged into this template (same-name keys overwritten).
28992
28997
  ioQuantity:
28993
28998
  description: IO Quantity describes IOPS and BPS of a volume
28994
28999
  properties:
@@ -29076,7 +29081,7 @@ components:
29076
29081
  instanceTemplates:
29077
29082
  type: array
29078
29083
  minItems: 1
29079
- description: Per-template replicas and optional overlays (classCode, storageClass, availabilityZone, env, annotations). Node group is cluster-level and inherited by every component and template. Required when the engine option declares instanceTemplate. Names must match instanceTemplate.names exactly. classCode and volumes on the component are copied onto each template; the apiserver does not even-split replicas.
29084
+ description: Per-template replicas and optional overlays (classCode, storageClass, availabilityZone, env, annotations, labels). Node group is cluster-level and inherited. Required when the engine option declares instanceTemplate. Request instances fully replace the Helm chart instances list. Names must be in instanceTemplate.names. Component replicas must equal the sum of these replica counts.
29080
29085
  items:
29081
29086
  $ref: '#/components/schemas/instanceTemplateCreate'
29082
29087
  availabilityZone:
@@ -38248,6 +38253,7 @@ components:
38248
38253
  - availabilityZone
38249
38254
  - env
38250
38255
  - annotations
38256
+ - labels
38251
38257
  instanceTemplateEnv:
38252
38258
  type: object
38253
38259
  description: One fillable env var on an instance template, for frontend rendering.
@@ -38311,8 +38317,9 @@ components:
38311
38317
  items:
38312
38318
  type: string
38313
38319
  description: |
38314
- Declared instance template names. Request payloads may only use
38315
- these names. Names must be unique.
38320
+ Allowed instance template names for create and ops payloads.
38321
+ Request names must be in this list. Create builds spec.instances
38322
+ from the request and replaces the chart-rendered list.
38316
38323
  ops:
38317
38324
  type: array
38318
38325
  minItems: 1
@@ -38329,7 +38336,8 @@ components:
38329
38336
  description: |
38330
38337
  Overlay fields the frontend should render on each instance template.
38331
38338
  Omitted or empty means only name and replicas. Request fields not
38332
- listed here are rejected.
38339
+ listed here are rejected. Includes classCode, storageClass,
38340
+ availabilityZone, env, annotations, labels.
38333
38341
  env:
38334
38342
  type: array
38335
38343
  description: |
@@ -48,7 +48,7 @@ export interface ComponentItemCreate {
48
48
  */
49
49
  'replicas'?: number | null;
50
50
  /**
51
- * Per-template replicas and optional overlays (classCode, storageClass, availabilityZone, env, annotations). Node group is cluster-level and inherited by every component and template. Required when the engine option declares instanceTemplate. Names must match instanceTemplate.names exactly. classCode and volumes on the component are copied onto each template; the apiserver does not even-split replicas.
51
+ * Per-template replicas and optional overlays (classCode, storageClass, availabilityZone, env, annotations, labels). Node group is cluster-level and inherited. Required when the engine option declares instanceTemplate. Request instances fully replace the Helm chart instances list. Names must be in instanceTemplate.names. Component replicas must equal the sum of these replica counts.
52
52
  * @type {Array<InstanceTemplateCreate>}
53
53
  * @memberof ComponentItemCreate
54
54
  */
@@ -18,7 +18,7 @@
18
18
  import type { InstanceTemplateCreateEnvInner } from './instance-template-create-env-inner';
19
19
 
20
20
  /**
21
- * Create assignment for one instance template. name and replicas are required. classCode, storageClass, availabilityZone, env, and annotations are optional overlays; omitted fields inherit the component. Node group is cluster-level and is inherited by every component and template. Volume sizes are defined once on the component and copied onto each template.
21
+ * Create assignment for one instance template. name and replicas are required. classCode, storageClass, availabilityZone, env, annotations, and labels are optional overlays; omitted fields inherit the component. Node group is cluster-level. Volume sizes are defined once on the component and copied onto each template. The request list fully replaces chart instances.
22
22
  * @export
23
23
  * @interface InstanceTemplateCreate
24
24
  */
@@ -65,5 +65,11 @@ export interface InstanceTemplateCreate {
65
65
  * @memberof InstanceTemplateCreate
66
66
  */
67
67
  'annotations'?: { [key: string]: string; };
68
+ /**
69
+ * Labels merged into this template (same-name keys overwritten).
70
+ * @type {{ [key: string]: string; }}
71
+ * @memberof InstanceTemplateCreate
72
+ */
73
+ 'labels'?: { [key: string]: string; };
68
74
  }
69
75
 
@@ -25,7 +25,8 @@ export const InstanceTemplateOverlayField = {
25
25
  storageClass: 'storageClass',
26
26
  availabilityZone: 'availabilityZone',
27
27
  env: 'env',
28
- annotations: 'annotations'
28
+ annotations: 'annotations',
29
+ labels: 'labels'
29
30
  } as const;
30
31
 
31
32
  export type InstanceTemplateOverlayField = typeof InstanceTemplateOverlayField[keyof typeof InstanceTemplateOverlayField];
@@ -30,7 +30,7 @@ import type { InstanceTemplateOverlayField } from './instance-template-overlay-f
30
30
  */
31
31
  export interface ModeComponentInstanceTemplate {
32
32
  /**
33
- * Declared instance template names. Request payloads may only use these names. Names must be unique.
33
+ * Allowed instance template names for create and ops payloads. Request names must be in this list. Create builds spec.instances from the request and replaces the chart-rendered list.
34
34
  * @type {Set<string>}
35
35
  * @memberof ModeComponentInstanceTemplate
36
36
  */
@@ -42,7 +42,7 @@ export interface ModeComponentInstanceTemplate {
42
42
  */
43
43
  'ops': Array<InstanceTemplateOp>;
44
44
  /**
45
- * Overlay fields the frontend should render on each instance template. Omitted or empty means only name and replicas. Request fields not listed here are rejected.
45
+ * Overlay fields the frontend should render on each instance template. Omitted or empty means only name and replicas. Request fields not listed here are rejected. Includes classCode, storageClass, availabilityZone, env, annotations, labels.
46
46
  * @type {Set<InstanceTemplateOverlayField>}
47
47
  * @memberof ModeComponentInstanceTemplate
48
48
  */
package/src/openapi.yaml CHANGED
@@ -24612,7 +24612,7 @@ components:
24612
24612
  instanceTemplateCreate:
24613
24613
  type: object
24614
24614
  description: |
24615
- Create assignment for one instance template. name and replicas are required. classCode, storageClass, availabilityZone, env, and annotations are optional overlays; omitted fields inherit the component. Node group is cluster-level and is inherited by every component and template. Volume sizes are defined once on the component and copied onto each template.
24615
+ Create assignment for one instance template. name and replicas are required. classCode, storageClass, availabilityZone, env, annotations, and labels are optional overlays; omitted fields inherit the component. Node group is cluster-level. Volume sizes are defined once on the component and copied onto each template. The request list fully replaces chart instances.
24616
24616
  required:
24617
24617
  - name
24618
24618
  - replicas
@@ -24651,6 +24651,11 @@ components:
24651
24651
  additionalProperties:
24652
24652
  type: string
24653
24653
  description: Annotations merged into this template (same-name keys overwritten).
24654
+ labels:
24655
+ type: object
24656
+ additionalProperties:
24657
+ type: string
24658
+ description: Labels merged into this template (same-name keys overwritten).
24654
24659
  ioQuantity:
24655
24660
  description: IO Quantity describes IOPS and BPS of a volume
24656
24661
  properties:
@@ -24733,7 +24738,7 @@ components:
24733
24738
  instanceTemplates:
24734
24739
  type: array
24735
24740
  minItems: 1
24736
- description: Per-template replicas and optional overlays (classCode, storageClass, availabilityZone, env, annotations). Node group is cluster-level and inherited by every component and template. Required when the engine option declares instanceTemplate. Names must match instanceTemplate.names exactly. classCode and volumes on the component are copied onto each template; the apiserver does not even-split replicas.
24741
+ description: Per-template replicas and optional overlays (classCode, storageClass, availabilityZone, env, annotations, labels). Node group is cluster-level and inherited. Required when the engine option declares instanceTemplate. Request instances fully replace the Helm chart instances list. Names must be in instanceTemplate.names. Component replicas must equal the sum of these replica counts.
24737
24742
  items:
24738
24743
  $ref: '#/components/schemas/instanceTemplateCreate'
24739
24744
  availabilityZone:
@@ -31869,6 +31874,7 @@ components:
31869
31874
  - availabilityZone
31870
31875
  - env
31871
31876
  - annotations
31877
+ - labels
31872
31878
  instanceTemplateEnv:
31873
31879
  type: object
31874
31880
  description: One fillable env var on an instance template, for frontend rendering.
@@ -31932,8 +31938,9 @@ components:
31932
31938
  items:
31933
31939
  type: string
31934
31940
  description: |
31935
- Declared instance template names. Request payloads may only use
31936
- these names. Names must be unique.
31941
+ Allowed instance template names for create and ops payloads.
31942
+ Request names must be in this list. Create builds spec.instances
31943
+ from the request and replaces the chart-rendered list.
31937
31944
  ops:
31938
31945
  type: array
31939
31946
  minItems: 1
@@ -31950,7 +31957,8 @@ components:
31950
31957
  description: |
31951
31958
  Overlay fields the frontend should render on each instance template.
31952
31959
  Omitted or empty means only name and replicas. Request fields not
31953
- listed here are rejected.
31960
+ listed here are rejected. Includes classCode, storageClass,
31961
+ availabilityZone, env, annotations, labels.
31954
31962
  env:
31955
31963
  type: array
31956
31964
  description: |