@daocloud-proto/skoala 0.3.3-71 → 0.3.3-77
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
|
-
|
|
44
|
-
|
|
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
|
|
129
|
-
|
|
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
|
|
149
|
-
|
|
150
|
-
}
|
|
193
|
+
export type ContourAdvancedConfig = BaseContourAdvancedConfig
|
|
194
|
+
& OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
|
|
151
195
|
|
|
152
|
-
export type LoadBalancer = {
|
|
153
|
-
}
|
|
154
196
|
|
|
155
|
-
|
|
156
|
-
|
|
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
|
|
204
|
+
export type AdvancedConfig = {
|
|
161
205
|
log?: Log
|
|
162
|
-
|
|
163
|
-
|
|
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
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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
|
-
|
|
185
|
-
|
|
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 = {
|