mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-09-15 12:18:57 +00:00
Drop the get prefix from GetIgnoreFileName function
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
package ext
|
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.
|
// packages. It can be overridden by tools using this library.
|
||||||
var GetIgnoreFileName = func() string {
|
var IgnoreFileName = func() string {
|
||||||
return ".krmignore"
|
return ".krmignore"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ type ignoreFilesMatcher struct {
|
|||||||
// we just add a matcher that match nothing.
|
// we just add a matcher that match nothing.
|
||||||
func (i *ignoreFilesMatcher) readIgnoreFile(path string) error {
|
func (i *ignoreFilesMatcher) readIgnoreFile(path string) error {
|
||||||
i.verifyPath(path)
|
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 err != nil {
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
i.matchers = append(i.matchers, matcher{
|
i.matchers = append(i.matchers, matcher{
|
||||||
|
|||||||
Reference in New Issue
Block a user