@daocloud-proto/mcamel-kafka 0.7.0-rc2-2 → 0.8.0-rc1-25
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 +82 -0
- package/common.pb.ts +48 -1
- package/kafka.pb.ts +1 -2
- package/package.json +1 -1
package/cluster.pb.ts
CHANGED
|
@@ -7,6 +7,30 @@
|
|
|
7
7
|
import * as CommonCommon from "./common.pb"
|
|
8
8
|
import * as fm from "./fetch.pb"
|
|
9
9
|
|
|
10
|
+
export enum PermissionsType {
|
|
11
|
+
None = "None",
|
|
12
|
+
GetInstance = "GetInstance",
|
|
13
|
+
CreateInstance = "CreateInstance",
|
|
14
|
+
UpdateInstance = "UpdateInstance",
|
|
15
|
+
DeleteInstance = "DeleteInstance",
|
|
16
|
+
GetMetric = "GetMetric",
|
|
17
|
+
GetInstanceLog = "GetInstanceLog",
|
|
18
|
+
GetConfig = "GetConfig",
|
|
19
|
+
UpdateConfig = "UpdateConfig",
|
|
20
|
+
GetBackup = "GetBackup",
|
|
21
|
+
CreateBackup = "CreateBackup",
|
|
22
|
+
UpdateBackup = "UpdateBackup",
|
|
23
|
+
DeleteBackup = "DeleteBackup",
|
|
24
|
+
GetBackupConf = "GetBackupConf",
|
|
25
|
+
CreateBackupConf = "CreateBackupConf",
|
|
26
|
+
UpdateBackupConf = "UpdateBackupConf",
|
|
27
|
+
DeleteBackupConf = "DeleteBackupConf",
|
|
28
|
+
GetTemplate = "GetTemplate",
|
|
29
|
+
CreateTemplate = "CreateTemplate",
|
|
30
|
+
UpdateTemplate = "UpdateTemplate",
|
|
31
|
+
DeleteTemplate = "DeleteTemplate",
|
|
32
|
+
}
|
|
33
|
+
|
|
10
34
|
export enum EventType {
|
|
11
35
|
EVENT_TYPE_UNSPECIFIED = "EVENT_TYPE_UNSPECIFIED",
|
|
12
36
|
Normal = "Normal",
|
|
@@ -28,11 +52,49 @@ export enum GetWorkspaceListReqSortDir {
|
|
|
28
52
|
DESC = "DESC",
|
|
29
53
|
}
|
|
30
54
|
|
|
55
|
+
export enum ClusterItemNetworkMode {
|
|
56
|
+
Unknown = "Unknown",
|
|
57
|
+
Flannel = "Flannel",
|
|
58
|
+
Calico = "Calico",
|
|
59
|
+
}
|
|
60
|
+
|
|
31
61
|
export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
32
62
|
NotInstall = "NotInstall",
|
|
33
63
|
Install = "Install",
|
|
34
64
|
}
|
|
35
65
|
|
|
66
|
+
export type GetPermissionsListReq = {
|
|
67
|
+
workspaceId?: number
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type GetPermissionsListRespPermissions = {
|
|
71
|
+
getInstance?: boolean
|
|
72
|
+
createInstance?: boolean
|
|
73
|
+
updateInstance?: boolean
|
|
74
|
+
deleteInstance?: boolean
|
|
75
|
+
getMetric?: boolean
|
|
76
|
+
getInstanceLog?: boolean
|
|
77
|
+
getConfig?: boolean
|
|
78
|
+
updateConfig?: boolean
|
|
79
|
+
getBackup?: boolean
|
|
80
|
+
createBackup?: boolean
|
|
81
|
+
updateBackup?: boolean
|
|
82
|
+
deleteBackup?: boolean
|
|
83
|
+
getBackupConf?: boolean
|
|
84
|
+
createBackupConf?: boolean
|
|
85
|
+
updateBackupConf?: boolean
|
|
86
|
+
deleteBackupConf?: boolean
|
|
87
|
+
getTemplate?: boolean
|
|
88
|
+
createTemplate?: boolean
|
|
89
|
+
updateTemplate?: boolean
|
|
90
|
+
deleteTemplate?: boolean
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type GetPermissionsListResp = {
|
|
94
|
+
permissionsBool?: GetPermissionsListRespPermissions
|
|
95
|
+
permissions?: PermissionsType[]
|
|
96
|
+
}
|
|
97
|
+
|
|
36
98
|
export type GetAllEventKindsListResp = {
|
|
37
99
|
data?: string[]
|
|
38
100
|
}
|
|
@@ -115,6 +177,7 @@ export type GetClusterPodLabelListReq = {
|
|
|
115
177
|
page?: number
|
|
116
178
|
pageSize?: number
|
|
117
179
|
searchKey?: string
|
|
180
|
+
filterNamespace?: string
|
|
118
181
|
cluster?: string
|
|
119
182
|
}
|
|
120
183
|
|
|
@@ -200,6 +263,7 @@ export type GetWorkspaceListReq = {
|
|
|
200
263
|
export type GetWorkspaceListRespItem = {
|
|
201
264
|
workspaceId?: number
|
|
202
265
|
alias?: string
|
|
266
|
+
visible?: boolean
|
|
203
267
|
}
|
|
204
268
|
|
|
205
269
|
export type GetWorkspaceListResp = {
|
|
@@ -209,13 +273,28 @@ export type GetWorkspaceListResp = {
|
|
|
209
273
|
|
|
210
274
|
export type GetClusterListReq = {
|
|
211
275
|
workspaceId?: number
|
|
276
|
+
searchKey?: string
|
|
212
277
|
}
|
|
213
278
|
|
|
214
279
|
export type GetClusterListResp = {
|
|
215
280
|
items?: string[]
|
|
281
|
+
clusters?: ClusterItem[]
|
|
216
282
|
pagination?: CommonCommon.Pagination
|
|
217
283
|
}
|
|
218
284
|
|
|
285
|
+
export type ClusterItemMetadata = {
|
|
286
|
+
name?: string
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export type ClusterItemStatus = {
|
|
290
|
+
networkMode?: ClusterItemNetworkMode[]
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export type ClusterItem = {
|
|
294
|
+
metadata?: ClusterItemMetadata
|
|
295
|
+
status?: ClusterItemStatus
|
|
296
|
+
}
|
|
297
|
+
|
|
219
298
|
export type GetClusterNamespaceListReq = {
|
|
220
299
|
workspaceId?: number
|
|
221
300
|
cluster?: string
|
|
@@ -268,4 +347,7 @@ export class Cluster {
|
|
|
268
347
|
static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
|
|
269
348
|
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
270
349
|
}
|
|
350
|
+
static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
|
|
351
|
+
return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
352
|
+
}
|
|
271
353
|
}
|
package/common.pb.ts
CHANGED
|
@@ -151,6 +151,8 @@ export type PodCommon = {
|
|
|
151
151
|
containersName?: string[]
|
|
152
152
|
ownerReference?: OwnerReference[]
|
|
153
153
|
initContainersName?: string[]
|
|
154
|
+
initContainersStatuses?: ContainerStatus[]
|
|
155
|
+
containersStatuses?: ContainerStatus[]
|
|
154
156
|
}
|
|
155
157
|
|
|
156
158
|
export type OwnerReference = {
|
|
@@ -164,7 +166,52 @@ export type CommonItemStatus = {
|
|
|
164
166
|
serviceAddresses?: string[]
|
|
165
167
|
webManagerAddress?: string
|
|
166
168
|
webLogAddress?: string
|
|
167
|
-
isHwameistorSc?: boolean
|
|
168
169
|
avgPvAllocatedInGb?: number
|
|
169
170
|
avgPvUsedInGb?: number
|
|
171
|
+
cpuUtilization?: number
|
|
172
|
+
memoryUtilization?: number
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export type AccessWhitelistInternal = {
|
|
176
|
+
namespace?: string
|
|
177
|
+
podSelector?: {[key: string]: string}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export type AccessWhitelistExternal = {
|
|
181
|
+
cidr?: string
|
|
182
|
+
ip?: string
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export type AccessWhitelist = {
|
|
186
|
+
internals?: AccessWhitelistInternal[]
|
|
187
|
+
externals?: AccessWhitelistExternal[]
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export type ContainerStatus = {
|
|
191
|
+
name?: string
|
|
192
|
+
state?: ContainerState
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export type ContainerState = {
|
|
196
|
+
waiting?: ContainerStateWaiting
|
|
197
|
+
running?: ContainerStateRunning
|
|
198
|
+
terminated?: ContainerStateTerminated
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export type ContainerStateWaiting = {
|
|
202
|
+
reason?: string
|
|
203
|
+
message?: string
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export type ContainerStateRunning = {
|
|
207
|
+
startedAt?: string
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export type ContainerStateTerminated = {
|
|
211
|
+
exitCode?: number
|
|
212
|
+
signal?: number
|
|
213
|
+
reason?: string
|
|
214
|
+
message?: string
|
|
215
|
+
startedAt?: string
|
|
216
|
+
finishedAt?: string
|
|
170
217
|
}
|
package/kafka.pb.ts
CHANGED
|
@@ -187,8 +187,7 @@ export type CreateKafkaReq = {
|
|
|
187
187
|
managerLbTyp?: CommonCommon.LBTyp
|
|
188
188
|
managerLbPoolName?: string
|
|
189
189
|
managerLbAddress?: string
|
|
190
|
-
|
|
191
|
-
ingressFromCidrs?: string[]
|
|
190
|
+
accessWhitelist?: CommonCommon.AccessWhitelist
|
|
192
191
|
}
|
|
193
192
|
|
|
194
193
|
export type UpdateKafkaParamsResp = {
|