Skip to content

config: Replace Utility::resourceName() with callbacks.#2684

Merged
htuch merged 2 commits intoenvoyproxy:masterfrom
jrajahalme:config-resource-name
Mar 1, 2018
Merged

config: Replace Utility::resourceName() with callbacks.#2684
htuch merged 2 commits intoenvoyproxy:masterfrom
jrajahalme:config-resource-name

Conversation

@jrajahalme
Copy link
Copy Markdown
Contributor

Replace Utility::resourceName() that retrieved the name field from a
set of known xDS resource types with callbacks that the subscription
client for a specific resource type can provide.

This change allows the gRPC subscription implemantation to be used for
gRPC APIs defined by filters by not requiring a shared utility
function to be updated for new resource types.

Signed-off-by: Jarno Rajahalme jarno@covalent.io
Risk Level: Low

Replace Utility::resourceName() that retrieved the name field from a
set of known xDS resource types with callbacks that the subscription
client for a specific resource type can provide.

This change allows the gRPC subscription implemantation to be used for
gRPC APIs defined by filters by not requiring a shared utility
function to be updated for new resource types.

Signed-off-by: Jarno Rajahalme <jarno@covalent.io>
Risk Level: Low
@htuch htuch self-assigned this Feb 28, 2018
Copy link
Copy Markdown
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Thanks for the generalization, can you just fix typos?

Comment thread include/envoy/config/grpc_mux.h Outdated

/**
* Obtain the "name" of a v2 API resource in a google.protobuf.Any, e.g. the route config name for
* a Routeconfiguration, based on the underlying resource type.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: RouteConfiguration

Comment thread include/envoy/config/subscription.h Outdated

/**
* Obtain the "name" of a v2 API resource in a google.protobuf.Any, e.g. the route config name for
* a Routeconfiguration, based on the underlying resource type.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ditto.

Signed-off-by: Jarno Rajahalme <jarno@covalent.io>
@jrajahalme
Copy link
Copy Markdown
Contributor Author

jrajahalme commented Mar 1, 2018 via email

Copy link
Copy Markdown
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Thanks!

@htuch htuch merged commit 98a9d17 into envoyproxy:master Mar 1, 2018
Shikugawa pushed a commit to Shikugawa/envoy that referenced this pull request Mar 28, 2020
jpsim pushed a commit that referenced this pull request Nov 28, 2022
This gets EM to pass Envoy format checks.

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
This gets EM to pass Envoy format checks.

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: JP Simard <jp@jpsim.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants