move globPatterns to edit pkg and make it public

This commit is contained in:
Takuro Wada
2019-06-25 11:21:29 +09:00
parent f11d083b0a
commit d34c82c905
7 changed files with 34 additions and 81 deletions

View File

@@ -18,6 +18,7 @@ package add
import (
"fmt"
"sigs.k8s.io/kustomize/v3/pkg/commands/edit"
"strings"
"sigs.k8s.io/kustomize/v3/pkg/fs"
@@ -85,7 +86,7 @@ func (a *flagsAndArgs) ExpandFileSource(fSys fs.FileSystem) error {
} else {
patterns = append(patterns, s[0])
}
result, err := globPatterns(fSys, patterns)
result, err := edit.GlobPatterns(fSys, patterns)
if err != nil {
return err
}