func (s *strategicMergeSlice) filterByResource(r *unstructured.Unstructured) strategicMergeSlice {
	var result strategicMergeSlice
	for _, p := range *s {
		if p.GroupVersionKind() == r.GroupVersionKind() &&
			p.GetNamespace() == r.GetNamespace() &&
			p.GetName() == r.GetName() {
			result = append(result, p)
		}
	}
	return result
}
// filterByResource returns all the strategic merge patches in the strategicMergeSlice corresponding to a given resource
filterByResource returns all the strategic merge patches in the strategicMergeSlice corresponding to a given resource
// filterByResource returns all the strategic merge patches in the strategicMergeSlice corresponding to a given resource
func (s *strategicMergeSlice) filterByResource(r *unstructured.Unstructured) strategicMergeSlice {
	var result strategicMergeSlice
	for _, p := range *s {
		if p.GroupVersionKind() == r.GroupVersionKind() &&
			p.GetNamespace() == r.GetNamespace() &&
			p.GetName() == r.GetName() {
			result = append(result, p)
		}
	}
	return result
}
func ( s * strategicMergeSlice ) filterByResource ( r * unstructured . Unstructured ) strategicMergeSlice { var result strategicMergeSlice for _ , p := range * s { if p . GroupVersionKind ( ) == r . GroupVersionKind ( ) && p . GetNamespace ( ) == r . GetNamespace ( ) && p . GetName ( ) == r . GetName ( ) { result = append ( result , p ) } } return result }
filterByResource returns all the strategic merge patches in the strategicMergeSlice corresponding to a given resource
filterByResource returns all the strategic merge patches in the strategicMergeSlice corresponding to a given resource