From fdbbcab3b381c029ff0d586f8deeb5bdf06a2fd0 Mon Sep 17 00:00:00 2001 From: Michel Belleau Date: Mon, 18 Feb 2019 16:08:46 -0500 Subject: [PATCH] Fix for missing $root $root is used in $root.Files.Get and needs to be defined Signed-off-by: Michel Belleau --- docs/chart_template_guide/accessing_files.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/chart_template_guide/accessing_files.md b/docs/chart_template_guide/accessing_files.md index 206ad0cec..9977aad8f 100644 --- a/docs/chart_template_guide/accessing_files.md +++ b/docs/chart_template_guide/accessing_files.md @@ -129,6 +129,7 @@ You have multiple options with Globs: Or ```yaml +{{ $root := . }} {{ range $path, $bytes := .Files.Glob "foo/*" }} {{ base $path }}: '{{ $root.Files.Get $path | b64enc }}' {{ end }}