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
67bd0268
Commit
67bd0268
authored
Apr 28, 2016
by
Matt Butcher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tiller): pass address and port via flag
parent
9e060b04
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
tiller.go
cmd/tiller/tiller.go
+7
-1
No files found.
cmd/tiller/tiller.go
View file @
67bd0268
...
@@ -14,8 +14,14 @@ import (
...
@@ -14,8 +14,14 @@ import (
//
//
// Each gRPC service registers itself to this server during init().
// Each gRPC service registers itself to this server during init().
var
rootServer
=
grpc
.
NewServer
()
var
rootServer
=
grpc
.
NewServer
()
// env is the default environment.
//
// Any changes to env should be done before rootServer.Serve() is called.
var
env
=
environment
.
New
()
var
env
=
environment
.
New
()
var
addr
=
":44134"
const
globalUsage
=
`The Kubernetes Helm server.
const
globalUsage
=
`The Kubernetes Helm server.
Tiller is the server for Helm. It provides in-cluster resource management.
Tiller is the server for Helm. It provides in-cluster resource management.
...
@@ -31,11 +37,11 @@ var rootCommand = &cobra.Command{
...
@@ -31,11 +37,11 @@ var rootCommand = &cobra.Command{
}
}
func
main
()
{
func
main
()
{
rootCommand
.
PersistentFlags
()
.
StringVarP
(
&
addr
,
"listen"
,
"l"
,
":44134"
,
"The address:port to listen on"
)
rootCommand
.
Execute
()
rootCommand
.
Execute
()
}
}
func
start
(
c
*
cobra
.
Command
,
args
[]
string
)
{
func
start
(
c
*
cobra
.
Command
,
args
[]
string
)
{
addr
:=
":44134"
lstn
,
err
:=
net
.
Listen
(
"tcp"
,
addr
)
lstn
,
err
:=
net
.
Listen
(
"tcp"
,
addr
)
if
err
!=
nil
{
if
err
!=
nil
{
fmt
.
Fprintf
(
os
.
Stderr
,
"Server died: %s
\n
"
,
err
)
fmt
.
Fprintf
(
os
.
Stderr
,
"Server died: %s
\n
"
,
err
)
...
...
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