@@ -68,13 +68,22 @@ spec:
68
68
properties :
69
69
additionalProperties :
70
70
type : string
71
- description : ' Properties defines the additional properties of
72
- the policy, like: SleepingWindowSize'
71
+ description : ' ValidatePolicy determine the opportunity to validate
72
+ req ValidatePolicy ValidatePolicy `json:"validatePolicy,omitempty"`
73
+ Properties defines the additional properties of the policy,
74
+ like: SleepingWindowSize'
73
75
type : object
74
76
recoverPolicy :
75
77
description : RecoverPolicy defines how the circuit-breaking
76
78
policy recovered from 'Opened' to 'Closed'
77
- type : string
79
+ properties :
80
+ sleepingWindowSize :
81
+ type : string
82
+ type :
83
+ type : string
84
+ required :
85
+ - type
86
+ type : object
78
87
resourceRules :
79
88
description : ResourceRules defines the target k8s resource of
80
89
the limiting policy
@@ -143,10 +152,6 @@ spec:
143
152
description : TriggerPolicy defines how the circuit-breaking
144
153
policy triggered from 'Closed' to 'Opened'
145
154
type : string
146
- validatePolicy :
147
- description : ValidatePolicy determine the opportunity to validate
148
- req
149
- type : string
150
155
required :
151
156
- bucket
152
157
- name
@@ -157,59 +162,48 @@ spec:
157
162
selector :
158
163
description : Selector is a label query over pods of this application.
159
164
properties :
160
- labelSelector :
161
- description : A label selector is a label query over a set of resources.
162
- The result of matchLabels and matchExpressions are ANDed. An
163
- empty label selector matches all objects. A null label selector
164
- matches no objects.
165
- properties :
166
- matchExpressions :
167
- description : matchExpressions is a list of label selector
168
- requirements. The requirements are ANDed.
169
- items :
170
- description : A label selector requirement is a selector
171
- that contains values, a key, and an operator that relates
172
- the key and values.
173
- properties :
174
- key :
175
- description : key is the label key that the selector
176
- applies to.
177
- type : string
178
- operator :
179
- description : operator represents a key's relationship
180
- to a set of values. Valid operators are In, NotIn,
181
- Exists and DoesNotExist.
182
- type : string
183
- values :
184
- description : values is an array of string values. If
185
- the operator is In or NotIn, the values array must
186
- be non-empty. If the operator is Exists or DoesNotExist,
187
- the values array must be empty. This array is replaced
188
- during a strategic merge patch.
189
- items :
190
- type : string
191
- type : array
192
- required :
193
- - key
194
- - operator
195
- type : object
196
- type : array
197
- matchLabels :
198
- additionalProperties :
199
- type : string
200
- description : matchLabels is a map of {key,value} pairs. A
201
- single {key,value} in the matchLabels map is equivalent
202
- to an element of matchExpressions, whose key field is "key",
203
- the operator is "In", and the values array contains only
204
- " value" . The requirements are ANDed.
205
- type : object
206
- type : object
207
- x-kubernetes-map-type : atomic
208
- targets :
165
+ matchExpressions :
166
+ description : matchExpressions is a list of label selector requirements.
167
+ The requirements are ANDed.
209
168
items :
210
- type : string
169
+ description : A label selector requirement is a selector that
170
+ contains values, a key, and an operator that relates the key
171
+ and values.
172
+ properties :
173
+ key :
174
+ description : key is the label key that the selector applies
175
+ to.
176
+ type : string
177
+ operator :
178
+ description : operator represents a key's relationship to
179
+ a set of values. Valid operators are In, NotIn, Exists
180
+ and DoesNotExist.
181
+ type : string
182
+ values :
183
+ description : values is an array of string values. If the
184
+ operator is In or NotIn, the values array must be non-empty.
185
+ If the operator is Exists or DoesNotExist, the values
186
+ array must be empty. This array is replaced during a strategic
187
+ merge patch.
188
+ items :
189
+ type : string
190
+ type : array
191
+ required :
192
+ - key
193
+ - operator
194
+ type : object
211
195
type : array
196
+ matchLabels :
197
+ additionalProperties :
198
+ type : string
199
+ description : matchLabels is a map of {key,value} pairs. A single
200
+ {key,value} in the matchLabels map is equivalent to an element
201
+ of matchExpressions, whose key field is "key", the operator
202
+ is "In", and the values array contains only "value". The requirements
203
+ are ANDed.
204
+ type : object
212
205
type : object
206
+ x-kubernetes-map-type : atomic
213
207
trafficInterceptRules :
214
208
description : TrafficInterceptRules defines the traffic rules
215
209
items :
@@ -247,66 +241,54 @@ spec:
247
241
type : object
248
242
type : array
249
243
required :
250
- - rateLimitings
244
+ - selector
251
245
type : object
252
246
status :
253
247
description : CircuitBreakerStatus defines the observed state of CircuitBreaker
254
248
properties :
249
+ currentSpecHash :
250
+ type : string
255
251
lastUpdatedTime :
256
252
format : date-time
257
253
type : string
258
- limitingSnapshots :
254
+ observedGeneration :
255
+ format : int64
256
+ type : integer
257
+ targetStatus :
259
258
items :
260
- description : LimitingSnapshot defines the snapshot of the whole
261
- limiting policy
262
259
properties :
263
- bucket :
264
- description : Bucket defines the whole snapshot of the token
265
- bucket
266
- properties :
267
- availableTokens :
268
- description : AvailableTokens defines the rest tokens of
269
- the bucket.
270
- format : int64
271
- type : integer
272
- lastAcquireTimestamp :
273
- description : LastAcquireTimestamp is the unix timestamp
274
- that the last token(s) were acquired.
275
- format : int64
276
- type : integer
277
- required :
278
- - availableTokens
279
- - lastAcquireTimestamp
280
- type : object
281
- endpoint :
282
- description : Endpoint specifies the users who use this rule
260
+ configHash :
283
261
type : string
284
- lastTransitionTime :
285
- description : LastTransitionTime is the last time that the status
286
- changed
287
- format : date-time
262
+ limitingSnapshots :
263
+ items :
264
+ description : LimitingSnapshot defines the snapshot of the
265
+ whole limiting policy
266
+ properties :
267
+ lastTransitionTime :
268
+ description : LastTransitionTime is the last time that
269
+ the status changed
270
+ format : date-time
271
+ type : string
272
+ name :
273
+ description : Name specifies the name of the policy
274
+ type : string
275
+ state :
276
+ description : Status is the status of the circuit breaker,
277
+ which may be 'Opened' or 'Closed'.
278
+ type : string
279
+ required :
280
+ - name
281
+ - state
282
+ type : object
283
+ type : array
284
+ message :
288
285
type : string
289
- name :
290
- description : Name specifies the name of the policy
286
+ podIP :
291
287
type : string
292
288
podName :
293
- description : PodName specifies the users pod name
294
- type : string
295
- status :
296
- description : Status is the status of the circuit breaker, which
297
- may be 'Opened' or 'Closed'.
298
289
type : string
299
- required :
300
- - bucket
301
- - name
302
- - status
303
290
type : object
304
291
type : array
305
- observedGeneration :
306
- format : int64
307
- type : integer
308
- required :
309
- - limitingSnapshots
310
292
type : object
311
293
type : object
312
294
served : true
0 commit comments