From 1b955e63f7862c95c3e5033d67f2b2b6e2a11759 Mon Sep 17 00:00:00 2001 From: Michael Huttner Date: Wed, 1 Aug 2018 15:38:34 +0200 Subject: [PATCH] Fixed error in docs for file access $path.base gives the error "can't evaluate field base in type string", it should be "base $path" --- docs/chart_template_guide/accessing_files.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/chart_template_guide/accessing_files.md b/docs/chart_template_guide/accessing_files.md index 11747d4f0..c959002b7 100644 --- a/docs/chart_template_guide/accessing_files.md +++ b/docs/chart_template_guide/accessing_files.md @@ -130,7 +130,7 @@ Or ```yaml {{ range $path, $bytes := .Files.Glob "foo/*" }} -{{ $path.base }}: '{{ $root.Files.Get $path | b64enc }}' +{{ base $path }}: '{{ $root.Files.Get $path | b64enc }}' {{ end }} ```