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
6eb0cbb7
Commit
6eb0cbb7
authored
Oct 21, 2016
by
Jim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(helm): add check for argument length for inspection subcommands
Fixes #1429
parent
2eed3f04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
inspect.go
cmd/helm/inspect.go
+6
-0
No files found.
cmd/helm/inspect.go
View file @
6eb0cbb7
...
...
@@ -90,6 +90,9 @@ func newInspectCmd(c helm.Interface, out io.Writer) *cobra.Command {
Long
:
inspectValuesDesc
,
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
insp
.
output
=
valuesOnly
if
err
:=
checkArgsLength
(
len
(
args
),
"chart name"
);
err
!=
nil
{
return
err
}
cp
,
err
:=
locateChartPath
(
args
[
0
],
insp
.
version
,
insp
.
verify
,
insp
.
keyring
)
if
err
!=
nil
{
return
err
...
...
@@ -105,6 +108,9 @@ func newInspectCmd(c helm.Interface, out io.Writer) *cobra.Command {
Long
:
inspectChartDesc
,
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
insp
.
output
=
chartOnly
if
err
:=
checkArgsLength
(
len
(
args
),
"chart name"
);
err
!=
nil
{
return
err
}
cp
,
err
:=
locateChartPath
(
args
[
0
],
insp
.
version
,
insp
.
verify
,
insp
.
keyring
)
if
err
!=
nil
{
return
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