mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
set bigger grpc limit for GetConfigs api
Signed-off-by: Dani Louca <dani.louca@docker.com>
This commit is contained in:
parent
19c5ff9c64
commit
3fbbeb703c
1 changed files with 3 additions and 1 deletions
|
@ -7,6 +7,7 @@ import (
|
||||||
types "github.com/docker/docker/api/types/swarm"
|
types "github.com/docker/docker/api/types/swarm"
|
||||||
"github.com/docker/docker/daemon/cluster/convert"
|
"github.com/docker/docker/daemon/cluster/convert"
|
||||||
swarmapi "github.com/docker/swarmkit/api"
|
swarmapi "github.com/docker/swarmkit/api"
|
||||||
|
"google.golang.org/grpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetConfig returns a config from a managed swarm cluster
|
// GetConfig returns a config from a managed swarm cluster
|
||||||
|
@ -44,7 +45,8 @@ func (c *Cluster) GetConfigs(options apitypes.ConfigListOptions) ([]types.Config
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
r, err := state.controlClient.ListConfigs(ctx,
|
r, err := state.controlClient.ListConfigs(ctx,
|
||||||
&swarmapi.ListConfigsRequest{Filters: filters})
|
&swarmapi.ListConfigsRequest{Filters: filters},
|
||||||
|
grpc.MaxCallRecvMsgSize(defaultRecvSizeForListResponse))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue