|
@@ -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"
|
|
)
|
|
)
|
|
|
|
|
|
// GetSecret returns a secret from a managed swarm cluster
|
|
// GetSecret returns a secret from a managed swarm cluster
|
|
@@ -44,7 +45,9 @@ func (c *Cluster) GetSecrets(options apitypes.SecretListOptions) ([]types.Secret
|
|
defer cancel()
|
|
defer cancel()
|
|
|
|
|
|
r, err := state.controlClient.ListSecrets(ctx,
|
|
r, err := state.controlClient.ListSecrets(ctx,
|
|
- &swarmapi.ListSecretsRequest{Filters: filters})
|
|
|
|
|
|
+ &swarmapi.ListSecretsRequest{Filters: filters},
|
|
|
|
+ grpc.MaxCallRecvMsgSize(defaultRecvSizeForListResponse),
|
|
|
|
+ )
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|