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

hds: extend response protos group endpoint health by cluster and locality #12153

Merged
merged 5 commits into from
Jul 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions api/envoy/service/health/v3/hds.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import "envoy/config/endpoint/v3/endpoint_components.proto";
import "google/api/annotations.proto";
import "google/protobuf/duration.proto";

import "udpa/annotations/migrate.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";

Expand Down Expand Up @@ -108,11 +109,32 @@ message EndpointHealth {
config.core.v3.HealthStatus health_status = 2;
}

// Group endpoint health by locality under each cluster.
message LocalityEndpointsHealth {
config.core.v3.Locality locality = 1;

repeated EndpointHealth endpoints_health = 2;
}

// The health status of endpoints in a cluster. The cluster name and locality
// should match the corresponding fields in ClusterHealthCheck message.
message ClusterEndpointsHealth {
string cluster_name = 1;

repeated LocalityEndpointsHealth locality_endpoints_health = 2;
}

message EndpointHealthResponse {
option (udpa.annotations.versioning).previous_message_type =
"envoy.service.discovery.v2.EndpointHealthResponse";

// [#comment:TODO(drewsortega): add deprecate annotation once cluster_endpoints_health is implemented]
// Deprecated - Flat list of endpoint health information.
repeated EndpointHealth endpoints_health = 1;

// [#not-implemented-hide:]
// Organize Endpoint health information by cluster.
repeated ClusterEndpointsHealth cluster_endpoints_health = 2;
}

message HealthCheckRequestOrEndpointHealthResponse {
Expand Down
27 changes: 27 additions & 0 deletions api/envoy/service/health/v4alpha/hds.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions generated_api_shadow/envoy/service/health/v3/hds.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions generated_api_shadow/envoy/service/health/v4alpha/hds.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.