@daocloud-proto/mcamel-kafka 0.17.0-rc1-2 → 0.18.0-rc1-5

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 CHANGED
@@ -66,11 +66,37 @@ export enum ClusterItemNetworkMode {
66
66
  Calico = "Calico",
67
67
  }
68
68
 
69
+ export enum ClusterSettingPluginPluginName {
70
+ PLUGIN_NAME_UNSPECIFIED = "PLUGIN_NAME_UNSPECIFIED",
71
+ HPA = "HPA",
72
+ Insight = "Insight",
73
+ GPU = "GPU",
74
+ METALLB = "METALLB",
75
+ Spiderpool = "Spiderpool",
76
+ CustomMetrics = "CustomMetrics",
77
+ CronHPA = "CronHPA",
78
+ VPA = "VPA",
79
+ Hwameistor = "Hwameistor",
80
+ Flannel = "Flannel",
81
+ KubeOvn = "KubeOvn",
82
+ OLM = "OLM",
83
+ EgressGateway = "EgressGateway",
84
+ }
85
+
69
86
  export enum GetInsightAgentStatusRespInsightAgentStatus {
70
87
  NotInstall = "NotInstall",
71
88
  Install = "Install",
72
89
  }
73
90
 
91
+ export type GetClusterReq = {
92
+ workspaceId?: number
93
+ name?: string
94
+ }
95
+
96
+ export type GetClusterResp = {
97
+ cluster?: ClusterItem
98
+ }
99
+
74
100
  export type InstallFileReq = {
75
101
  cluster?: string
76
102
  path?: string
@@ -355,6 +381,8 @@ export type ClusterItemMetadata = {
355
381
 
356
382
  export type ClusterItemStatus = {
357
383
  networkMode?: ClusterItemNetworkMode[]
384
+ setting?: ClusterSetting
385
+ clusterStatus?: CommonCommon.ClusterStatus
358
386
  }
359
387
 
360
388
  export type ClusterItem = {
@@ -362,6 +390,20 @@ export type ClusterItem = {
362
390
  status?: ClusterItemStatus
363
391
  }
364
392
 
393
+ export type ClusterSettingPlugin = {
394
+ name?: ClusterSettingPluginPluginName
395
+ enabled?: boolean
396
+ intelligentDetection?: boolean
397
+ externalAddress?: string
398
+ setting?: string
399
+ healthy?: boolean
400
+ }
401
+
402
+ export type ClusterSetting = {
403
+ plugins?: ClusterSettingPlugin[]
404
+ network?: ClusterSettingPlugin[]
405
+ }
406
+
365
407
  export type GetClusterNamespaceListReq = {
366
408
  workspaceId?: number
367
409
  cluster?: string
@@ -416,6 +458,9 @@ export class Cluster {
416
458
  static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
417
459
  return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
418
460
  }
461
+ static GetCluster(req: GetClusterReq, initReq?: fm.InitReq): Promise<GetClusterResp> {
462
+ return fm.fetchReq<GetClusterReq, GetClusterResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/clusters/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
463
+ }
419
464
  static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
420
465
  return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/kafka/v1alpha1/${req["workspaceId"]}/hostnetwork-ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
421
466
  }
package/common.pb.ts CHANGED
@@ -172,6 +172,7 @@ export type PodCommon = {
172
172
  initContainersStatuses?: ContainerStatus[]
173
173
  containersStatuses?: ContainerStatus[]
174
174
  podStatus?: string
175
+ annotations?: {[key: string]: string}
175
176
  }
176
177
 
177
178
  export type OwnerReference = {
package/kafka.pb.ts CHANGED
@@ -21,6 +21,7 @@ export enum Status {
21
21
  Failed = "Failed",
22
22
  Running = "Running",
23
23
  Creating = "Creating",
24
+ Unknown = "Unknown",
24
25
  }
25
26
 
26
27
  export enum GetKafkaListReqSortDir {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-kafka",
3
- "version":"0.17.0-rc1-2",
3
+ "version":"0.18.0-rc1-5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {