Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
1f01bf51
Commit
1f01bf51
authored
Dec 05, 2016
by
Adam Reese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tiller): increase the max message size for grpc
Increases the default message size from 4MB to 10MB.
parent
aec6c507
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
tiller.go
cmd/tiller/tiller.go
+1
-2
release_server.go
pkg/tiller/release_server.go
+12
-0
No files found.
cmd/tiller/tiller.go
View file @
1f01bf51
...
...
@@ -24,7 +24,6 @@ import (
"os"
"github.com/spf13/cobra"
"google.golang.org/grpc"
"k8s.io/helm/pkg/proto/hapi/services"
"k8s.io/helm/pkg/storage"
...
...
@@ -41,7 +40,7 @@ const (
// rootServer is the root gRPC server.
//
// Each gRPC service registers itself to this server during init().
var
rootServer
=
grpc
.
NewServer
()
var
rootServer
=
tiller
.
NewServer
()
// env is the default environment.
//
...
...
pkg/tiller/release_server.go
View file @
1f01bf51
...
...
@@ -25,6 +25,7 @@ import (
"regexp"
"strings"
"google.golang.org/grpc"
"google.golang.org/grpc/metadata"
"github.com/technosophos/moniker"
...
...
@@ -81,6 +82,17 @@ var ListDefaultLimit int64 = 512
// prevents an empty string from matching.
var
ValidName
=
regexp
.
MustCompile
(
"^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])+$"
)
// maxMsgSize use 10MB as the default message size limit.
// grpc library default is 4MB
var
maxMsgSize
=
1024
*
1024
*
10
// NewServer creates a new grpc server.
func
NewServer
()
*
grpc
.
Server
{
return
grpc
.
NewServer
(
grpc
.
MaxMsgSize
(
maxMsgSize
),
)
}
// ReleaseServer implements the server-side gRPC endpoint for the HAPI services.
type
ReleaseServer
struct
{
env
*
environment
.
Environment
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment