Skip to content

Commit 471ab63

Browse files
committed
docs: fix wasm plugin configuration structure
1 parent 6aee2e2 commit 471ab63

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

charts/apisix/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,7 @@ The command removes all the Kubernetes components associated with the chart and
134134
| apisix.vault.timeout | int | `10` | HTTP timeout for each request. |
135135
| apisix.vault.token | string | `""` | The generated token from vault instance that can grant access to read data from the vault. |
136136
| apisix.wasm.enabled | bool | `false` | Enable Wasm Plugins. See [wasm plugin](https://apisix.apache.org/docs/apisix/next/wasm/). |
137-
| apisix.wasm.file | string | `""` | Set path to Wasm plugin. |
138-
| apisix.wasm.http_request_phase | string | `"rewrite"` | Set the HTTP request phase in which the plugin should run. |
139-
| apisix.wasm.plugins | list | `[]` | Set Wasm plugin name. |
140-
| apisix.wasm.priority | int | `7999` | Set wasm plugin priority. |
137+
| apisix.wasm.plugins | list | `[]` | Set Wasm plugins. Each item supports fields such as name, priority, file, and http_request_phase. |
141138
| autoscaling.enabled | bool | `false` | |
142139
| autoscaling.maxReplicas | int | `100` | |
143140
| autoscaling.minReplicas | int | `1` | |

charts/apisix/values.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -556,14 +556,13 @@ apisix:
556556
wasm:
557557
# -- Enable Wasm Plugins. See [wasm plugin](https://apisix.apache.org/docs/apisix/next/wasm/).
558558
enabled: false
559-
# -- Set Wasm plugin name.
559+
# -- Set Wasm plugins. Each item supports fields such as name, priority, file, and http_request_phase.
560+
# plugins:
561+
# - name: "example-plugin"
562+
# priority: 7999
563+
# file: "/path/to/plugin.wasm"
564+
# http_request_phase: "rewrite"
560565
plugins: []
561-
# -- Set wasm plugin priority.
562-
priority: 7999
563-
# -- Set path to Wasm plugin.
564-
file: ""
565-
# -- Set the HTTP request phase in which the plugin should run.
566-
http_request_phase: rewrite
567566

568567
# -- customPlugins allows you to mount your own HTTP plugins.
569568
customPlugins:

0 commit comments

Comments
 (0)