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

udpa: UDPA URI encoding/decoding utils. #11678

Merged
merged 7 commits into from
Jun 25, 2020

Conversation

htuch
Copy link
Member

@htuch htuch commented Jun 21, 2020

These map between the structured udpa::core::v1::ResourceName message and flat udpa:// URI
representations of resource names.

Risk level: Low
Testing: Unit tests added.

Part of #11264.

Signed-off-by: Harvey Tuch htuch@google.com

htuch added 3 commits June 21, 2020 18:15
* Fix an off-by-one bug in PercentEncoding::encode.

* Generalize from '%' to arbitrary visible reserved chars.

This change was motivated by a larger patch that provides encoding/decoding of udpa:// URIs, as part
of envoyproxy#11264.

Risk level: Low
Testing: Additional unit tests.

Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: Harvey Tuch <htuch@google.com>
These map between the structured udpa::core::v1::ResourceName message and flat udpa:// URI
representations of resource names.

Risk level: Low
Testing: Unit tests added.

Part of envoyproxy#11264.

Signed-off-by: Harvey Tuch <htuch@google.com>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/.
CC @envoyproxy/api-watchers: FYI only for changes made to api/.

🐱

Caused by: #11678 was opened by htuch.

see: more, trace.

@htuch
Copy link
Member Author

htuch commented Jun 21, 2020

This relies on #11677 and cncf/udpa#29 merging first.

Copy link
Contributor

@markdroth markdroth left a comment

Choose a reason for hiding this comment

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

Just a few minor comments. Overall, this looks fine.

source/common/config/udpa_resource.cc Outdated Show resolved Hide resolved
source/common/config/udpa_resource.cc Outdated Show resolved Hide resolved
source/common/config/udpa_resource.cc Outdated Show resolved Hide resolved
source/common/config/udpa_resource.cc Outdated Show resolved Hide resolved
Signed-off-by: Harvey Tuch <htuch@google.com>
@htuch
Copy link
Member Author

htuch commented Jun 25, 2020

@mattklein123 I think this is ready for review.

Signed-off-by: Harvey Tuch <htuch@google.com>
@htuch htuch merged commit a707b46 into envoyproxy:master Jun 25, 2020
@htuch htuch deleted the xds-transport-next branch June 25, 2020 19:24
songhu pushed a commit to songhu/envoy that referenced this pull request Jun 25, 2020
These map between the structured udpa::core::v1::ResourceName message and flat udpa:// URI
representations of resource names.

Risk level: Low
Testing: Unit tests added.

Part of envoyproxy#11264.

Signed-off-by: Harvey Tuch <htuch@google.com>
yashwant121 pushed a commit to yashwant121/envoy that referenced this pull request Jul 24, 2020
These map between the structured udpa::core::v1::ResourceName message and flat udpa:// URI
representations of resource names.

Risk level: Low
Testing: Unit tests added.

Part of envoyproxy#11264.

Signed-off-by: Harvey Tuch <htuch@google.com>
Signed-off-by: yashwant121 <yadavyashwant36@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants