func ObjectFieldMatchIn()

in pkg/filter/filter.go [326:338]


func ObjectFieldMatchIn(matchList []string, objectGetter func(*unstructured.Unstructured) string) ComponentPredicate {
	return func(component *bundle.Component) bool {
		for _, obj := range component.Spec.Objects {
			ov := objectGetter(obj)
			for _, match := range matchList {
				if ov == match {
					return true
				}
			}
		}
		return false
	}
}