mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-10 16:42:51 +00:00
Remove some obsolete references to GrepFilter
Looks like GrepFilter was generalized to Filter.
This commit is contained in:
@@ -277,14 +277,14 @@ func (rn *RNode) GetMeta() (ResourceMeta, error) {
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// Pipe sequentially invokes each GrepFilter, and passes the result to the next
|
||||
// GrepFilter.
|
||||
// Pipe sequentially invokes each Filter, and passes the result to the next
|
||||
// Filter.
|
||||
//
|
||||
// Analogous to http://www.linfo.org/pipes.html
|
||||
//
|
||||
// * rn is provided as input to the first GrepFilter.
|
||||
// * if any GrepFilter returns an error, immediately return the error
|
||||
// * if any GrepFilter returns a nil RNode, immediately return nil, nil
|
||||
// * rn is provided as input to the first Filter.
|
||||
// * if any Filter returns an error, immediately return the error
|
||||
// * if any Filter returns a nil RNode, immediately return nil, nil
|
||||
// * if all Filters succeed with non-empty results, return the final result
|
||||
func (rn *RNode) Pipe(functions ...Filter) (*RNode, error) {
|
||||
// check if rn is nil to make chaining Pipe calls easier
|
||||
|
||||
Reference in New Issue
Block a user