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
fd28256a
Commit
fd28256a
authored
Jun 22, 2016
by
Adam Reese
Committed by
GitHub
Jun 22, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #869 from adamreese/fix/tunnel-blank-namespace
fix(tunnel): handle blank namespace
parents
2378a250
907936c2
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 @
fd28256a
...
...
@@ -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