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

Fix envoy deprecated fields #1076

Merged

Conversation

norbjd
Copy link
Contributor

@norbjd norbjd commented Jul 22, 2023

Changes

  • 🧹 Replace envoy deprecated fields

/kind cleanup

I've noticed some warning logs in the gateway, due to the use of deprecated fields of Envoy. The most problematic is the following one, related to HeaderValueOption.Append, who appears every time a new ingress is added/updated/deleted, making the gateway logs unreadable because of the noise:

[2023-07-22 14:01:08.253][1][warning][misc] [source/common/protobuf/message_validator_impl.cc:21] Deprecated field: type envoy.config.core.v3.HeaderValueOption Using deprecated option 'envoy.config.core.v3.HeaderValueOption.append' from file base.proto. This configuration will be removed from Envoy soon. Please see https://www.envoyproxy.io/docs/envoy/latest/version_history/version_history for details. If continued use of this field is absolutely necessary, see https://www.envoyproxy.io/docs/envoy/latest/configuration/operations/runtime#using-runtime-overrides-for-deprecated-features for how to apply a temporary and highly discouraged override.

I've replaced it with AppendAction, as Envoy docs states.

I've also seen these warning logs when gateway starts (related to google_re2 and exact_match in the bootstrap config:

[2023-07-22 15:04:43.553][1][warning][misc] [source/common/protobuf/message_validator_impl.cc:21] Deprecated field: type envoy.type.matcher.v3.RegexMatcher Using deprecated option 'envoy.type.matcher.v3.RegexMatcher.google_re2' from file regex.proto. This configuration will be removed from Envoy soon. Please see https://www.envoyproxy.io/docs/envoy/latest/version_history/version_history for details. If continued use of this field is absolutely necessary, see https://www.envoyproxy.io/docs/envoy/latest/configuration/operations/runtime#using-runtime-overrides-for-deprecated-features for how to apply a temporary and highly discouraged override.

[2023-07-22 15:04:43.553][1][warning][misc] [source/common/protobuf/message_validator_impl.cc:21] Deprecated field: type envoy.config.route.v3.HeaderMatcher Using deprecated option 'envoy.config.route.v3.HeaderMatcher.exact_match' from file route_components.proto. This configuration will be removed from Envoy soon. Please see https://www.envoyproxy.io/docs/envoy/latest/version_history/version_history for details. If continued use of this field is absolutely necessary, see https://www.envoyproxy.io/docs/envoy/latest/configuration/operations/runtime#using-runtime-overrides-for-deprecated-features for how to apply a temporary and highly discouraged override.

This Pull Request fixes all the warnings above. I've ran a random e2e test to check these warnings were not appearing anymore in the gateway logs.

Release Note

Fix deprecated Envoy fields

@knative-prow knative-prow bot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Jul 22, 2023
@knative-prow knative-prow bot requested review from KauzClay and nak3 July 22, 2023 15:30
@knative-prow knative-prow bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 22, 2023
@knative-prow knative-prow bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 22, 2023
@codecov
Copy link

codecov bot commented Jul 22, 2023

Codecov Report

Merging #1076 (8c3eae9) into main (c90234c) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1076   +/-   ##
=======================================
  Coverage   80.00%   80.00%           
=======================================
  Files          18       18           
  Lines        1430     1430           
=======================================
  Hits         1144     1144           
  Misses        229      229           
  Partials       57       57           
Files Changed Coverage Δ
pkg/envoy/api/headers.go 100.00% <100.00%> (ø)

@norbjd
Copy link
Contributor Author

norbjd commented Jul 22, 2023

Don't know why the CI failed with timeouts when running the e2e conformance tests using proxyv2-ubi8:2.3-latest 😢

@nak3
Copy link
Contributor

nak3 commented Aug 14, 2023

Thank you for working on this and sorry for the late response. #1091 will drop maistra 2.3 so we can merge this.

@nak3 nak3 closed this Aug 14, 2023
@nak3 nak3 reopened this Aug 14, 2023
@nak3
Copy link
Contributor

nak3 commented Aug 14, 2023

/lgtm
/approve

@knative-prow knative-prow bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 14, 2023
@nak3
Copy link
Contributor

nak3 commented Aug 14, 2023

/override "e2e tests (v1.25.x, quay.io/maistra-dev/proxyv2-ubi8:2.3-latest, plain)"

@knative-prow
Copy link

knative-prow bot commented Aug 14, 2023

@nak3: nak3 unauthorized: /override is restricted to Repo administrators.

In response to this:

/override "e2e tests (v1.25.x, quay.io/maistra-dev/proxyv2-ubi8:2.3-latest, plain)"

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@nak3
Copy link
Contributor

nak3 commented Aug 15, 2023

@norbjd Sorry for bothering you but could you try to rebase this? I don't have a permission to ignore the CI error.

@knative-prow knative-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 15, 2023
@nak3
Copy link
Contributor

nak3 commented Aug 15, 2023

/lgtm
/approve

Thank you!

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Aug 15, 2023
@knative-prow
Copy link

knative-prow bot commented Aug 15, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nak3, norbjd

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@norbjd
Copy link
Contributor Author

norbjd commented Aug 15, 2023

Should be good now, all tests are passing 🥳 thanks!

@knative-prow knative-prow bot merged commit 2ce5c27 into knative-extensions:main Aug 15, 2023
41 checks passed
@norbjd norbjd deleted the fix-envoy-deprecated-fields branch June 23, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants