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
e00f774a
Commit
e00f774a
authored
Jun 23, 2016
by
Matt Butcher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(engine): remove debugging output
parent
90c46e89
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
engine.go
pkg/engine/engine.go
+0
-4
No files found.
pkg/engine/engine.go
View file @
e00f774a
...
@@ -19,7 +19,6 @@ package engine
...
@@ -19,7 +19,6 @@ package engine
import
(
import
(
"bytes"
"bytes"
"fmt"
"fmt"
"log"
"text/template"
"text/template"
"github.com/Masterminds/sprig"
"github.com/Masterminds/sprig"
...
@@ -106,7 +105,6 @@ func (e *Engine) render(tpls map[string]renderable) (map[string]string, error) {
...
@@ -106,7 +105,6 @@ func (e *Engine) render(tpls map[string]renderable) (map[string]string, error) {
rendered
:=
make
(
map
[
string
]
string
,
len
(
files
))
rendered
:=
make
(
map
[
string
]
string
,
len
(
files
))
var
buf
bytes
.
Buffer
var
buf
bytes
.
Buffer
for
_
,
file
:=
range
files
{
for
_
,
file
:=
range
files
{
log
.
Printf
(
"Exec %s with %v (%s)"
,
file
,
tpls
[
file
]
.
vals
,
tpls
[
file
]
.
tpl
)
if
err
:=
t
.
ExecuteTemplate
(
&
buf
,
file
,
tpls
[
file
]
.
vals
);
err
!=
nil
{
if
err
:=
t
.
ExecuteTemplate
(
&
buf
,
file
,
tpls
[
file
]
.
vals
);
err
!=
nil
{
return
map
[
string
]
string
{},
fmt
.
Errorf
(
"render error in %q: %s"
,
file
,
err
)
return
map
[
string
]
string
{},
fmt
.
Errorf
(
"render error in %q: %s"
,
file
,
err
)
}
}
...
@@ -145,7 +143,6 @@ func recAllTpls(c *chart.Chart, templates map[string]renderable, parentVals char
...
@@ -145,7 +143,6 @@ func recAllTpls(c *chart.Chart, templates map[string]renderable, parentVals char
if
err
==
nil
{
if
err
==
nil
{
tmp
,
err
=
vs
.
Table
(
c
.
Metadata
.
Name
)
tmp
,
err
=
vs
.
Table
(
c
.
Metadata
.
Name
)
}
else
{
}
else
{
log
.
Printf
(
" *** COULD NOT FIND Values; using %s *** %q %v"
,
c
.
Metadata
.
Name
,
err
,
parentVals
)
tmp
,
err
=
parentVals
.
Table
(
c
.
Metadata
.
Name
)
tmp
,
err
=
parentVals
.
Table
(
c
.
Metadata
.
Name
)
}
}
...
@@ -159,7 +156,6 @@ func recAllTpls(c *chart.Chart, templates map[string]renderable, parentVals char
...
@@ -159,7 +156,6 @@ func recAllTpls(c *chart.Chart, templates map[string]renderable, parentVals char
}
}
}
}
//log.Printf("racAllTpls values: %v", cvals)
for
_
,
child
:=
range
c
.
Dependencies
{
for
_
,
child
:=
range
c
.
Dependencies
{
recAllTpls
(
child
,
templates
,
cvals
,
false
)
recAllTpls
(
child
,
templates
,
cvals
,
false
)
}
}
...
...
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