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
907936c2
Commit
907936c2
authored
Jun 22, 2016
by
Adam Reese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tunnel): handle blank namespace
parent
68e0032f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
tunnel.go
cmd/helm/tunnel.go
+11
-1
No files found.
cmd/helm/tunnel.go
View file @
907936c2
...
...
@@ -13,13 +13,23 @@ import (
var
tunnel
*
kube
.
Tunnel
func
newTillerPortForwarder
(
namespace
string
)
(
*
kube
.
Tunnel
,
error
)
{
kc
:=
kube
.
New
(
nil
)
if
namespace
==
""
{
ns
,
_
,
err
:=
kc
.
DefaultNamespace
()
if
err
!=
nil
{
return
nil
,
err
}
namespace
=
ns
}
podName
,
err
:=
getTillerPodName
(
namespace
)
if
err
!=
nil
{
return
nil
,
err
}
// FIXME use a constain that is accessible on init
const
tillerPort
=
44134
return
k
ube
.
New
(
nil
)
.
ForwardPort
(
namespace
,
podName
,
tillerPort
)
return
k
c
.
ForwardPort
(
namespace
,
podName
,
tillerPort
)
}
func
getTillerPodName
(
namespace
string
)
(
string
,
error
)
{
...
...
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