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
f632036e
Commit
f632036e
authored
Jan 26, 2016
by
vaikas-google
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle deploy correctly for local files vs. templates
parent
58377e4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
dm.go
dm/dm.go
+5
-3
No files found.
dm/dm.go
View file @
f632036e
...
...
@@ -375,14 +375,16 @@ func loadTemplate(args []string) *common.Template {
}
}
}
else
{
if
len
(
args
)
<
3
{
// See if the first argument is a local file. It could either be a type, or it could be a configuration. If
// it's a local file, it's configuration.
if
_
,
err
:=
os
.
Stat
(
args
[
1
]);
err
==
nil
{
template
,
err
=
expander
.
NewTemplateFromFileNames
(
args
[
1
],
args
[
2
:
])
}
else
{
if
t
,
err
:=
registry
.
ParseType
(
args
[
1
]);
err
==
nil
{
template
=
buildTemplateFromType
(
t
)
}
else
{
template
,
err
=
expander
.
NewTemplateFromRootTemplate
(
args
[
1
])
}
}
else
{
template
,
err
=
expander
.
NewTemplateFromFileNames
(
args
[
1
],
args
[
2
:
])
}
if
err
!=
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