add guestConfig metadata doc for wasm middleware

Signed-off-by: zhangchao <zchao9100@gmail.com>
This commit is contained in:
zhangchao 2023-07-25 15:48:07 +08:00
parent dfc3a2c657
commit ff722225b5
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,8 @@ spec:
metadata:
- name: url
value: "file://router.wasm"
- guestConfig
value: {"environment":"production"}
```
## Spec metadata fields
@ -45,6 +47,7 @@ How to compile this is described later.
| Field | Details | Required | Example |
|-------|----------------------------------------------------------------|----------|----------------|
| url | The URL of the resource including the Wasm binary to instantiate. The supported schemes include `file://`. The path of a `file://` URL is relative to the Dapr process unless it begins with `/`. | true | `file://hello.wasm` |
| guestConfig | The configuration for the wasm function, its format depends on how the wasm function parses it. | false | `enviroment=production`,`{"environment":"production"}` |
## Dapr configuration