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
120ea928
Commit
120ea928
authored
Jan 27, 2016
by
vaikas-google
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
address CR comments
parent
ee301663
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
10 deletions
+5
-10
dm.go
dm/dm.go
+1
-5
deployments.go
manager/deployments.go
+4
-1
github_package_registry.go
registry/github_package_registry.go
+0
-4
No files found.
dm/dm.go
View file @
120ea928
...
...
@@ -295,11 +295,7 @@ func getDownloadURLs(tName string) []string {
if
err
:=
json
.
Unmarshal
([]
byte
(
resp
),
&
u
);
err
!=
nil
{
panic
(
fmt
.
Errorf
(
"Failed to parse JSON response from service: %s"
,
resp
))
}
urls
:=
[]
string
{}
for
_
,
url
:=
range
u
{
urls
=
append
(
urls
,
url
)
}
return
urls
return
u
}
func
loadTemplate
(
args
[]
string
)
*
common
.
Template
{
...
...
manager/deployments.go
View file @
120ea928
...
...
@@ -80,6 +80,9 @@ func init() {
routes
=
append
(
routes
,
deployments
...
)
var
credentialProvider
common
.
CredentialProvider
if
*
credentialFile
!=
""
{
if
*
credentialSecrets
{
panic
(
fmt
.
Errorf
(
"Both credentialFile and credentialSecrets are set"
))
}
var
err
error
credentialProvider
,
err
=
registry
.
NewFilebasedCredentialProvider
(
*
credentialFile
)
if
err
!=
nil
{
...
...
@@ -427,7 +430,7 @@ func getDownloadURLsHandlerFunc(w http.ResponseWriter, r *http.Request) {
return
}
var
urls
=
[]
string
{}
urls
:
=
[]
string
{}
for
_
,
u
:=
range
c
{
urls
=
append
(
urls
,
u
.
String
())
}
...
...
registry/github_package_registry.go
View file @
120ea928
...
...
@@ -124,10 +124,6 @@ func (g GithubPackageRegistry) GetDownloadURLs(t Type) ([]*url.URL, error) {
}
}
}
for
_
,
ll
:=
range
downloadURLs
{
log
.
Printf
(
"Found DOWNLOAD URL AS: %#v"
,
ll
.
String
())
}
return
downloadURLs
,
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