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
f1b6373f
Commit
f1b6373f
authored
Jun 01, 2016
by
Matt Butcher
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #772 from Ladicle/fix-init-command
fix(tiller): fix install function
parents
3d039822
97a9586a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
install.go
pkg/client/install.go
+4
-3
No files found.
pkg/client/install.go
View file @
f1b6373f
...
...
@@ -40,17 +40,18 @@ func NewInstaller() *Installer {
func
(
i
*
Installer
)
Install
(
verbose
,
createNS
bool
)
error
{
var
b
bytes
.
Buffer
t
:=
template
.
New
(
"manifest"
)
.
Funcs
(
sprig
.
TxtFuncMap
())
// Add namespace
if
createNS
{
if
err
:=
template
.
Must
(
t
.
Parse
(
NamespaceYAML
))
.
Execute
(
&
b
,
i
);
err
!=
nil
{
nstpl
:=
template
.
New
(
"namespace"
)
.
Funcs
(
sprig
.
TxtFuncMap
())
if
err
:=
template
.
Must
(
nstpl
.
Parse
(
NamespaceYAML
))
.
Execute
(
&
b
,
i
);
err
!=
nil
{
return
err
}
}
// Add main install YAML
if
err
:=
template
.
Must
(
t
.
Parse
(
InstallYAML
))
.
Execute
(
&
b
,
i
);
err
!=
nil
{
istpl
:=
template
.
New
(
"install"
)
.
Funcs
(
sprig
.
TxtFuncMap
())
if
err
:=
template
.
Must
(
istpl
.
Parse
(
InstallYAML
))
.
Execute
(
&
b
,
i
);
err
!=
nil
{
return
err
}
...
...
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