mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Make Chart's IsRoot available to templates
Signed-off-by: Kai Takac <kai.takac@gmail.com>
This commit is contained in:
parent
4a0b3d8c3d
commit
06ae6f933a
1 changed files with 6 additions and 1 deletions
|
|
@ -345,8 +345,13 @@ func allTemplates(c *chart.Chart, vals chartutil.Values) map[string]renderable {
|
|||
// As it recurses, it also sets the values to be appropriate for the template
|
||||
// scope.
|
||||
func recAllTpls(c *chart.Chart, templates map[string]renderable, vals chartutil.Values) {
|
||||
chartMetaData := struct {
|
||||
chart.Metadata
|
||||
IsRoot bool
|
||||
}{*c.Metadata, c.IsRoot()}
|
||||
|
||||
next := map[string]interface{}{
|
||||
"Chart": c.Metadata,
|
||||
"Chart": chartMetaData,
|
||||
"Files": newFiles(c.Files),
|
||||
"Release": vals["Release"],
|
||||
"Capabilities": vals["Capabilities"],
|
||||
|
|
|
|||
Loading…
Reference in a new issue