@daocloud-proto/skoala 0.3.3-73 → 0.3.3-79

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.
@@ -40,8 +40,8 @@ export type Gateway = {
40
40
  updatedAt?: string
41
41
  status?: SkoalaApiGeneralV1alpha1Skoala.Status
42
42
  endpoints?: string[]
43
- master?: Node
44
- worker?: Node
43
+ contour?: Node
44
+ envoy?: Node
45
45
  config?: GatewayConfig
46
46
  }
47
47
 
@@ -83,6 +83,70 @@ export type GetGatewayRes = {
83
83
  gateways?: Gateway
84
84
  }
85
85
 
86
+ export type EnvoyPortsString = {
87
+ http?: string
88
+ https?: string
89
+ }
90
+
91
+ export type EnvoyPorts = {
92
+ http?: number
93
+ https?: number
94
+ }
95
+
96
+ export type ContourPorts = {
97
+ xds?: number
98
+ metrics?: number
99
+ }
100
+
101
+ export type ContourPortsString = {
102
+ xds?: string
103
+ }
104
+
105
+ export type HostIPs = {
106
+ http?: string
107
+ https?: string
108
+ }
109
+
110
+ export type EnvoyService = {
111
+ type?: string
112
+ ports?: EnvoyPorts
113
+ targetPorts?: EnvoyPortsString
114
+ nodePorts?: EnvoyPortsString
115
+ extraPorts?: string[]
116
+ externalTrafficPolicy?: string
117
+ }
118
+
119
+ export type ContourService = {
120
+ type?: string
121
+ clusterIp?: string
122
+ ports?: ContourPorts
123
+ nodePorts?: ContourPortsString
124
+ extraPorts?: string[]
125
+ externalTrafficPolicy?: string
126
+ loadBalancerSourceRanges?: string[]
127
+ loadBalancerIp?: string
128
+ }
129
+
130
+ export type EnvoyNormalConfig = {
131
+ kind?: string
132
+ replicas?: number
133
+ hostNetwork?: boolean
134
+ dnsPolicy?: string
135
+ useHostIp?: boolean
136
+ useHostPort?: boolean
137
+ containerPorts?: EnvoyPorts
138
+ hostIps?: HostIPs
139
+ hostPorts?: EnvoyPorts
140
+ service?: EnvoyService
141
+ }
142
+
143
+ export type ContourNormalConfig = {
144
+ rootNamespaces?: string
145
+ replicas?: number
146
+ containerPorts?: ContourPorts
147
+ service?: ContourService
148
+ }
149
+
86
150
  export type CreateGatewayReq = {
87
151
  workspaceId?: number
88
152
  name?: string
@@ -92,10 +156,6 @@ export type CreateGatewayReq = {
92
156
  config?: GatewayConfig
93
157
  }
94
158
 
95
- export type CreateGatewayRes = {
96
- gateway?: Gateway
97
- }
98
-
99
159
  export type UpdateGatewayReq = {
100
160
  workspaceId?: number
101
161
  gatewayName?: string
@@ -104,10 +164,6 @@ export type UpdateGatewayReq = {
104
164
  config?: GatewayConfig
105
165
  }
106
166
 
107
- export type UpdateGatewayRes = {
108
- gateway?: Gateway
109
- }
110
-
111
167
  export type DeleteGatewayReq = {
112
168
  workspaceId?: number
113
169
  clusterName?: string
@@ -119,73 +175,56 @@ export type DeleteGatewayRes = {
119
175
  gateway?: Gateway
120
176
  }
121
177
 
178
+ export type NormalConfig = {
179
+ contour?: ContourNormalConfig
180
+ envoy?: EnvoyNormalConfig
181
+ }
182
+
122
183
  export type GatewayConfig = {
123
184
  normal?: NormalConfig
124
185
  advanced?: AdvancedConfig
125
186
  }
126
187
 
127
188
 
128
- type BaseNormalConfig = {
129
- masterCount?: number
130
- workerCount?: number
131
- }
132
-
133
- export type NormalConfig = BaseNormalConfig
134
- & OneOf<{ clusterIp: ClusterIP; nodePort: NodePort; loadBalancer: LoadBalancer; externalName: ExternalName }>
135
-
136
- export type Port = {
137
- name?: string
138
- protocol?: string
139
- port?: number
140
- targetPort?: number
141
- nodePort?: number
142
- }
143
-
144
- export type NodePort = {
145
- ports?: Port[]
189
+ type BaseContourAdvancedConfig = {
190
+ resources?: Resource
146
191
  }
147
192
 
148
- export type ClusterIP = {
149
- ports?: Port[]
150
- }
193
+ export type ContourAdvancedConfig = BaseContourAdvancedConfig
194
+ & OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
151
195
 
152
- export type LoadBalancer = {
153
- }
154
196
 
155
- export type ExternalName = {
156
- externalName?: string
197
+ type BaseEnvoyAdvancedConfig = {
198
+ resources?: Resource
157
199
  }
158
200
 
201
+ export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
202
+ & OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
159
203
 
160
- type BaseAdvancedConfig = {
204
+ export type AdvancedConfig = {
161
205
  log?: Log
162
- resource?: Resource
163
- enableGlobalRateLimit?: boolean
206
+ contour?: ContourAdvancedConfig
207
+ envoy?: EnvoyAdvancedConfig
208
+ globalRateLimit?: boolean
164
209
  }
165
210
 
166
- export type AdvancedConfig = BaseAdvancedConfig
167
- & OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
168
-
169
211
  export type Log = {
170
- workerLogLevel?: LogLogLevel
171
- podLogLevel?: number
172
- enableDebugLog?: boolean
173
- enableLogToInsight?: boolean
174
- }
175
-
176
- export type Quota = {
177
- cpuRequests?: number
178
- cpuLimits?: number
179
- memoryRequests?: number
180
- memoryLimits?: number
212
+ envoyLogLevel?: LogLogLevel
213
+ k8SDebug?: number
214
+ contourDebug?: boolean
215
+ logToInsight?: boolean
181
216
  }
182
217
 
183
218
  export type Resource = {
184
- master?: Quota
185
- worker?: Quota
219
+ cpuRequests?: string
220
+ cpuLimits?: string
221
+ memoryRequests?: string
222
+ memoryLimits?: string
186
223
  }
187
224
 
188
225
  export type RollingUpdate = {
226
+ maxSurge?: string
227
+ maxUnavailable?: string
189
228
  }
190
229
 
191
230
  export type GetImagesRes = {
@@ -4,12 +4,26 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as InsightIoApiSpan_metricV1alpha1Span_metric from "../../../span_metric/v1alpha1/span_metric.pb"
7
+ import * as InsightIoApiSpan_metricV1alpha1Openmetrics from "../../../span_metric/v1alpha1/openmetrics.pb"
8
8
  export type Insight = {
9
+ serviceDetail?: InsightValue
10
+ serviceMetrics?: InsightMetrics
11
+ }
12
+
13
+ export type InsightValue = {
9
14
  call?: string
10
15
  successRates?: string
11
16
  latencies?: string
12
- metricsLatencies?: {[key: string]: InsightIoApiSpan_metricV1alpha1Span_metric.GetMetricsResponse}
13
- metricsErrorRates?: InsightIoApiSpan_metricV1alpha1Span_metric.GetMetricsResponse
14
- metricsCallRates?: InsightIoApiSpan_metricV1alpha1Span_metric.GetMetricsResponse
17
+ }
18
+
19
+ export type InsightMetrics = {
20
+ p50Metrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
21
+ p75Metrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
22
+ p90Metrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
23
+ p95Metrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
24
+ p99Metrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
25
+ reqRateMetric?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
26
+ repLatencyMetric?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
27
+ errorsRateMetrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
28
+ totalCallsMetrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
15
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.3.3-73",
3
+ "version": "0.3.3-79",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {