mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 10:15:22 +00:00
Drop the get prefix from GetIgnoreFileName function
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user