@daocloud-proto/mcamel-redis 0.3.1 → 0.4.0-2

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
@@ -28,6 +28,20 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
28
28
  Install = "Install",
29
29
  }
30
30
 
31
+ export type GetClusterNodeLabelListReq = {
32
+ cluster?: string
33
+ }
34
+
35
+ export type GetClusterNodeLabelListRespLabel = {
36
+ key?: string
37
+ value?: string[]
38
+ }
39
+
40
+ export type GetClusterNodeLabelListResp = {
41
+ items?: GetClusterNodeLabelListRespLabel[]
42
+ pagination?: CommonCommon.Pagination
43
+ }
44
+
31
45
  export type GetClusterNodePortListReq = {
32
46
  cluster?: string
33
47
  }
@@ -126,6 +140,9 @@ export class Cluster {
126
140
  static GetClusterNodePortList(req: GetClusterNodePortListReq, initReq?: fm.InitReq): Promise<GetClusterNodePortListResp> {
127
141
  return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/redis/v1alpha1/${req["cluster"]}/nodeports?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
128
142
  }
143
+ static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
144
+ return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/redis/v1alpha1/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
145
+ }
129
146
  static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
130
147
  return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/redis/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
131
148
  }
package/common.pb.ts CHANGED
@@ -24,6 +24,78 @@ export enum PodCommonConditionStatus {
24
24
  PodConditionStatusFalse = "PodConditionStatusFalse",
25
25
  }
26
26
 
27
+ export type Affinity = {
28
+ nodeAffinity?: NodeAffinity
29
+ podAffinity?: PodAffinity
30
+ podAntiAffinity?: PodAntiAffinity
31
+ }
32
+
33
+ export type PodAntiAffinity = {
34
+ requiredDuringSchedulingIgnoredDuringExecution?: PodAffinityTerm[]
35
+ preferredDuringSchedulingIgnoredDuringExecution?: WeightedPodAffinityTerm[]
36
+ }
37
+
38
+ export type NodeAffinity = {
39
+ requiredDuringSchedulingIgnoredDuringExecution?: NodeSelector
40
+ preferredDuringSchedulingIgnoredDuringExecution?: PreferredSchedulingTerm[]
41
+ }
42
+
43
+ export type NodeSelector = {
44
+ nodeSelectorTerms?: NodeSelectorTerm[]
45
+ }
46
+
47
+ export type NodeSelectorTerm = {
48
+ matchExpressions?: NodeSelectorRequirement[]
49
+ matchFields?: NodeSelectorRequirement[]
50
+ }
51
+
52
+ export type NodeSelectorRequirement = {
53
+ key?: string
54
+ values?: string[]
55
+ operator?: string
56
+ }
57
+
58
+ export type PreferredSchedulingTerm = {
59
+ weight?: number
60
+ preference?: NodeSelectorTerm
61
+ }
62
+
63
+ export type PodAffinity = {
64
+ requiredDuringSchedulingIgnoredDuringExecution?: PodAffinityTerm[]
65
+ preferredDuringSchedulingIgnoredDuringExecution?: WeightedPodAffinityTerm[]
66
+ }
67
+
68
+ export type WeightedPodAffinityTerm = {
69
+ weight?: number
70
+ podAffinityTerm?: PodAffinityTerm
71
+ }
72
+
73
+ export type PodAffinityTerm = {
74
+ labelSelector?: LabelSelector
75
+ namespaces?: string[]
76
+ topologyKey?: string
77
+ namespaceSelector?: LabelSelector
78
+ }
79
+
80
+ export type LabelSelector = {
81
+ matchLabels?: {[key: string]: string}
82
+ matchExpressions?: LabelSelectorRequirement[]
83
+ }
84
+
85
+ export type LabelSelectorRequirement = {
86
+ key?: string
87
+ values?: string[]
88
+ operator?: string
89
+ }
90
+
91
+ export type Toleration = {
92
+ key?: string
93
+ operator?: string
94
+ value?: string
95
+ effect?: string
96
+ tolerationSeconds?: string
97
+ }
98
+
27
99
  export type Pagination = {
28
100
  total?: number
29
101
  page?: number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-redis",
3
- "version":"0.3.1",
3
+ "version":"0.4.0-2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/redis.pb.ts CHANGED
@@ -146,6 +146,7 @@ export type CreateRedisReq = {
146
146
  conf?: string
147
147
  version?: string
148
148
  followerReplicas?: number
149
+ affinity?: CommonCommon.Affinity
149
150
  }
150
151
 
151
152
  export type UpdateRedisConfReq = {