kuma

Форк
0
/
kuma.io_meshfaultinjections.yaml 
365 строк · 17.1 Кб
1
---
2
apiVersion: apiextensions.k8s.io/v1
3
kind: CustomResourceDefinition
4
metadata:
5
  annotations:
6
    controller-gen.kubebuilder.io/version: v0.14.0
7
  name: meshfaultinjections.kuma.io
8
spec:
9
  group: kuma.io
10
  names:
11
    categories:
12
    - kuma
13
    kind: MeshFaultInjection
14
    listKind: MeshFaultInjectionList
15
    plural: meshfaultinjections
16
    singular: meshfaultinjection
17
  scope: Namespaced
18
  versions:
19
  - additionalPrinterColumns:
20
    - jsonPath: .spec.targetRef.kind
21
      name: TargetRef Kind
22
      type: string
23
    - jsonPath: .spec.targetRef.name
24
      name: TargetRef Name
25
      type: string
26
    name: v1alpha1
27
    schema:
28
      openAPIV3Schema:
29
        properties:
30
          apiVersion:
31
            description: |-
32
              APIVersion defines the versioned schema of this representation of an object.
33
              Servers should convert recognized schemas to the latest internal value, and
34
              may reject unrecognized values.
35
              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
36
            type: string
37
          kind:
38
            description: |-
39
              Kind is a string value representing the REST resource this object represents.
40
              Servers may infer this from the endpoint the client submits requests to.
41
              Cannot be updated.
42
              In CamelCase.
43
              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
44
            type: string
45
          metadata:
46
            type: object
47
          spec:
48
            description: Spec is the specification of the Kuma MeshFaultInjection
49
              resource.
50
            properties:
51
              from:
52
                description: From list makes a match between clients and corresponding
53
                  configurations
54
                items:
55
                  properties:
56
                    default:
57
                      description: |-
58
                        Default is a configuration specific to the group of destinations referenced in
59
                        'targetRef'
60
                      properties:
61
                        http:
62
                          description: Http allows to define list of Http faults between
63
                            dataplanes.
64
                          items:
65
                            description: FaultInjection defines the configuration
66
                              of faults between dataplanes.
67
                            properties:
68
                              abort:
69
                                description: |-
70
                                  Abort defines a configuration of not delivering requests to destination
71
                                  service and replacing the responses from destination dataplane by
72
                                  predefined status code
73
                                properties:
74
                                  httpStatus:
75
                                    description: HTTP status code which will be returned
76
                                      to source side
77
                                    format: int32
78
                                    type: integer
79
                                  percentage:
80
                                    anyOf:
81
                                    - type: integer
82
                                    - type: string
83
                                    description: |-
84
                                      Percentage of requests on which abort will be injected, has to be
85
                                      either int or decimal represented as string.
86
                                    x-kubernetes-int-or-string: true
87
                                required:
88
                                - httpStatus
89
                                - percentage
90
                                type: object
91
                              delay:
92
                                description: Delay defines configuration of delaying
93
                                  a response from a destination
94
                                properties:
95
                                  percentage:
96
                                    anyOf:
97
                                    - type: integer
98
                                    - type: string
99
                                    description: |-
100
                                      Percentage of requests on which delay will be injected, has to be
101
                                      either int or decimal represented as string.
102
                                    x-kubernetes-int-or-string: true
103
                                  value:
104
                                    description: The duration during which the response
105
                                      will be delayed
106
                                    type: string
107
                                required:
108
                                - percentage
109
                                - value
110
                                type: object
111
                              responseBandwidth:
112
                                description: |-
113
                                  ResponseBandwidth defines a configuration to limit the speed of
114
                                  responding to the requests
115
                                properties:
116
                                  limit:
117
                                    description: |-
118
                                      Limit is represented by value measure in Gbps, Mbps, kbps, e.g.
119
                                      10kbps
120
                                    type: string
121
                                  percentage:
122
                                    anyOf:
123
                                    - type: integer
124
                                    - type: string
125
                                    description: |-
126
                                      Percentage of requests on which response bandwidth limit will be
127
                                      either int or decimal represented as string.
128
                                    x-kubernetes-int-or-string: true
129
                                required:
130
                                - limit
131
                                - percentage
132
                                type: object
133
                            type: object
134
                          type: array
135
                      type: object
136
                    targetRef:
137
                      description: |-
138
                        TargetRef is a reference to the resource that represents a group of
139
                        destinations.
140
                      properties:
141
                        kind:
142
                          description: Kind of the referenced resource
143
                          enum:
144
                          - Mesh
145
                          - MeshSubset
146
                          - MeshGateway
147
                          - MeshService
148
                          - MeshServiceSubset
149
                          - MeshHTTPRoute
150
                          type: string
151
                        mesh:
152
                          description: Mesh is reserved for future use to identify
153
                            cross mesh resources.
154
                          type: string
155
                        name:
156
                          description: |-
157
                            Name of the referenced resource. Can only be used with kinds: `MeshService`,
158
                            `MeshServiceSubset` and `MeshGatewayRoute`
159
                          type: string
160
                        proxyTypes:
161
                          description: |-
162
                            ProxyTypes specifies the data plane types that are subject to the policy. When not specified,
163
                            all data plane types are targeted by the policy.
164
                          items:
165
                            enum:
166
                            - Sidecar
167
                            - Gateway
168
                            type: string
169
                          minItems: 1
170
                          type: array
171
                        tags:
172
                          additionalProperties:
173
                            type: string
174
                          description: |-
175
                            Tags used to select a subset of proxies by tags. Can only be used with kinds
176
                            `MeshSubset` and `MeshServiceSubset`
177
                          type: object
178
                      type: object
179
                  required:
180
                  - targetRef
181
                  type: object
182
                type: array
183
              targetRef:
184
                description: |-
185
                  TargetRef is a reference to the resource the policy takes an effect on.
186
                  The resource could be either a real store object or virtual resource
187
                  defined inplace.
188
                properties:
189
                  kind:
190
                    description: Kind of the referenced resource
191
                    enum:
192
                    - Mesh
193
                    - MeshSubset
194
                    - MeshGateway
195
                    - MeshService
196
                    - MeshServiceSubset
197
                    - MeshHTTPRoute
198
                    type: string
199
                  mesh:
200
                    description: Mesh is reserved for future use to identify cross
201
                      mesh resources.
202
                    type: string
203
                  name:
204
                    description: |-
205
                      Name of the referenced resource. Can only be used with kinds: `MeshService`,
206
                      `MeshServiceSubset` and `MeshGatewayRoute`
207
                    type: string
208
                  proxyTypes:
209
                    description: |-
210
                      ProxyTypes specifies the data plane types that are subject to the policy. When not specified,
211
                      all data plane types are targeted by the policy.
212
                    items:
213
                      enum:
214
                      - Sidecar
215
                      - Gateway
216
                      type: string
217
                    minItems: 1
218
                    type: array
219
                  tags:
220
                    additionalProperties:
221
                      type: string
222
                    description: |-
223
                      Tags used to select a subset of proxies by tags. Can only be used with kinds
224
                      `MeshSubset` and `MeshServiceSubset`
225
                    type: object
226
                type: object
227
              to:
228
                description: To list makes a match between clients and corresponding
229
                  configurations
230
                items:
231
                  properties:
232
                    default:
233
                      description: |-
234
                        Default is a configuration specific to the group of destinations referenced in
235
                        'targetRef'
236
                      properties:
237
                        http:
238
                          description: Http allows to define list of Http faults between
239
                            dataplanes.
240
                          items:
241
                            description: FaultInjection defines the configuration
242
                              of faults between dataplanes.
243
                            properties:
244
                              abort:
245
                                description: |-
246
                                  Abort defines a configuration of not delivering requests to destination
247
                                  service and replacing the responses from destination dataplane by
248
                                  predefined status code
249
                                properties:
250
                                  httpStatus:
251
                                    description: HTTP status code which will be returned
252
                                      to source side
253
                                    format: int32
254
                                    type: integer
255
                                  percentage:
256
                                    anyOf:
257
                                    - type: integer
258
                                    - type: string
259
                                    description: |-
260
                                      Percentage of requests on which abort will be injected, has to be
261
                                      either int or decimal represented as string.
262
                                    x-kubernetes-int-or-string: true
263
                                required:
264
                                - httpStatus
265
                                - percentage
266
                                type: object
267
                              delay:
268
                                description: Delay defines configuration of delaying
269
                                  a response from a destination
270
                                properties:
271
                                  percentage:
272
                                    anyOf:
273
                                    - type: integer
274
                                    - type: string
275
                                    description: |-
276
                                      Percentage of requests on which delay will be injected, has to be
277
                                      either int or decimal represented as string.
278
                                    x-kubernetes-int-or-string: true
279
                                  value:
280
                                    description: The duration during which the response
281
                                      will be delayed
282
                                    type: string
283
                                required:
284
                                - percentage
285
                                - value
286
                                type: object
287
                              responseBandwidth:
288
                                description: |-
289
                                  ResponseBandwidth defines a configuration to limit the speed of
290
                                  responding to the requests
291
                                properties:
292
                                  limit:
293
                                    description: |-
294
                                      Limit is represented by value measure in Gbps, Mbps, kbps, e.g.
295
                                      10kbps
296
                                    type: string
297
                                  percentage:
298
                                    anyOf:
299
                                    - type: integer
300
                                    - type: string
301
                                    description: |-
302
                                      Percentage of requests on which response bandwidth limit will be
303
                                      either int or decimal represented as string.
304
                                    x-kubernetes-int-or-string: true
305
                                required:
306
                                - limit
307
                                - percentage
308
                                type: object
309
                            type: object
310
                          type: array
311
                      type: object
312
                    targetRef:
313
                      description: |-
314
                        TargetRef is a reference to the resource that represents a group of
315
                        destinations.
316
                      properties:
317
                        kind:
318
                          description: Kind of the referenced resource
319
                          enum:
320
                          - Mesh
321
                          - MeshSubset
322
                          - MeshGateway
323
                          - MeshService
324
                          - MeshServiceSubset
325
                          - MeshHTTPRoute
326
                          type: string
327
                        mesh:
328
                          description: Mesh is reserved for future use to identify
329
                            cross mesh resources.
330
                          type: string
331
                        name:
332
                          description: |-
333
                            Name of the referenced resource. Can only be used with kinds: `MeshService`,
334
                            `MeshServiceSubset` and `MeshGatewayRoute`
335
                          type: string
336
                        proxyTypes:
337
                          description: |-
338
                            ProxyTypes specifies the data plane types that are subject to the policy. When not specified,
339
                            all data plane types are targeted by the policy.
340
                          items:
341
                            enum:
342
                            - Sidecar
343
                            - Gateway
344
                            type: string
345
                          minItems: 1
346
                          type: array
347
                        tags:
348
                          additionalProperties:
349
                            type: string
350
                          description: |-
351
                            Tags used to select a subset of proxies by tags. Can only be used with kinds
352
                            `MeshSubset` and `MeshServiceSubset`
353
                          type: object
354
                      type: object
355
                  required:
356
                  - targetRef
357
                  type: object
358
                type: array
359
            required:
360
            - targetRef
361
            type: object
362
        type: object
363
    served: true
364
    storage: true
365
    subresources: {}
366

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.