fix templater: Don't try to template default value files
This commit is contained in:
parent
11cfc80020
commit
746e733cbb
1 changed files with 5 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue