-
Notifications
You must be signed in to change notification settings - Fork 3.9k
xds: Envoy proto sync to 2022-04-08 #9101
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
Conversation
ddfb464 to
b18caf3
Compare
|
@sanjaypujare FYI field |
Correct but unless Traffic Director stops using the deprecated fields we cannot make the change unilaterally on our side |
|
@sanjaypujare Yes, just a heads up. What we could do is to add support for the new field, while keeping the deprecated field. Up to you though, I just wanted to inform you of the deprecation. |
Already done! Although not tested with a real xDS control plane since we don't have any to test with |
|
Wait, with what field did it get replaced? I tried to update tests to replace it with |
I may have misunderstood or misspoke. May be the subject_alt_name needs to be implemented because it's a recent addition. Good point. BTW all other languages also need the change |
|
Ah, glad we figured it out. Let me know if there's anything I can do to help with the review. Going through each commit is probably the easiest. |
BTW, I don't think you should remove or update any tests using deprecated fields just yet. We depend on these tests to ensure interoperability with other components (e.g. Traffic Director) until we verify that the deprecated fields have been completely replaced by these other components. |
|
I didn't remove them, just added |
sanjaypujare
left a comment
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.
LGTM
Proto updates
cncf/xds: Sort xds/import.sh protos alphabeticallycncf/xds: Sync protos to cncf/xds@d92e9ce (commit 2021-12-16, corresponding to envoy cl/440193522). It's a no-op for used protos, but helpful to import the latest matcher.protocncf/xds: Import xds/type/matcher/v3/matcher.proto with dependenciesenvoyproxy/protoc-gen-validate: Sync protos to bufbuild/protoc-gen-validate@dfcdc5e (commit 2022-03-10, corresponding to envoy cl/440193522) to pick up ignore_empty field required for the following envoy syncenvoyproxy/envoySync protos to envoyproxy/envoy@e33f444 (commit 2022-04-07, cl/440193522). This is the minimal version needed to pick upClusterSpecifierPlugin.is_optional.a. Generated code:
AggregatedDiscoveryServiceGrpcwas regenerated from the updated proto. This is a no-op, just a minor change to the docblocks.b. Deprecated fields had to be taken care of manually, see "Manual updates to the code" below.
envoyproxy/envoySync protos to the latest imported version envoyproxy/envoy@5d74719 (commit 2022-04-08, cl/443359189). Not needed for anything specific, just the last version, and was easy to import.Manual updates to the code
As the result of envoyproxy/envoy@e33f444 sync:
ConfigSource.pathreplaced with theConfigSource.path_config_sourcein test fake resources. TheConfigSource.pathisn't in active code paths, so no prod code changes needed.CertificateValidationContext.match_subject_alt_namesdeprecations in test files. Surprisingly, we don't report deprecations in prod files, despite the fact this field is used in prod code a few times.