Skip to content

Support retrieving the names from wrapped resource containers. #10975

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

Merged
merged 11 commits into from
Mar 5, 2024

Conversation

anicr7
Copy link
Contributor

@anicr7 anicr7 commented Mar 1, 2024

Currently, the xDS library only honors names that are retrieved from the inner resource containers, but for wrapped resources the outer layer could contain the required name in either the Name or in the ResourceName.Name fields.

So this PR allows fallback for those conditions. The priority is

  1. Inner Resource Name
  2. Name on the wrapped container
  3. Name on the ResourceName.Name container.

The fallback to other priorities occur when the higher priority fields are empty.

cc: @YifeiZhuang , @larry-safran, @ejona86

…tly, the xDS library only honors names that are retrieved from the inner resource containers, but for wrapped resources the outer layer could contain the required name in either the Name or in the ResourceName.Name fields. So this PR allows fallback for those conditions. The priority is 1. Inner Resource Name 2. Name on the wrapped container 3. Name on the ResourceName.Name container. The fallback to other priorities occur when the fields are empty
@anicr7 anicr7 marked this pull request as ready for review March 1, 2024 00:40
@anicr7 anicr7 requested review from markdroth and ejona86 March 4, 2024 21:51
@anicr7 anicr7 requested a review from ejona86 March 5, 2024 05:39
@ejona86 ejona86 merged commit 867e469 into grpc:master Mar 5, 2024
@anicr7 anicr7 deleted the resource_name_wrapped branch March 5, 2024 18:38
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants