Skip to content

Commit

Permalink
feat(kuma-cp): add HealthCheck unary endpoint (#7815)
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Beaumont <[email protected]>
  • Loading branch information
michaelbeaumont authored Sep 27, 2023
1 parent a3bbdab commit 42cfb34
Show file tree
Hide file tree
Showing 8 changed files with 569 additions and 269 deletions.
413 changes: 263 additions & 150 deletions api/mesh/v1alpha1/kds.pb.go

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions api/mesh/v1alpha1/kds.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ message KumaResource {
google.protobuf.Any spec = 2;
}

message ZoneHealthCheckRequest {
}

message ZoneHealthCheckResponse {
}

service GlobalKDSService {
// StreamXDSConfigs is logically a service exposed by Zone CP so Global CP can
// execute Config Dumps. It is however represented by bi-directional streaming
Expand All @@ -37,6 +43,9 @@ service GlobalKDSService {
// bi-directional streaming to leverage existing connection from Zone CP to
// Global CP.
rpc StreamClusters(stream ClustersResponse) returns (stream ClustersRequest);
// HealthCheck allows us to implement a health check that works across
// proxies, unlike HTTP/2 PING frames.
rpc HealthCheck(ZoneHealthCheckRequest) returns (ZoneHealthCheckResponse);
}

// KDSSyncService is a service exposed by the control-plane for the
Expand Down
43 changes: 42 additions & 1 deletion api/mesh/v1alpha1/kds_grpc.pb.go

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

Loading

0 comments on commit 42cfb34

Please sign in to comment.