From 7e985fdbccb650b41c605cf7692e12175b9895f0 Mon Sep 17 00:00:00 2001 From: Dani Louca Date: Tue, 26 Feb 2019 11:09:25 -0500 Subject: [PATCH] set bigger grpc limit for GetConfigs api Signed-off-by: Dani Louca (cherry picked from commit 3fbbeb703c1d04e9eb723459960fbfc7f3bbfc40) Signed-off-by: Sebastiaan van Stijn Upstream-commit: 5f40e17cfd2474776088a97552fce7d5a9abe549 Component: engine --- components/engine/daemon/cluster/configs.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/engine/daemon/cluster/configs.go b/components/engine/daemon/cluster/configs.go index 6b373e618b..f44adb284e 100644 --- a/components/engine/daemon/cluster/configs.go +++ b/components/engine/daemon/cluster/configs.go @@ -7,6 +7,7 @@ import ( types "github.com/docker/docker/api/types/swarm" "github.com/docker/docker/daemon/cluster/convert" swarmapi "github.com/docker/swarmkit/api" + "google.golang.org/grpc" ) // GetConfig returns a config from a managed swarm cluster @@ -44,7 +45,8 @@ func (c *Cluster) GetConfigs(options apitypes.ConfigListOptions) ([]types.Config defer cancel() r, err := state.controlClient.ListConfigs(ctx, - &swarmapi.ListConfigsRequest{Filters: filters}) + &swarmapi.ListConfigsRequest{Filters: filters}, + grpc.MaxCallRecvMsgSize(defaultRecvSizeForListResponse)) if err != nil { return nil, err }