From 746e733cbbc8aef939eb2c3a695d5c41bbb4cb5a Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 4 Apr 2017 14:36:27 +0200 Subject: [PATCH] fix templater: Don't try to template default value files --- templater/templater.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templater/templater.go b/templater/templater.go index e9e8c11e9..67e33a535 100644 --- a/templater/templater.go +++ b/templater/templater.go @@ -156,8 +156,12 @@ func templateFuncs() template.FuncMap { return m } -// Checks whether a file is a resource file (i.e. is YAML or JSON) +// Checks whether a file is a resource file (i.e. is YAML or JSON) and not a default values file. func isResourceFile(f os.FileInfo) bool { + if f.Name() == "default.json" || f.Name() == "default.yaml" { + return false + } + return strings.HasSuffix(f.Name(), "yaml") || strings.HasSuffix(f.Name(), "yml") || strings.HasSuffix(f.Name(), "json")