diff options
Diffstat (limited to 'templater/templater.go')
-rw-r--r-- | templater/templater.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templater/templater.go b/templater/templater.go index 4a0c8e7d8d8a..f6878d3dfa03 100644 --- a/templater/templater.go +++ b/templater/templater.go @@ -186,8 +186,10 @@ func templateFuncs() template.FuncMap { // 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 + for _, defaultFile := range util.DefaultFilenames { + if f.Name() == defaultFile { + return false + } } return strings.HasSuffix(f.Name(), "yaml") || |