Skip to content

Commit 24a78d2

Browse files
authored
update deprecated field in EnvoyFilter example (#2713)
1 parent 5e59387 commit 24a78d2

File tree

3 files changed

+42
-39
lines changed

3 files changed

+42
-39
lines changed

networking/v1alpha3/envoy_filter.pb.go

Lines changed: 14 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

networking/v1alpha3/envoy_filter.pb.html

Lines changed: 14 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

networking/v1alpha3/envoy_filter.proto

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -139,19 +139,20 @@ import "networking/v1alpha3/sidecar.proto";
139139
// name: envoy.filters.http.lua
140140
// typed_config:
141141
// "@type": "type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua"
142-
// inlineCode: |
143-
// function envoy_on_request(request_handle)
144-
// -- Make an HTTP call to an upstream host with the following headers, body, and timeout.
145-
// local headers, body = request_handle:httpCall(
146-
// "lua_cluster",
147-
// {
148-
// [":method"] = "POST",
149-
// [":path"] = "/acl",
150-
// [":authority"] = "internal.org.net"
151-
// },
152-
// "authorize call",
153-
// 5000)
154-
// end
142+
// defaultSourceCode:
143+
// inlineString: |
144+
// function envoy_on_request(request_handle)
145+
// -- Make an HTTP call to an upstream host with the following headers, body, and timeout.
146+
// local headers, body = request_handle:httpCall(
147+
// "lua_cluster",
148+
// {
149+
// [":method"] = "POST",
150+
// [":path"] = "/acl",
151+
// [":authority"] = "internal.org.net"
152+
// },
153+
// "authorize call",
154+
// 5000)
155+
// end
155156
// # The second patch adds the cluster that is referenced by the lua code
156157
// # cds match is omitted as a new cluster is being added
157158
// - applyTo: CLUSTER

0 commit comments

Comments
 (0)