@daocloud-proto/mcamel-kafka 0.12.0-rc1-1 → 0.15.0-rc1-4
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/cluster.pb.ts +49 -2
- package/common.pb.ts +20 -1
- package/kafka.pb.ts +2 -9
- package/package.json +1 -1
- package/template.pb.ts +24 -2
- package/version.pb.ts +7 -0
package/cluster.pb.ts
CHANGED
|
@@ -29,6 +29,9 @@ export enum PermissionsType {
|
|
|
29
29
|
CreateTemplate = "CreateTemplate",
|
|
30
30
|
UpdateTemplate = "UpdateTemplate",
|
|
31
31
|
DeleteTemplate = "DeleteTemplate",
|
|
32
|
+
GetUserPassword = "GetUserPassword",
|
|
33
|
+
ExportTemplate = "ExportTemplate",
|
|
34
|
+
ImportTemplate = "ImportTemplate",
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
export enum EventType {
|
|
@@ -134,6 +137,9 @@ export type GetPermissionsListRespPermissions = {
|
|
|
134
137
|
createTemplate?: boolean
|
|
135
138
|
updateTemplate?: boolean
|
|
136
139
|
deleteTemplate?: boolean
|
|
140
|
+
getUserPassword?: boolean
|
|
141
|
+
exportTemplate?: boolean
|
|
142
|
+
importTemplate?: boolean
|
|
137
143
|
}
|
|
138
144
|
|
|
139
145
|
export type GetPermissionsListResp = {
|
|
@@ -214,8 +220,14 @@ export type GetClusterNodeLabelListRespLabel = {
|
|
|
214
220
|
value?: string[]
|
|
215
221
|
}
|
|
216
222
|
|
|
223
|
+
export type GetClusterNodeLabelListRespNode2Label = {
|
|
224
|
+
nodeName?: string
|
|
225
|
+
label?: GetClusterNodeLabelListRespLabel[]
|
|
226
|
+
}
|
|
227
|
+
|
|
217
228
|
export type GetClusterNodeLabelListResp = {
|
|
218
229
|
items?: GetClusterNodeLabelListRespLabel[]
|
|
230
|
+
items1?: GetClusterNodeLabelListRespNode2Label[]
|
|
219
231
|
pagination?: CommonCommon.Pagination
|
|
220
232
|
}
|
|
221
233
|
|
|
@@ -328,7 +340,7 @@ export type GetClusterListReq = {
|
|
|
328
340
|
}
|
|
329
341
|
|
|
330
342
|
export type GetClusterHostnetworkPortsResp = {
|
|
331
|
-
items?:
|
|
343
|
+
items?: number[]
|
|
332
344
|
}
|
|
333
345
|
|
|
334
346
|
export type GetClusterListResp = {
|
|
@@ -357,6 +369,7 @@ export type GetClusterNamespaceListReq = {
|
|
|
357
369
|
|
|
358
370
|
export type GetClusterNamespaceListResp = {
|
|
359
371
|
items?: string[]
|
|
372
|
+
disableItems?: string[]
|
|
360
373
|
pagination?: CommonCommon.Pagination
|
|
361
374
|
}
|
|
362
375
|
|
|
@@ -366,6 +379,37 @@ export type GetInsightAgentStatusReq = {
|
|
|
366
379
|
|
|
367
380
|
export type GetInsightAgentStatusResp = {
|
|
368
381
|
status?: GetInsightAgentStatusRespInsightAgentStatus
|
|
382
|
+
clusterStatus?: CommonCommon.ClusterStatus
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export type GetResourceQuotaReq = {
|
|
386
|
+
cluster?: string
|
|
387
|
+
namespace?: string
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export type GetResourceQuotaRespMetadata = {
|
|
391
|
+
uid?: string
|
|
392
|
+
name?: string
|
|
393
|
+
namespace?: string
|
|
394
|
+
annotations?: {[key: string]: string}
|
|
395
|
+
resourceVersion?: string
|
|
396
|
+
creationTimestamp?: string
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export type GetResourceQuotaRespSpec = {
|
|
400
|
+
hard?: {[key: string]: string}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export type GetResourceQuotaRespStatus = {
|
|
404
|
+
hard?: {[key: string]: string}
|
|
405
|
+
used?: {[key: string]: string}
|
|
406
|
+
available?: {[key: string]: string}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export type GetResourceQuotaResp = {
|
|
410
|
+
metadata?: GetResourceQuotaRespMetadata
|
|
411
|
+
spec?: GetResourceQuotaRespSpec
|
|
412
|
+
status?: GetResourceQuotaRespStatus
|
|
369
413
|
}
|
|
370
414
|
|
|
371
415
|
export class Cluster {
|
|
@@ -373,7 +417,7 @@ export class Cluster {
|
|
|
373
417
|
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
374
418
|
}
|
|
375
419
|
static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
|
|
376
|
-
return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/
|
|
420
|
+
return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/hostnetwork-ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
377
421
|
}
|
|
378
422
|
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
379
423
|
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
@@ -417,4 +461,7 @@ export class Cluster {
|
|
|
417
461
|
static GetInstallVersion(req: GetInstallVersionReq, initReq?: fm.InitReq): Promise<GetInstallVersionResp> {
|
|
418
462
|
return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
419
463
|
}
|
|
464
|
+
static GetResourceQuota(req: GetResourceQuotaReq, initReq?: fm.InitReq): Promise<GetResourceQuotaResp> {
|
|
465
|
+
return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/${req["namespace"]}/resourcequota?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
466
|
+
}
|
|
420
467
|
}
|
package/common.pb.ts
CHANGED
|
@@ -20,6 +20,16 @@ export enum ServiceType {
|
|
|
20
20
|
LoadBalancer = "LoadBalancer",
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
export enum ClusterStatus {
|
|
24
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
25
|
+
Unknown = "Unknown",
|
|
26
|
+
Creating = "Creating",
|
|
27
|
+
Running = "Running",
|
|
28
|
+
Updating = "Updating",
|
|
29
|
+
Deleting = "Deleting",
|
|
30
|
+
Failed = "Failed",
|
|
31
|
+
}
|
|
32
|
+
|
|
23
33
|
export enum PageInfoReqSortDir {
|
|
24
34
|
ASC = "ASC",
|
|
25
35
|
DESC = "DESC",
|
|
@@ -40,6 +50,14 @@ export enum PodCommonConditionStatus {
|
|
|
40
50
|
PodConditionStatusFalse = "PodConditionStatusFalse",
|
|
41
51
|
}
|
|
42
52
|
|
|
53
|
+
export enum PodCommonFilterPodStatus {
|
|
54
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
55
|
+
RUNNING = "RUNNING",
|
|
56
|
+
ERROR = "ERROR",
|
|
57
|
+
COMPLETED = "COMPLETED",
|
|
58
|
+
WAITING = "WAITING",
|
|
59
|
+
}
|
|
60
|
+
|
|
43
61
|
export type Affinity = {
|
|
44
62
|
nodeAffinity?: NodeAffinity
|
|
45
63
|
podAffinity?: PodAffinity
|
|
@@ -153,6 +171,7 @@ export type PodCommon = {
|
|
|
153
171
|
initContainersName?: string[]
|
|
154
172
|
initContainersStatuses?: ContainerStatus[]
|
|
155
173
|
containersStatuses?: ContainerStatus[]
|
|
174
|
+
podStatus?: string
|
|
156
175
|
}
|
|
157
176
|
|
|
158
177
|
export type OwnerReference = {
|
|
@@ -170,7 +189,7 @@ export type CommonItemStatus = {
|
|
|
170
189
|
avgPvUsedInGb?: number
|
|
171
190
|
cpuUtilization?: number
|
|
172
191
|
memoryUtilization?: number
|
|
173
|
-
|
|
192
|
+
clusterStatus?: ClusterStatus
|
|
174
193
|
}
|
|
175
194
|
|
|
176
195
|
export type AccessWhitelistInternal = {
|
package/kafka.pb.ts
CHANGED
|
@@ -185,6 +185,7 @@ export type CreateKafkaReq = {
|
|
|
185
185
|
zookeeperStorageCapacity?: string
|
|
186
186
|
affinity?: CommonCommon.Affinity
|
|
187
187
|
serviceMonitorInterval?: string
|
|
188
|
+
zookeeperAffinity?: CommonCommon.Affinity
|
|
188
189
|
externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
|
|
189
190
|
lbTyp?: CommonCommon.LBTyp
|
|
190
191
|
lbPoolName?: string
|
|
@@ -204,13 +205,6 @@ export type GetKafkaParamRespSelectDataStringValue = {
|
|
|
204
205
|
value?: string
|
|
205
206
|
}
|
|
206
207
|
|
|
207
|
-
export type GetKafkaParamRespSelectDataResourceValue = {
|
|
208
|
-
cpuRequest?: string
|
|
209
|
-
cpuLimit?: string
|
|
210
|
-
memoryRequest?: string
|
|
211
|
-
memoryLimit?: string
|
|
212
|
-
}
|
|
213
|
-
|
|
214
208
|
export type GetKafkaParamRespSelectDataIntValue = {
|
|
215
209
|
value?: number
|
|
216
210
|
}
|
|
@@ -225,7 +219,7 @@ type BaseGetKafkaParamRespSelectData = {
|
|
|
225
219
|
}
|
|
226
220
|
|
|
227
221
|
export type GetKafkaParamRespSelectData = BaseGetKafkaParamRespSelectData
|
|
228
|
-
& OneOf<{ sValue: GetKafkaParamRespSelectDataStringValue;
|
|
222
|
+
& OneOf<{ sValue: GetKafkaParamRespSelectDataStringValue; iValue: GetKafkaParamRespSelectDataIntValue; scValue: GetKafkaParamRespSelectDataStorageClassValue }>
|
|
229
223
|
|
|
230
224
|
export type GetKafkaParamRespSelect = {
|
|
231
225
|
selectType?: GetKafkaParamRespSelectSelectType
|
|
@@ -235,7 +229,6 @@ export type GetKafkaParamRespSelect = {
|
|
|
235
229
|
export type GetKafkaParamResp = {
|
|
236
230
|
version?: GetKafkaParamRespSelect
|
|
237
231
|
replicas?: GetKafkaParamRespSelect
|
|
238
|
-
resource?: GetKafkaParamRespSelect
|
|
239
232
|
storage?: GetKafkaParamRespSelect
|
|
240
233
|
kafkaConf?: GetKafkaParamRespSelect
|
|
241
234
|
zookeeperConf?: GetKafkaParamRespSelect
|
package/package.json
CHANGED
package/template.pb.ts
CHANGED
|
@@ -16,6 +16,7 @@ export enum TemplateInstanceType {
|
|
|
16
16
|
MysqlMgrConfig = "MysqlMgrConfig",
|
|
17
17
|
MongodbConfig = "MongodbConfig",
|
|
18
18
|
PostgresqlConfig = "PostgresqlConfig",
|
|
19
|
+
RabbitmqConfig = "RabbitmqConfig",
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
export enum GetTemplateConfigReqSortDir {
|
|
@@ -34,6 +35,17 @@ export enum TemplateConfigItemValueType {
|
|
|
34
35
|
MultiString = "MultiString",
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
export type UpdateTemplateConfigToItemReq = {
|
|
39
|
+
workspaceId?: number
|
|
40
|
+
conf?: string
|
|
41
|
+
version?: string
|
|
42
|
+
templateInstanceType?: TemplateInstanceType
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type UpdateTemplateConfigToItemResp = {
|
|
46
|
+
items?: TemplateConfigItem[]
|
|
47
|
+
}
|
|
48
|
+
|
|
37
49
|
export type GetTemplateConfigVersionsReq = {
|
|
38
50
|
workspaceId?: number
|
|
39
51
|
}
|
|
@@ -44,6 +56,7 @@ export type GetTemplateConfigVersionsResp = {
|
|
|
44
56
|
|
|
45
57
|
export type GetTemplateConfigStringResp = {
|
|
46
58
|
conf?: string
|
|
59
|
+
fileName?: string
|
|
47
60
|
}
|
|
48
61
|
|
|
49
62
|
export type DeleteTemplateReq = {
|
|
@@ -75,6 +88,11 @@ export type GetTemplateConfigReq = {
|
|
|
75
88
|
templateInstanceType?: TemplateInstanceType
|
|
76
89
|
}
|
|
77
90
|
|
|
91
|
+
export type GetTemplateConfigStringReq = {
|
|
92
|
+
workspaceId?: number
|
|
93
|
+
name?: string
|
|
94
|
+
}
|
|
95
|
+
|
|
78
96
|
export type CreateTemplateConfigResp = {
|
|
79
97
|
message?: string
|
|
80
98
|
}
|
|
@@ -91,6 +109,7 @@ export type CreateTemplateConfigReq = {
|
|
|
91
109
|
targetTemplateType?: string
|
|
92
110
|
targetConf?: string
|
|
93
111
|
fromTemplateName?: string
|
|
112
|
+
targetTemplateInstanceType?: TemplateInstanceType
|
|
94
113
|
}
|
|
95
114
|
|
|
96
115
|
export type UpdateTemplateConfigReq = {
|
|
@@ -163,8 +182,11 @@ export class Template {
|
|
|
163
182
|
static UpdateTemplateConfig(req: UpdateTemplateConfigReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigResp> {
|
|
164
183
|
return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/template_config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
165
184
|
}
|
|
166
|
-
static GetTemplateConfigString(req:
|
|
167
|
-
return fm.fetchReq<
|
|
185
|
+
static GetTemplateConfigString(req: GetTemplateConfigStringReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
|
|
186
|
+
return fm.fetchReq<GetTemplateConfigStringReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
187
|
+
}
|
|
188
|
+
static UpdateTemplateConfigToItem(req: UpdateTemplateConfigToItemReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigToItemResp> {
|
|
189
|
+
return fm.fetchReq<UpdateTemplateConfigToItemReq, UpdateTemplateConfigToItemResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/template_config/to_template`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
168
190
|
}
|
|
169
191
|
static GetTemplateConfigVersions(req: GetTemplateConfigVersionsReq, initReq?: fm.InitReq): Promise<GetTemplateConfigVersionsResp> {
|
|
170
192
|
return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
package/version.pb.ts
CHANGED
|
@@ -17,6 +17,10 @@ export type GetVersionReply = {
|
|
|
17
17
|
buildTime?: string
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
export type HealthzReply = {
|
|
21
|
+
message?: string
|
|
22
|
+
}
|
|
23
|
+
|
|
20
24
|
export type Empty = {
|
|
21
25
|
}
|
|
22
26
|
|
|
@@ -24,4 +28,7 @@ export class Version {
|
|
|
24
28
|
static Get(req: Empty, initReq?: fm.InitReq): Promise<GetVersionReply> {
|
|
25
29
|
return fm.fetchReq<Empty, GetVersionReply>(`/apis/mcamel.io/kafka/v1alpha1/kafka/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
26
30
|
}
|
|
31
|
+
static Healthz(req: Empty, initReq?: fm.InitReq): Promise<HealthzReply> {
|
|
32
|
+
return fm.fetchReq<Empty, HealthzReply>(`/healthz?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
33
|
+
}
|
|
27
34
|
}
|