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
7cefeb47
Commit
7cefeb47
authored
Nov 18, 2015
by
vaikas-google
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #95 from bmelville/89
Porcelain type deployments deserve to be named too man.
parents
e3f54147
878152d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
dm.go
dm/dm.go
+4
-3
No files found.
dm/dm.go
View file @
7cefeb47
...
...
@@ -238,7 +238,7 @@ func loadTemplate(args []string) *expander.Template {
if
len
(
args
)
<
3
{
if
t
:=
getRegistryType
(
args
[
1
]);
t
!=
nil
{
template
=
buildTemplateFromType
(
args
[
1
],
*
t
)
template
=
buildTemplateFromType
(
*
t
)
}
else
{
template
,
err
=
expander
.
NewTemplateFromRootTemplate
(
args
[
1
])
}
...
...
@@ -266,7 +266,7 @@ func getRegistryType(fullType string) *registry.Type {
}
}
func
buildTemplateFromType
(
name
string
,
t
registry
.
Type
)
*
expander
.
Template
{
func
buildTemplateFromType
(
t
registry
.
Type
)
*
expander
.
Template
{
git
:=
getGitRegistry
()
downloadURL
,
err
:=
git
.
GetURL
(
t
)
if
err
!=
nil
{
...
...
@@ -293,6 +293,7 @@ func buildTemplateFromType(name string, t registry.Type) *expander.Template {
}
}
name
:=
fmt
.
Sprintf
(
"%s-%s"
,
t
.
Name
,
t
.
Version
)
config
:=
manager
.
Configuration
{
Resources
:
[]
*
manager
.
Resource
{
&
manager
.
Resource
{
Name
:
name
,
Type
:
downloadURL
,
...
...
@@ -305,7 +306,7 @@ func buildTemplateFromType(name string, t registry.Type) *expander.Template {
}
return
&
expander
.
Template
{
// Name will be set later.
Name
:
name
,
Content
:
string
(
y
),
// No imports, as this is a single type from repository.
}
...
...
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