Skip to content

Commit

Permalink
echance: fault injection HttpMatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Eikykun committed Jan 31, 2024
1 parent d13cc87 commit ae3ab04
Show file tree
Hide file tree
Showing 14 changed files with 619 additions and 1,358 deletions.
62 changes: 26 additions & 36 deletions config/crd/bases/ctrlmesh.kusionstack.io_faultinjections.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,50 +108,40 @@ spec:
description: Match specifies a set of criterion to be met in
order for the rule to be applied to the HTTP request.
properties:
contentMatch:
description: ContentMatch
items:
properties:
contents:
description: Content is the content of the fault injection
rule
items:
type: string
type: array
matchType:
type: string
methods:
description: 'Method specifies the http method of
the request, like: PUT, POST, GET, DELETE.'
items:
type: string
type: array
required:
- contents
- methods
type: object
type: array
httpMatch:
items:
description: HttpMatch specifies the criteria for matching
HTTP requests to RESTful resources as part of HTTP FaultInjection.
Each rule can target one or more URLs and HTTP methods.
properties:
method:
description: 'Method specifies the http method of
the request, like: PUT, POST, GET, DELETE.'
headers:
description: 'TODO: header match'
items:
type: string
properties:
name:
type: string
value:
type: string
required:
- name
type: object
type: array
url:
description: URL gives the location of the rest request,
in standard URL form (`scheme://host:port/path`)
items:
type: string
type: array
required:
- method
- url
host:
properties:
exact:
type: string
regex:
type: string
type: object
method:
type: string
path:
properties:
exact:
type: string
regex:
type: string
type: object
type: object
type: array
resources:
Expand Down
Loading

0 comments on commit ae3ab04

Please sign in to comment.