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
c2483f13
Commit
c2483f13
authored
Feb 04, 2016
by
Michelle Noorali
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6 from michelleN/registry-fixes
ref(deploy): adjusting to new dm registry interface
parents
a7b5be71
73e2f7bc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
9 deletions
+21
-9
deploy.go
deploy/deploy.go
+21
-9
No files found.
deploy/deploy.go
View file @
c2483f13
...
@@ -105,7 +105,11 @@ func registryType(name string) (*registry.Type, error) {
...
@@ -105,7 +105,11 @@ func registryType(name string) (*registry.Type, error) {
return
nil
,
errors
.
New
(
"No version"
)
return
nil
,
errors
.
New
(
"No version"
)
}
}
tt
:=
registry
.
Type
{
Version
:
tList
[
1
]}
semver
,
err
:=
registry
.
ParseSemVer
(
tList
[
1
])
if
err
!=
nil
{
return
nil
,
err
}
tt
:=
registry
.
Type
{
Version
:
semver
}
cList
:=
strings
.
Split
(
tList
[
0
],
"/"
)
cList
:=
strings
.
Split
(
tList
[
0
],
"/"
)
...
@@ -126,14 +130,14 @@ func buildTemplateFromType(t *registry.Type, reg string, props map[string]interf
...
@@ -126,14 +130,14 @@ func buildTemplateFromType(t *registry.Type, reg string, props map[string]interf
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
gurls
,
err
:=
git
.
GetURLs
(
*
t
)
gurls
,
err
:=
git
.
Get
Download
URLs
(
*
t
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
config
:=
common
.
Configuration
{
Resources
:
[]
*
common
.
Resource
{
&
common
.
Resource
{
config
:=
common
.
Configuration
{
Resources
:
[]
*
common
.
Resource
{
&
common
.
Resource
{
Name
:
name
,
Name
:
name
,
Type
:
gurls
[
0
],
Type
:
gurls
[
0
]
.
Host
,
Properties
:
props
,
Properties
:
props
,
}}}
}}}
...
@@ -156,14 +160,22 @@ func getGitRegistry(reg string) (registry.Registry, error) {
...
@@ -156,14 +160,22 @@ func getGitRegistry(reg string) (registry.Registry, error) {
return
nil
,
fmt
.
Errorf
(
"invalid template registry: %s"
,
reg
)
return
nil
,
fmt
.
Errorf
(
"invalid template registry: %s"
,
reg
)
}
}
path
:=
""
//
path := ""
if
len
(
s
)
>
2
{
//
if len(s) > 2 {
path
=
s
[
3
]
//
path = s[3]
}
//
}
if
s
[
0
]
==
"helm"
{
if
s
[
0
]
==
"helm"
{
return
registry
.
NewGithubPackageRegistry
(
s
[
0
],
s
[
1
],
nil
),
nil
r
,
err
:=
registry
.
NewGithubPackageRegistry
(
s
[
0
],
s
[
1
],
nil
,
nil
)
if
err
!=
nil
{
return
nil
,
err
}
return
r
,
nil
}
else
{
}
else
{
return
registry
.
NewGithubRegistry
(
s
[
0
],
s
[
1
],
path
,
nil
),
nil
r
,
err
:=
registry
.
NewGithubTemplateRegistry
(
s
[
0
],
s
[
1
],
nil
,
nil
)
if
err
!=
nil
{
return
nil
,
err
}
return
r
,
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