mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 18:10:59 +00:00
Add glob support in edit add resource
This commit is contained in:
@@ -109,13 +109,3 @@ func (l *fileLoader) Load(location string) ([]byte, error) {
|
||||
}
|
||||
return l.fSys.ReadFile(fullLocation)
|
||||
}
|
||||
|
||||
// GlobLoad returns the map from path to bytes from reading a glob path.
|
||||
// Implements the Loader interface.
|
||||
func (l *fileLoader) GlobLoad(location string) (map[string][]byte, error) {
|
||||
fullLocation, err := l.fullLocation(l.root, location)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return l.fSys.ReadFiles(fullLocation)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user