From 66740dfad6de8f676748d2b79643706c1b8482bf Mon Sep 17 00:00:00 2001 From: Morten Torkildsen Date: Mon, 21 Sep 2020 20:54:57 -0700 Subject: [PATCH] Drop the get prefix from GetIgnoreFileName function --- kyaml/ext/ext.go | 4 ++-- kyaml/kio/ignorefilesmatcher.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kyaml/ext/ext.go b/kyaml/ext/ext.go index 312781b6e..c946577cc 100644 --- a/kyaml/ext/ext.go +++ b/kyaml/ext/ext.go @@ -3,8 +3,8 @@ package ext -// GetIgnoreFileName returns the name for ignore files in +// IgnoreFileName returns the name for ignore files in // packages. It can be overridden by tools using this library. -var GetIgnoreFileName = func() string { +var IgnoreFileName = func() string { return ".krmignore" } diff --git a/kyaml/kio/ignorefilesmatcher.go b/kyaml/kio/ignorefilesmatcher.go index 5f254f90c..9a6ce924b 100644 --- a/kyaml/kio/ignorefilesmatcher.go +++ b/kyaml/kio/ignorefilesmatcher.go @@ -39,7 +39,7 @@ type ignoreFilesMatcher struct { // we just add a matcher that match nothing. func (i *ignoreFilesMatcher) readIgnoreFile(path string) error { i.verifyPath(path) - m, err := gitignore.NewGitIgnore(filepath.Join(path, ext.GetIgnoreFileName())) + m, err := gitignore.NewGitIgnore(filepath.Join(path, ext.IgnoreFileName())) if err != nil { if os.IsNotExist(err) { i.matchers = append(i.matchers, matcher{