-
Notifications
You must be signed in to change notification settings - Fork 5.3k
wasm: clarify how configuration is passed #10782
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
Changes from all commits
f5c07eb
27d0595
0a54834
d29834a
2f5a784
10f7c94
bc0c2ad
5aaef09
283d608
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,8 +21,6 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE; | |
| // [#next-free-field: 6] | ||
| // [#not-implemented-hide:] pending implementation. | ||
| message VmConfig { | ||
| option (udpa.annotations.versioning).previous_message_type = "envoy.config.wasm.v2alpha.VmConfig"; | ||
|
|
||
| // An ID which will be used along with a hash of the wasm code (or the name of the registered Null | ||
| // VM plugin) to determine which VM will be used for the plugin. All plugins which use the same | ||
| // *vm_id* and code will use the same VM. May be left blank. Sharing a VM between plugins can | ||
|
|
@@ -36,7 +34,10 @@ message VmConfig { | |
| // The Wasm code that Envoy will execute. | ||
| config.core.v3.AsyncDataSource code = 3; | ||
|
|
||
| // The Wasm configuration used in initialization of a new VM (proxy_on_start). | ||
| // The Wasm configuration used in initialization of a new VM | ||
| // (proxy_on_start). `google.protobuf.Struct` is serialized as JSON before | ||
| // passing it to the plugin. `google.protobuf.BytesValue` and | ||
| // `google.protobuf.StringValue` are passed directly without the wrapper. | ||
| google.protobuf.Any configuration = 4; | ||
|
|
||
| // Allow the wasm file to include pre-compiled code on VMs which support it. | ||
|
|
@@ -49,9 +50,6 @@ message VmConfig { | |
| // [#next-free-field: 6] | ||
| // [#not-implemented-hide:] pending implementation. | ||
| message PluginConfig { | ||
| option (udpa.annotations.versioning).previous_message_type = | ||
| "envoy.config.wasm.v2alpha.PluginConfig"; | ||
|
|
||
| // A unique name for a filters/services in a VM for use in identifying the filter/service if | ||
| // multiple filters/services are handled by the same *vm_id* and *group_name* and for | ||
| // logging/debugging. | ||
|
|
@@ -70,6 +68,9 @@ message PluginConfig { | |
|
|
||
| // Filter/service configuration used to configure or reconfigure a plugin | ||
| // (proxy_on_configuration). | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's use name |
||
| // `google.protobuf.Struct` is serialized as JSON before | ||
| // passing it to the plugin. `google.protobuf.BytesValue` and | ||
| // `google.protobuf.StringValue` are passed directly without the wrapper. | ||
| google.protobuf.Any configuration = 5; | ||
| } | ||
|
|
||
|
|
@@ -78,9 +79,6 @@ message PluginConfig { | |
| // create a Wasm Service. | ||
| // [#not-implemented-hide:] pending implementation. | ||
| message WasmService { | ||
| option (udpa.annotations.versioning).previous_message_type = | ||
| "envoy.config.wasm.v2alpha.WasmService"; | ||
|
|
||
| // General plugin configuration. | ||
| PluginConfig config = 1; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,4 +17,3 @@ Extensions | |
| grpc_credential/grpc_credential | ||
| retry/retry | ||
| trace/trace | ||
| wasm/wasm | ||
This file was deleted.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use name
proxy_on_vm_startinstead ofproxy_on_startfor consistency with https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXTThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we leave the naming for later? It's guaranteed to churn endlessly and will only freeze when the code lands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure