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
dd952e61
Unverified
Commit
dd952e61
authored
Jul 11, 2017
by
Adam Reese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(helm): load home from flags during runtime
parent
0a20ed73
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
14 additions
and
34 deletions
+14
-34
create.go
cmd/helm/create.go
+1
-3
dependency.go
cmd/helm/dependency.go
+2
-3
dependency_build.go
cmd/helm/dependency_build.go
+1
-3
dependency_update.go
cmd/helm/dependency_update.go
+1
-3
init.go
cmd/helm/init.go
+1
-3
package.go
cmd/helm/package.go
+1
-3
repo_add.go
cmd/helm/repo_add.go
+1
-3
repo_index.go
cmd/helm/repo_index.go
+1
-3
repo_list.go
cmd/helm/repo_list.go
+1
-3
repo_remove.go
cmd/helm/repo_remove.go
+1
-3
repo_update.go
cmd/helm/repo_update.go
+1
-3
search.go
cmd/helm/search.go
+2
-1
No files found.
cmd/helm/create.go
View file @
dd952e61
...
@@ -62,9 +62,7 @@ type createCmd struct {
...
@@ -62,9 +62,7 @@ type createCmd struct {
}
}
func
newCreateCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
func
newCreateCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
cc
:=
&
createCmd
{
cc
:=
&
createCmd
{
out
:
out
}
out
:
out
,
}
cmd
:=
&
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"create NAME"
,
Use
:
"create NAME"
,
...
...
cmd/helm/dependency.go
View file @
dd952e61
...
@@ -108,9 +108,8 @@ type dependencyListCmd struct {
...
@@ -108,9 +108,8 @@ type dependencyListCmd struct {
}
}
func
newDependencyListCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
func
newDependencyListCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
dlc
:=
&
dependencyListCmd
{
dlc
:=
&
dependencyListCmd
{
out
:
out
}
out
:
out
,
}
cmd
:=
&
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"list [flags] CHART"
,
Use
:
"list [flags] CHART"
,
Aliases
:
[]
string
{
"ls"
},
Aliases
:
[]
string
{
"ls"
},
...
...
cmd/helm/dependency_build.go
View file @
dd952e61
...
@@ -45,9 +45,7 @@ type dependencyBuildCmd struct {
...
@@ -45,9 +45,7 @@ type dependencyBuildCmd struct {
}
}
func
newDependencyBuildCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
func
newDependencyBuildCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
dbc
:=
&
dependencyBuildCmd
{
dbc
:=
&
dependencyBuildCmd
{
out
:
out
}
out
:
out
,
}
cmd
:=
&
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"build [flags] CHART"
,
Use
:
"build [flags] CHART"
,
...
...
cmd/helm/dependency_update.go
View file @
dd952e61
...
@@ -52,9 +52,7 @@ type dependencyUpdateCmd struct {
...
@@ -52,9 +52,7 @@ type dependencyUpdateCmd struct {
// newDependencyUpdateCmd creates a new dependency update command.
// newDependencyUpdateCmd creates a new dependency update command.
func
newDependencyUpdateCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
func
newDependencyUpdateCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
duc
:=
&
dependencyUpdateCmd
{
duc
:=
&
dependencyUpdateCmd
{
out
:
out
}
out
:
out
,
}
cmd
:=
&
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"update [flags] CHART"
,
Use
:
"update [flags] CHART"
,
...
...
cmd/helm/init.go
View file @
dd952e61
...
@@ -82,9 +82,7 @@ type initCmd struct {
...
@@ -82,9 +82,7 @@ type initCmd struct {
}
}
func
newInitCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
func
newInitCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
i
:=
&
initCmd
{
i
:=
&
initCmd
{
out
:
out
}
out
:
out
,
}
cmd
:=
&
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"init"
,
Use
:
"init"
,
...
...
cmd/helm/package.go
View file @
dd952e61
...
@@ -64,9 +64,7 @@ type packageCmd struct {
...
@@ -64,9 +64,7 @@ type packageCmd struct {
}
}
func
newPackageCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
func
newPackageCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
pkg
:=
&
packageCmd
{
pkg
:=
&
packageCmd
{
out
:
out
}
out
:
out
,
}
cmd
:=
&
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"package [flags] [CHART_PATH] [...]"
,
Use
:
"package [flags] [CHART_PATH] [...]"
,
...
...
cmd/helm/repo_add.go
View file @
dd952e61
...
@@ -41,9 +41,7 @@ type repoAddCmd struct {
...
@@ -41,9 +41,7 @@ type repoAddCmd struct {
}
}
func
newRepoAddCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
func
newRepoAddCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
add
:=
&
repoAddCmd
{
add
:=
&
repoAddCmd
{
out
:
out
}
out
:
out
,
}
cmd
:=
&
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"add [flags] [NAME] [URL]"
,
Use
:
"add [flags] [NAME] [URL]"
,
...
...
cmd/helm/repo_index.go
View file @
dd952e61
...
@@ -45,9 +45,7 @@ type repoIndexCmd struct {
...
@@ -45,9 +45,7 @@ type repoIndexCmd struct {
}
}
func
newRepoIndexCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
func
newRepoIndexCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
index
:=
&
repoIndexCmd
{
index
:=
&
repoIndexCmd
{
out
:
out
}
out
:
out
,
}
cmd
:=
&
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"index [flags] [DIR]"
,
Use
:
"index [flags] [DIR]"
,
...
...
cmd/helm/repo_list.go
View file @
dd952e61
...
@@ -34,9 +34,7 @@ type repoListCmd struct {
...
@@ -34,9 +34,7 @@ type repoListCmd struct {
}
}
func
newRepoListCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
func
newRepoListCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
list
:=
&
repoListCmd
{
list
:=
&
repoListCmd
{
out
:
out
}
out
:
out
,
}
cmd
:=
&
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"list [flags]"
,
Use
:
"list [flags]"
,
...
...
cmd/helm/repo_remove.go
View file @
dd952e61
...
@@ -34,9 +34,7 @@ type repoRemoveCmd struct {
...
@@ -34,9 +34,7 @@ type repoRemoveCmd struct {
}
}
func
newRepoRemoveCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
func
newRepoRemoveCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
remove
:=
&
repoRemoveCmd
{
remove
:=
&
repoRemoveCmd
{
out
:
out
}
out
:
out
,
}
cmd
:=
&
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"remove [flags] [NAME]"
,
Use
:
"remove [flags] [NAME]"
,
...
...
cmd/helm/repo_update.go
View file @
dd952e61
...
@@ -37,9 +37,7 @@ Information is cached locally, where it is used by commands like 'helm search'.
...
@@ -37,9 +37,7 @@ Information is cached locally, where it is used by commands like 'helm search'.
future releases.
future releases.
`
`
var
(
var
errNoRepositories
=
errors
.
New
(
"no repositories found. You must add one before updating"
)
errNoRepositories
=
errors
.
New
(
"no repositories found. You must add one before updating"
)
)
type
repoUpdateCmd
struct
{
type
repoUpdateCmd
struct
{
update
func
([]
*
repo
.
ChartRepository
,
io
.
Writer
,
helmpath
.
Home
)
update
func
([]
*
repo
.
ChartRepository
,
io
.
Writer
,
helmpath
.
Home
)
...
...
cmd/helm/search.go
View file @
dd952e61
...
@@ -50,13 +50,14 @@ type searchCmd struct {
...
@@ -50,13 +50,14 @@ type searchCmd struct {
}
}
func
newSearchCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
func
newSearchCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
sc
:=
&
searchCmd
{
out
:
out
,
helmhome
:
settings
.
Home
}
sc
:=
&
searchCmd
{
out
:
out
}
cmd
:=
&
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"search [keyword]"
,
Use
:
"search [keyword]"
,
Short
:
"search for a keyword in charts"
,
Short
:
"search for a keyword in charts"
,
Long
:
searchDesc
,
Long
:
searchDesc
,
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
sc
.
helmhome
=
settings
.
Home
return
sc
.
run
(
args
)
return
sc
.
run
(
args
)
},
},
}
}
...
...
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