From 1e1deb75d8bf4e35d0283d384a0f13ff31020a63 Mon Sep 17 00:00:00 2001 From: Jyoti Mahapatra Date: Wed, 28 Oct 2020 11:35:46 -0700 Subject: [PATCH] comment Signed-off-by: Jyoti Mahapatra --- api/protos/bootstrap/v1/bootstrap.proto | 3 +++ pkg/api/bootstrap/v1/bootstrap.pb.go | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/api/protos/bootstrap/v1/bootstrap.proto b/api/protos/bootstrap/v1/bootstrap.proto index 2e6abf02..f155eeae 100644 --- a/api/protos/bootstrap/v1/bootstrap.proto +++ b/api/protos/bootstrap/v1/bootstrap.proto @@ -39,6 +39,9 @@ message Upstream { // The address for the upstream cluster. SocketAddress address = 1 [(validate.rules).message.required = true]; + // grpc connection keep alive time backed by https://github.com/grpc/grpc-go/blob/v1.32.0/keepalive/keepalive.go#L34-L37 + // If unset defaults to 5 minutes. + // Usage example: 2m to represent 2 minutes string keep_alive_time = 2; } diff --git a/pkg/api/bootstrap/v1/bootstrap.pb.go b/pkg/api/bootstrap/v1/bootstrap.pb.go index 85ec914a..97e08406 100644 --- a/pkg/api/bootstrap/v1/bootstrap.pb.go +++ b/pkg/api/bootstrap/v1/bootstrap.pb.go @@ -230,8 +230,11 @@ type Upstream struct { unknownFields protoimpl.UnknownFields // The address for the upstream cluster. - Address *SocketAddress `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - KeepAliveTime string `protobuf:"bytes,2,opt,name=keep_alive_time,json=keepAliveTime,proto3" json:"keep_alive_time,omitempty"` + Address *SocketAddress `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // grpc connection keep alive time backed by https://github.com/grpc/grpc-go/blob/v1.32.0/keepalive/keepalive.go#L34-L37 + // If unset defaults to 5 minutes. + // Usage example: 2m to represent 2 minutes + KeepAliveTime string `protobuf:"bytes,2,opt,name=keep_alive_time,json=keepAliveTime,proto3" json:"keep_alive_time,omitempty"` } func (x *Upstream) Reset() {