Skip to content

Commit c854bdf

Browse files
committed
OSSMDOC-347: WASM Extensions support is always enabled
There's no need to explain how to enable it. Also, while on it, made some changes to reflect the state of WASM support in 2.1.
1 parent 5dc2bf5 commit c854bdf

File tree

3 files changed

+7
-40
lines changed

3 files changed

+7
-40
lines changed

modules/ossm-extensions-wasm-deploy.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
.Example ServiceMeshExtension resource extension.yaml
1111
[source,yaml]
1212
----
13-
apiVersion: maistra.io/v1alpha1
13+
apiVersion: maistra.io/v1
1414
kind: ServiceMeshExtension
1515
metadata:
1616
name: header-append
@@ -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)