forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: remove deprecated fields of regex matching (envoyproxy#21846)
The patch does following up jobs of envoyproxy#21633, 1. removes deprecated fields of regex matching in docs and examples, 2. add the missing deprecation changelog, 3. add the missing extension category and extensions. Risk Level: Low Testing: N/A Docs Changes: Yes (examples) Release Notes: Added Platform Specific Features: N/A Signed-off-by: Xie Zhihao <[email protected]>
- Loading branch information
Showing
16 changed files
with
453 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
docs/root/configuration/http/http_filters/_include/header-to-metadata-filter-cookies.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
static_resources: | ||
listeners: | ||
- address: | ||
socket_address: | ||
address: 0.0.0.0 | ||
port_value: 80 | ||
filter_chains: | ||
- filters: | ||
- name: envoy.filters.network.http_connection_manager | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | ||
codec_type: AUTO | ||
stat_prefix: ingress_http | ||
route_config: | ||
name: local_route | ||
virtual_hosts: | ||
- name: app | ||
domains: | ||
- "*" | ||
routes: | ||
- match: | ||
prefix: "/" | ||
route: | ||
cluster: versioned-cluster | ||
http_filters: | ||
- name: envoy.filters.http.header_to_metadata | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.http.header_to_metadata.v3.Config | ||
request_rules: | ||
- cookie: cookie | ||
on_header_present: | ||
metadata_namespace: envoy.lb | ||
key: version | ||
type: STRING | ||
on_header_missing: | ||
metadata_namespace: envoy.lb | ||
key: default | ||
value: 'true' | ||
type: STRING | ||
remove: false | ||
- name: envoy.filters.http.router | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router | ||
|
||
clusters: | ||
- name: versioned-cluster | ||
type: STRICT_DNS | ||
lb_policy: ROUND_ROBIN | ||
load_assignment: | ||
cluster_name: versioned-cluster | ||
endpoints: | ||
- lb_endpoints: | ||
- endpoint: | ||
address: | ||
socket_address: | ||
address: 127.0.0.1 | ||
port_value: 8080 |
54 changes: 54 additions & 0 deletions
54
...onfiguration/http/http_filters/_include/header-to-metadata-filter-regex-substitution.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
static_resources: | ||
listeners: | ||
- address: | ||
socket_address: | ||
address: 0.0.0.0 | ||
port_value: 80 | ||
filter_chains: | ||
- filters: | ||
- name: envoy.filters.network.http_connection_manager | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | ||
codec_type: AUTO | ||
stat_prefix: ingress_http | ||
route_config: | ||
name: local_route | ||
virtual_hosts: | ||
- name: app | ||
domains: | ||
- "*" | ||
routes: | ||
- match: | ||
prefix: "/" | ||
route: | ||
cluster: versioned-cluster | ||
http_filters: | ||
- name: envoy.filters.http.header_to_metadata | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.http.header_to_metadata.v3.Config | ||
request_rules: | ||
- header: ":path" | ||
on_header_present: | ||
metadata_namespace: envoy.lb | ||
key: cluster | ||
regex_value_rewrite: | ||
pattern: | ||
regex: "^/(cluster[\\d\\w-]+)/?.*$" | ||
substitution: "\\1" | ||
- name: envoy.filters.http.router | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router | ||
|
||
clusters: | ||
- name: versioned-cluster | ||
type: STRICT_DNS | ||
lb_policy: ROUND_ROBIN | ||
load_assignment: | ||
cluster_name: versioned-cluster | ||
endpoints: | ||
- lb_endpoints: | ||
- endpoint: | ||
address: | ||
socket_address: | ||
address: 127.0.0.1 | ||
port_value: 8080 |
83 changes: 83 additions & 0 deletions
83
...root/configuration/http/http_filters/_include/header-to-metadata-filter-route-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
static_resources: | ||
listeners: | ||
- address: | ||
socket_address: | ||
address: 0.0.0.0 | ||
port_value: 80 | ||
filter_chains: | ||
- filters: | ||
- name: envoy.filters.network.http_connection_manager | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | ||
codec_type: AUTO | ||
stat_prefix: ingress_http | ||
route_config: | ||
name: local_route | ||
virtual_hosts: | ||
- name: local_service | ||
domains: | ||
- "*" | ||
routes: | ||
- match: | ||
prefix: "/version-to-metadata" | ||
route: | ||
cluster: service | ||
typed_per_filter_config: | ||
envoy.filters.http.header_to_metadata: | ||
"@type": type.googleapis.com/envoy.extensions.filters.http.header_to_metadata.v3.Config | ||
request_rules: | ||
- header: x-version | ||
on_header_present: | ||
metadata_namespace: envoy.lb | ||
key: version | ||
type: STRING | ||
remove: false | ||
- match: | ||
prefix: "/" | ||
route: | ||
cluster: some_service | ||
http_filters: | ||
- name: envoy.filters.http.header_to_metadata | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.http.header_to_metadata.v3.Config | ||
request_rules: | ||
- header: x-version | ||
on_header_present: | ||
metadata_namespace: envoy.lb | ||
key: version | ||
type: STRING | ||
on_header_missing: | ||
metadata_namespace: envoy.lb | ||
key: default | ||
value: "true" | ||
type: STRING | ||
remove: false | ||
- name: envoy.filters.http.router | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router | ||
|
||
clusters: | ||
- name: service | ||
type: STRICT_DNS | ||
lb_policy: ROUND_ROBIN | ||
load_assignment: | ||
cluster_name: service | ||
endpoints: | ||
- lb_endpoints: | ||
- endpoint: | ||
address: | ||
socket_address: | ||
address: 127.0.0.1 | ||
port_value: 8080 | ||
- name: some_service | ||
type: STRICT_DNS | ||
lb_policy: ROUND_ROBIN | ||
load_assignment: | ||
cluster_name: some_service | ||
endpoints: | ||
- lb_endpoints: | ||
- endpoint: | ||
address: | ||
socket_address: | ||
address: 127.0.0.1 | ||
port_value: 8081 |
78 changes: 78 additions & 0 deletions
78
docs/root/configuration/http/http_filters/_include/header-to-metadata-filter.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
static_resources: | ||
listeners: | ||
- address: | ||
socket_address: | ||
address: 0.0.0.0 | ||
port_value: 80 | ||
filter_chains: | ||
- filters: | ||
- name: envoy.filters.network.http_connection_manager | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | ||
codec_type: AUTO | ||
stat_prefix: ingress_http | ||
route_config: | ||
name: local_route | ||
virtual_hosts: | ||
- name: app | ||
domains: | ||
- "*" | ||
routes: | ||
- match: | ||
prefix: "/" | ||
route: | ||
cluster: versioned-cluster | ||
http_filters: | ||
- name: envoy.filters.http.header_to_metadata | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.http.header_to_metadata.v3.Config | ||
request_rules: | ||
- header: x-version | ||
on_header_present: | ||
metadata_namespace: envoy.lb | ||
key: version | ||
type: STRING | ||
on_header_missing: | ||
metadata_namespace: envoy.lb | ||
key: default | ||
value: "true" | ||
type: STRING | ||
remove: false | ||
- name: envoy.filters.http.router | ||
typed_config: | ||
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router | ||
|
||
clusters: | ||
- name: versioned-cluster | ||
type: STRICT_DNS | ||
lb_policy: ROUND_ROBIN | ||
lb_subset_config: | ||
fallback_policy: ANY_ENDPOINT | ||
subset_selectors: | ||
- keys: | ||
- default | ||
- keys: | ||
- version | ||
load_assignment: | ||
cluster_name: versioned-cluster | ||
endpoints: | ||
- lb_endpoints: | ||
- endpoint: | ||
address: | ||
socket_address: | ||
address: 127.0.0.1 | ||
port_value: 8080 | ||
metadata: | ||
filter_metadata: | ||
envoy.lb: | ||
default: "true" | ||
- lb_endpoints: | ||
- endpoint: | ||
address: | ||
socket_address: | ||
address: 127.0.0.1 | ||
port_value: 8081 | ||
metadata: | ||
filter_metadata: | ||
envoy.lb: | ||
version: "1.0" |
Oops, something went wrong.