Skip to main content

Function: filterResource()

function filterResource(
item:
| KubeObjectInterface
| KubeEvent,
filter: FilterState,
search?: string,
matchCriteria?: string[]): boolean;

Defined in: redux/filterSlice.ts:44

Filters a resource based on the filter state.

Parameters

ParameterTypeDescription
item| KubeObjectInterface | KubeEventThe item to filter.
filterFilterStateThe filter state.
search?string-
matchCriteria?string[]The JSONPath criteria to match.

Returns

boolean

True if the item matches the filter, false otherwise.