Skip to content

Commit 1c3f5bd

Browse files
authored
Merge pull request #33531 from jwendell/OSSMDOC-347
OSSMDOC-347: WASM Extensions support is always enabled
2 parents 7a43e0d + c854bdf commit 1c3f5bd

File tree

3 files changed

+6
-39
lines changed

3 files changed

+6
-39
lines changed

modules/ossm-extensions-wasm-deploy.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ spec:
1919
workloadSelector:
2020
labels:
2121
app: httpbin
22-
config: test
23-
image: quay.io/maistra-dev/header-append-filter:2.0
22+
config:
23+
first-header: some-value
24+
another-header: another-value
25+
image: quay.io/maistra-dev/header-append-filter:2.1
2426
phase: PostAuthZ
2527
priority: 100
2628
----

modules/ossm-extensions-wasm-support.adoc

Lines changed: 0 additions & 33 deletions
This file was deleted.

service_mesh/v2x/ossm-extensions.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ module: extension.wasm
9191

9292
=== Example Rust extension
9393

94-
For a complete example that was built using the Rust SDK, take a look at the link:https://github.com/maistra/header-append-filter[header-append-filter]. The filter appends a header, called `custom-header`, to all responses, with the value depending on its configuration.
95-
96-
include::modules/ossm-extensions-wasm-support.adoc[leveloffset=+2]
94+
For a complete example that was built using the Rust SDK, take a look at the link:https://github.com/maistra/header-append-filter[header-append-filter]. It is a simple filter that appends one or more headers to the HTTP responses, with their names and values taken out from the `config` field of the extension. See a sample configuration in the snippet below.
9795

9896
include::modules/ossm-extensions-wasm-deploy.adoc[leveloffset=+2]
9997

@@ -108,7 +106,7 @@ include::modules/ossm-extensions-wasm-deploy.adoc[leveloffset=+2]
108106
|The `spec.workloadSelector` field has the same semantic as the `spec.selector` field of the link:https://istio.io/v1.6/docs/reference/config/networking/gateway/#Gateway[Istio Gateway resource]. It will match a workload based on its Pod labels. If no `workloadSelector` is specified, the extension will be applied to all workloads in the namespace.
109107

110108
|spec.config
111-
|This is a pass-through string field that is handed over to the extension. Syntax and semantics are dependent on the extension that you are deploying.
109+
|This is a structured field that will be handed over to the extension, with the semantics dependent on the extension you are deploying.
112110

113111
|spec.image
114112
|A container image URI pointing to the image that holds the extension.

0 commit comments

Comments
 (0)