Skip to content
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

wasm: clarify how configuration is passed #10782

Merged
merged 9 commits into from
Apr 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion api/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ proto_library(
"//envoy/config/transport_socket/alts/v2alpha:pkg",
"//envoy/config/transport_socket/raw_buffer/v2:pkg",
"//envoy/config/transport_socket/tap/v2alpha:pkg",
"//envoy/config/wasm/v2alpha:pkg",
"//envoy/data/accesslog/v2:pkg",
"//envoy/data/cluster/v2alpha:pkg",
"//envoy/data/core/v2alpha:pkg",
Expand Down
12 changes: 0 additions & 12 deletions api/envoy/config/wasm/v2alpha/BUILD

This file was deleted.

83 changes: 0 additions & 83 deletions api/envoy/config/wasm/v2alpha/wasm.proto

This file was deleted.

1 change: 0 additions & 1 deletion api/envoy/extensions/wasm/v3/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ licenses(["notice"]) # Apache 2
api_proto_package(
deps = [
"//envoy/config/core/v3:pkg",
"//envoy/config/wasm/v2alpha:pkg",
"@com_github_cncf_udpa//udpa/annotations:pkg",
],
)
16 changes: 7 additions & 9 deletions api/envoy/extensions/wasm/v3/wasm.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Copy link
Member

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_start instead of proxy_on_start for consistency with https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXT

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

// 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.
Expand All @@ -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.
Expand All @@ -70,6 +68,9 @@ message PluginConfig {

// Filter/service configuration used to configure or reconfigure a plugin
// (proxy_on_configuration).
Copy link
Member

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_configure instead of proxy_on_configuration for consistency with https://github.com/proxy-wasm/spec/tree/master/abi-versions/vNEXT

// `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;
}

Expand All @@ -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;

Expand Down
1 change: 0 additions & 1 deletion api/versioning/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ proto_library(
"//envoy/config/transport_socket/alts/v2alpha:pkg",
"//envoy/config/transport_socket/raw_buffer/v2:pkg",
"//envoy/config/transport_socket/tap/v2alpha:pkg",
"//envoy/config/wasm/v2alpha:pkg",
"//envoy/data/accesslog/v2:pkg",
"//envoy/data/cluster/v2alpha:pkg",
"//envoy/data/core/v2alpha:pkg",
Expand Down
1 change: 0 additions & 1 deletion docs/root/api-v2/config/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ Extensions
grpc_credential/grpc_credential
retry/retry
trace/trace
wasm/wasm
8 changes: 0 additions & 8 deletions docs/root/api-v2/config/wasm/wasm.rst

This file was deleted.

1 change: 0 additions & 1 deletion generated_api_shadow/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ proto_library(
"//envoy/config/transport_socket/alts/v2alpha:pkg",
"//envoy/config/transport_socket/raw_buffer/v2:pkg",
"//envoy/config/transport_socket/tap/v2alpha:pkg",
"//envoy/config/wasm/v2alpha:pkg",
"//envoy/data/accesslog/v2:pkg",
"//envoy/data/accesslog/v3:pkg",
"//envoy/data/cluster/v2alpha:pkg",
Expand Down
12 changes: 0 additions & 12 deletions generated_api_shadow/envoy/config/wasm/v2alpha/BUILD

This file was deleted.

83 changes: 0 additions & 83 deletions generated_api_shadow/envoy/config/wasm/v2alpha/wasm.proto

This file was deleted.

1 change: 0 additions & 1 deletion generated_api_shadow/envoy/extensions/wasm/v3/BUILD

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 12 additions & 14 deletions generated_api_shadow/envoy/extensions/wasm/v3/wasm.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.