Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

envoy/eds: respond to EDS request for cluster with no endpoints #4085

Merged
merged 1 commit into from
Sep 9, 2021

Conversation

shashankram
Copy link
Member

Description:
It's possible for a cluster created via CDS to have no endpoints,
such as an apex service referenced in a traffic split resource
that is not backed by any pods. Respond to the EDS request
for such a cluster with no endpoints so that Envoy does
not keep requesting for it.

Also updates the test to check for all fields in the expected
cluster load assignment.

Without this change, Envoy will keep requesting for the missing
EDS resource and the following log will be seen repeatedly:

":"response.go:55","message":"Endpoints not found for upstream cluster bookstore/bookstore|14001 for proxy identity bookbuyer.bookbuyer.cluster.local, skipping cluster in EDS response"}

Testing done:
Locally verified the change.

Affected area:

Functional Area
Control Plane [X]

Please answer the following questions with yes/no.

  1. Does this change contain code from or inspired by another project? no

    • Did you notify the maintainers and provide attribution?
  2. Is this a breaking change? no

It's possible for a cluster created via CDS to have no endpoints,
such as an apex service referenced in a traffic split resource
that is not backed by any pods. Respond to the EDS request
for such a cluster with no endpoints so that Envoy does
not keep requesting for it.

Signed-off-by: Shashank Ram <[email protected]>
@shashankram shashankram requested a review from a team as a code owner September 9, 2021 00:28
@shashankram shashankram merged commit 78455da into openservicemesh:main Sep 9, 2021
@shashankram shashankram deleted the fix-eds branch September 9, 2021 15:46
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