Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance: update FaultInjection api #31

Merged
merged 4 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading