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
9832e7df
Unverified
Commit
9832e7df
authored
May 18, 2017
by
Adam Reese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(helm): fix setting home via `helm --home=HOME`
parent
ec2597d0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
10 deletions
+16
-10
helm.go
cmd/helm/helm.go
+1
-5
serve.go
cmd/helm/serve.go
+11
-1
helm_serve.md
docs/helm/helm_serve.md
+2
-2
helm_serve.1
docs/man/man1/helm_serve.1
+2
-2
No files found.
cmd/helm/helm.go
View file @
9832e7df
...
...
@@ -33,7 +33,6 @@ import (
"k8s.io/helm/pkg/helm"
helm_env
"k8s.io/helm/pkg/helm/environment"
"k8s.io/helm/pkg/helm/helmpath"
"k8s.io/helm/pkg/helm/portforwarder"
"k8s.io/helm/pkg/kube"
tiller_env
"k8s.io/helm/pkg/tiller/environment"
...
...
@@ -84,8 +83,6 @@ Environment:
`
func
newRootCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
var
helmHomeTemp
string
cmd
:=
&
cobra
.
Command
{
Use
:
"helm"
,
Short
:
"The Helm package manager for Kubernetes."
,
...
...
@@ -101,8 +98,7 @@ func newRootCmd(out io.Writer) *cobra.Command {
},
}
p
:=
cmd
.
PersistentFlags
()
p
.
StringVar
(
&
helmHomeTemp
,
"home"
,
helm_env
.
DefaultHelmHome
(),
"location of your Helm config. Overrides $HELM_HOME"
)
settings
.
Home
=
helmpath
.
Home
(
helmHomeTemp
)
p
.
StringVar
((
*
string
)(
&
settings
.
Home
),
"home"
,
helm_env
.
DefaultHelmHome
(),
"location of your Helm config. Overrides $HELM_HOME"
)
p
.
StringVar
(
&
settings
.
TillerHost
,
"host"
,
helm_env
.
DefaultHelmHost
(),
"address of tiller. Overrides $HELM_HOST"
)
p
.
StringVar
(
&
kubeContext
,
"kube-context"
,
""
,
"name of the kubeconfig context to use"
)
p
.
BoolVar
(
&
settings
.
Debug
,
"debug"
,
false
,
"enable verbose output"
)
...
...
cmd/helm/serve.go
View file @
9832e7df
...
...
@@ -55,19 +55,29 @@ func newServeCmd(out io.Writer) *cobra.Command {
Use
:
"serve"
,
Short
:
"start a local http web server"
,
Long
:
serveDesc
,
PreRunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
return
srv
.
complete
(
args
)
},
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
return
srv
.
run
()
},
}
f
:=
cmd
.
Flags
()
f
.
StringVar
(
&
srv
.
repoPath
,
"repo-path"
,
settings
.
Home
.
LocalRepository
()
,
"local directory path from which to serve charts"
)
f
.
StringVar
(
&
srv
.
repoPath
,
"repo-path"
,
""
,
"local directory path from which to serve charts"
)
f
.
StringVar
(
&
srv
.
address
,
"address"
,
"127.0.0.1:8879"
,
"address to listen on"
)
f
.
StringVar
(
&
srv
.
url
,
"url"
,
""
,
"external URL of chart repository"
)
return
cmd
}
func
(
s
*
serveCmd
)
complete
(
args
[]
string
)
error
{
if
s
.
repoPath
==
""
{
s
.
repoPath
=
settings
.
Home
.
LocalRepository
()
}
return
nil
}
func
(
s
*
serveCmd
)
run
()
error
{
repoPath
,
err
:=
filepath
.
Abs
(
s
.
repoPath
)
if
err
!=
nil
{
...
...
docs/helm/helm_serve.md
View file @
9832e7df
...
...
@@ -28,7 +28,7 @@ helm serve
```
--address string address to listen on (default "127.0.0.1:8879")
--repo-path string local directory path from which to serve charts
(default "~/.helm/repository/local")
--repo-path string local directory path from which to serve charts
--url string external URL of chart repository
```
...
...
@@ -45,4 +45,4 @@ helm serve
### SEE ALSO
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on 1
7
-May-2017
###### Auto generated by spf13/cobra on 1
8
-May-2017
docs/man/man1/helm_serve.1
View file @
9832e7df
...
...
@@ -39,7 +39,7 @@ for more information on hosting chart repositories in a production setting.
address to listen on
.PP
\fB\-\-repo\-path\fP="
~/.helm/repository/local
"
\fB\-\-repo\-path\fP=""
local directory path from which to serve charts
.PP
...
...
@@ -76,4 +76,4 @@ for more information on hosting chart repositories in a production setting.
.SH HISTORY
.PP
1
7
\-May\-2017 Auto generated by spf13/cobra
1
8
\-May\-2017 Auto generated by spf13/cobra
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