kb-cloud-client-typescript 2.4.0-alpha.163 → 2.4.0-alpha.165
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adminapi/apis/alert-object-api.d.ts +26 -2
- package/dist/adminapi/apis/alert-object-api.d.ts.map +1 -1
- package/dist/adminapi/apis/alert-object-api.js +20 -5
- package/dist/adminapi/apis/alert-object-api.js.map +1 -1
- package/dist/adminapi/models/account-option.d.ts +1 -1
- package/dist/adminapi/models/account-option.d.ts.map +1 -1
- package/dist/adminapi/models/component-item-create.d.ts +2 -2
- package/dist/adminapi/models/component-item.d.ts +1 -1
- package/dist/adminapi/models/instance-template-attribute.d.ts +0 -2
- package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -1
- package/dist/adminapi/models/instance-template-attribute.js +0 -2
- package/dist/adminapi/models/instance-template-attribute.js.map +1 -1
- package/dist/adminapi/models/instance-template-create-env-inner.d.ts +1 -1
- package/dist/adminapi/models/instance-template-create.d.ts +3 -19
- package/dist/adminapi/models/instance-template-create.d.ts.map +1 -1
- package/dist/adminapi/models/instance-template-env.d.ts +3 -3
- package/dist/adminapi/models/mode-component-instance-template.d.ts +2 -2
- package/dist/adminapi/models/placement-scope.d.ts +1 -1
- package/dist/adminapi/models/placement-scope.js +1 -1
- package/dist/internalapi/models/component-item.d.ts +1 -1
- package/dist/internalapi/models/instance-template-create-env-inner.d.ts +1 -1
- package/dist/internalapi/models/instance-template-create.d.ts +3 -19
- package/dist/internalapi/models/instance-template-create.d.ts.map +1 -1
- package/dist/openapi/models/account-option.d.ts +1 -1
- package/dist/openapi/models/account-option.d.ts.map +1 -1
- package/dist/openapi/models/component-item-create.d.ts +2 -2
- package/dist/openapi/models/component-item.d.ts +1 -1
- package/dist/openapi/models/instance-template-attribute.d.ts +0 -2
- package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -1
- package/dist/openapi/models/instance-template-attribute.js +0 -2
- package/dist/openapi/models/instance-template-attribute.js.map +1 -1
- package/dist/openapi/models/instance-template-create-env-inner.d.ts +1 -1
- package/dist/openapi/models/instance-template-create.d.ts +3 -19
- package/dist/openapi/models/instance-template-create.d.ts.map +1 -1
- package/dist/openapi/models/instance-template-env.d.ts +3 -3
- package/dist/openapi/models/mode-component-instance-template.d.ts +2 -2
- package/dist/openapi/models/placement-scope.d.ts +1 -1
- package/dist/openapi/models/placement-scope.js +1 -1
- package/package.json +1 -1
- package/src/adminapi/apis/alert-object-api.ts +44 -5
- package/src/adminapi/models/account-option.ts +1 -1
- package/src/adminapi/models/component-item-create.ts +2 -2
- package/src/adminapi/models/component-item.ts +1 -1
- package/src/adminapi/models/instance-template-attribute.ts +0 -2
- package/src/adminapi/models/instance-template-create-env-inner.ts +1 -1
- package/src/adminapi/models/instance-template-create.ts +3 -15
- package/src/adminapi/models/instance-template-env.ts +3 -3
- package/src/adminapi/models/mode-component-instance-template.ts +2 -2
- package/src/adminapi/models/placement-scope.ts +1 -1
- package/src/adminapi.yaml +33 -33
- package/src/internalapi/models/component-item.ts +1 -1
- package/src/internalapi/models/instance-template-create-env-inner.ts +1 -1
- package/src/internalapi/models/instance-template-create.ts +3 -15
- package/src/internalapi.yaml +6 -16
- package/src/openapi/models/account-option.ts +1 -1
- package/src/openapi/models/component-item-create.ts +2 -2
- package/src/openapi/models/component-item.ts +1 -1
- package/src/openapi/models/instance-template-attribute.ts +0 -2
- package/src/openapi/models/instance-template-create-env-inner.ts +1 -1
- package/src/openapi/models/instance-template-create.ts +3 -15
- package/src/openapi/models/instance-template-env.ts +3 -3
- package/src/openapi/models/mode-component-instance-template.ts +2 -2
- package/src/openapi/models/placement-scope.ts +1 -1
- package/src/openapi.yaml +15 -33
|
@@ -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,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,8BAA8B,CAAC,CAAC;
|
|
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,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,8BAA8B,CAAC,CAAC;CACjD"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { LocalizedDescription } from './localized-description';
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
@@ -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
|
-
*
|
|
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,
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
@@ -16811,6 +16811,24 @@ paths:
|
|
|
16811
16811
|
required: false
|
|
16812
16812
|
schema:
|
|
16813
16813
|
type: integer
|
|
16814
|
+
- name: clusterName
|
|
16815
|
+
in: query
|
|
16816
|
+
description: filter by cluster name
|
|
16817
|
+
required: false
|
|
16818
|
+
schema:
|
|
16819
|
+
type: string
|
|
16820
|
+
- name: status
|
|
16821
|
+
in: query
|
|
16822
|
+
description: filter by alert status
|
|
16823
|
+
required: false
|
|
16824
|
+
schema:
|
|
16825
|
+
type: string
|
|
16826
|
+
- name: severity
|
|
16827
|
+
in: query
|
|
16828
|
+
description: filter by alert severity
|
|
16829
|
+
required: false
|
|
16830
|
+
schema:
|
|
16831
|
+
type: string
|
|
16814
16832
|
responses:
|
|
16815
16833
|
'200':
|
|
16816
16834
|
description: A successful response.
|
|
@@ -35204,7 +35222,7 @@ components:
|
|
|
35204
35222
|
instanceTemplateCreate:
|
|
35205
35223
|
type: object
|
|
35206
35224
|
additionalProperties: false
|
|
35207
|
-
description:
|
|
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.'
|
|
35208
35226
|
required:
|
|
35209
35227
|
- name
|
|
35210
35228
|
- replicas
|
|
@@ -35222,13 +35240,13 @@ components:
|
|
|
35222
35240
|
description: Replica count for this instance template.
|
|
35223
35241
|
availabilityZone:
|
|
35224
35242
|
type: string
|
|
35225
|
-
description:
|
|
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.
|
|
35226
35244
|
storageClass:
|
|
35227
35245
|
type: string
|
|
35228
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.
|
|
35229
35247
|
env:
|
|
35230
35248
|
type: array
|
|
35231
|
-
description:
|
|
35249
|
+
description: Declared env overrides. Names must be unique; defaults apply only to omitted variables.
|
|
35232
35250
|
items:
|
|
35233
35251
|
type: object
|
|
35234
35252
|
required:
|
|
@@ -35237,20 +35255,10 @@ components:
|
|
|
35237
35255
|
properties:
|
|
35238
35256
|
name:
|
|
35239
35257
|
type: string
|
|
35258
|
+
minLength: 1
|
|
35240
35259
|
value:
|
|
35241
35260
|
type: string
|
|
35242
|
-
|
|
35243
|
-
description: Plain string value only. valueFrom is not supported.
|
|
35244
|
-
annotations:
|
|
35245
|
-
type: object
|
|
35246
|
-
additionalProperties:
|
|
35247
|
-
type: string
|
|
35248
|
-
description: Annotation map (string key to string value). Merged into this template; same-name keys overwritten. Chart keys are not deleted.
|
|
35249
|
-
labels:
|
|
35250
|
-
type: object
|
|
35251
|
-
additionalProperties:
|
|
35252
|
-
type: string
|
|
35253
|
-
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.
|
|
35261
|
+
description: Literal string; optional values may be empty. valueFrom is unsupported.
|
|
35254
35262
|
ioQuantity:
|
|
35255
35263
|
description: IO Quantity describes IOPS and BPS of a volume
|
|
35256
35264
|
properties:
|
|
@@ -35338,7 +35346,7 @@ components:
|
|
|
35338
35346
|
description: Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited.
|
|
35339
35347
|
availabilityZone:
|
|
35340
35348
|
type: string
|
|
35341
|
-
description:
|
|
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.
|
|
35342
35350
|
component:
|
|
35343
35351
|
type: string
|
|
35344
35352
|
description: component type, refer to componentDef and support NamePrefix
|
|
@@ -35353,7 +35361,7 @@ components:
|
|
|
35353
35361
|
instanceTemplates:
|
|
35354
35362
|
type: array
|
|
35355
35363
|
minItems: 1
|
|
35356
|
-
description: Per-template replicas and optional overlays (env,
|
|
35364
|
+
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.
|
|
35357
35365
|
items:
|
|
35358
35366
|
$ref: '#/components/schemas/instanceTemplateCreate'
|
|
35359
35367
|
skipResourceConstraints:
|
|
@@ -35696,7 +35704,7 @@ components:
|
|
|
35696
35704
|
instanceTemplates:
|
|
35697
35705
|
type: array
|
|
35698
35706
|
x-omitempty: true
|
|
35699
|
-
description: Instance template assignments with effective replicas, placement and storage class, and user-provided env
|
|
35707
|
+
description: Instance template assignments with effective replicas, placement and storage class, and user-provided env.
|
|
35700
35708
|
items:
|
|
35701
35709
|
$ref: '#/components/schemas/instanceTemplateCreate'
|
|
35702
35710
|
name:
|
|
@@ -45265,7 +45273,7 @@ components:
|
|
|
45265
45273
|
x-nullable: false
|
|
45266
45274
|
placementScope:
|
|
45267
45275
|
type: string
|
|
45268
|
-
description:
|
|
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.
|
|
45269
45277
|
enum:
|
|
45270
45278
|
- cluster
|
|
45271
45279
|
- component
|
|
@@ -45289,12 +45297,10 @@ components:
|
|
|
45289
45297
|
description: Heterogeneous attribute the frontend may render on an instance template at create.
|
|
45290
45298
|
enum:
|
|
45291
45299
|
- env
|
|
45292
|
-
- annotations
|
|
45293
|
-
- labels
|
|
45294
45300
|
- storageClass
|
|
45295
45301
|
instanceTemplateEnv:
|
|
45296
45302
|
type: object
|
|
45297
|
-
description:
|
|
45303
|
+
description: Allowed template env variable and its input constraints.
|
|
45298
45304
|
required:
|
|
45299
45305
|
- name
|
|
45300
45306
|
properties:
|
|
@@ -45308,10 +45314,10 @@ components:
|
|
|
45308
45314
|
$ref: '#/components/schemas/localizedDescription'
|
|
45309
45315
|
required:
|
|
45310
45316
|
type: boolean
|
|
45311
|
-
description:
|
|
45317
|
+
description: Requires a non-blank value after applying the default.
|
|
45312
45318
|
default:
|
|
45313
45319
|
type: string
|
|
45314
|
-
description:
|
|
45320
|
+
description: Used only when the variable is omitted.
|
|
45315
45321
|
modeReadonlyEndpoint:
|
|
45316
45322
|
type: object
|
|
45317
45323
|
required:
|
|
@@ -45368,16 +45374,10 @@ components:
|
|
|
45368
45374
|
uniqueItems: true
|
|
45369
45375
|
items:
|
|
45370
45376
|
$ref: '#/components/schemas/instanceTemplateAttribute'
|
|
45371
|
-
description:
|
|
45372
|
-
Heterogeneous attributes the frontend should render on each
|
|
45373
|
-
instance template at create. Omitted or empty means only name
|
|
45374
|
-
and replicas. Create overlays the request onto the chart and
|
|
45375
|
-
does not re-check this list.
|
|
45377
|
+
description: Template UI attributes. Env overrides require env to be enabled.
|
|
45376
45378
|
env:
|
|
45377
45379
|
type: array
|
|
45378
|
-
description:
|
|
45379
|
-
Env vars the frontend may render when attributes includes env.
|
|
45380
|
-
Create does not re-check this list.
|
|
45380
|
+
description: Allowed env variables, with defaults and required checks applied before persistence.
|
|
45381
45381
|
items:
|
|
45382
45382
|
$ref: '#/components/schemas/instanceTemplateEnv'
|
|
45383
45383
|
serviceRef:
|
|
@@ -45804,7 +45804,7 @@ components:
|
|
|
45804
45804
|
description: Account names that cannot be deleted, locked, unlocked, or have their privileges modified. This does not hide accounts or restrict password changes.
|
|
45805
45805
|
items:
|
|
45806
45806
|
type: string
|
|
45807
|
-
|
|
45807
|
+
hiddenAccounts:
|
|
45808
45808
|
type: array
|
|
45809
45809
|
description: Account names hidden from the generic account list. Matching is case-sensitive, without whitespace normalization or patterns. Other accounts remain visible subject to existing displayRootAccount rules.
|
|
45810
45810
|
items:
|
|
@@ -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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|