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
914dbe8b
Commit
914dbe8b
authored
Dec 01, 2016
by
Adam Reese
Committed by
GitHub
Dec 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1614 from adamreese/fix/linter-issues
fix(*): misc linter issues
parents
69a95f32
803475c8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
7 deletions
+5
-7
package.go
cmd/helm/package.go
+2
-2
parser.go
cmd/helm/strvals/parser.go
+1
-3
client.go
pkg/kube/client.go
+1
-1
tunnel.go
pkg/kube/tunnel.go
+1
-1
No files found.
cmd/helm/package.go
View file @
914dbe8b
...
...
@@ -166,7 +166,7 @@ func (p *packageCmd) clearsign(filename string) error {
// promptUser implements provenance.PassphraseFetcher
func
promptUser
(
name
string
)
([]
byte
,
error
)
{
fmt
.
Printf
(
"Password for key %q > "
,
name
)
pw
,
err
:=
terminal
.
ReadPassword
(
int
(
syscall
.
Stdin
)
)
pw
,
err
:=
terminal
.
ReadPassword
(
syscall
.
Stdin
)
fmt
.
Println
()
return
[]
byte
(
pw
)
,
err
return
pw
,
err
}
cmd/helm/strvals/parser.go
View file @
914dbe8b
...
...
@@ -153,14 +153,12 @@ func set(data map[string]interface{}, key string, val interface{}) {
}
func
(
t
*
parser
)
val
()
([]
rune
,
error
)
{
v
:=
[]
rune
{}
stop
:=
runeSet
([]
rune
{
','
})
v
,
_
,
err
:=
runesUntil
(
t
.
sc
,
stop
)
return
v
,
err
}
func
(
t
*
parser
)
valList
()
([]
interface
{},
error
)
{
r
,
_
,
e
:=
t
.
sc
.
ReadRune
()
if
e
!=
nil
{
return
[]
interface
{}{},
e
...
...
@@ -193,7 +191,7 @@ func (t *parser) valList() ([]interface{}, error) {
}
}
func
runesUntil
(
in
*
bytes
.
Buff
er
,
stop
map
[
rune
]
bool
)
([]
rune
,
rune
,
error
)
{
func
runesUntil
(
in
io
.
RuneRead
er
,
stop
map
[
rune
]
bool
)
([]
rune
,
rune
,
error
)
{
v
:=
[]
rune
{}
for
{
switch
r
,
_
,
e
:=
in
.
ReadRune
();
{
...
...
pkg/kube/client.go
View file @
914dbe8b
...
...
@@ -443,7 +443,7 @@ func getCurrentObject(target *resource.Info, infos []*resource.Info) (runtime.Ob
if
found
,
ok
:=
findMatchingInfo
(
target
,
infos
);
ok
{
return
found
.
Mapping
.
ConvertToVersion
(
found
.
Object
,
found
.
Mapping
.
GroupVersionKind
.
GroupVersion
())
}
return
nil
,
fmt
.
Errorf
(
"
No resource with the name %s found.
"
,
target
.
Name
)
return
nil
,
fmt
.
Errorf
(
"
no resource with the name %s found
"
,
target
.
Name
)
}
// isMatchingInfo returns true if infos match on Name and Kind.
...
...
pkg/kube/tunnel.go
View file @
914dbe8b
...
...
@@ -96,7 +96,7 @@ func (t *Tunnel) ForwardPort() error {
select
{
case
err
=
<-
errChan
:
return
fmt
.
Errorf
(
"
Error forwarding ports: %v
\n
"
,
err
)
return
fmt
.
Errorf
(
"
forwarding ports: %v
"
,
err
)
case
<-
pf
.
Ready
:
return
nil
}
...
...
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