Skip to main content

Function: filterResource()

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

Filters a resource based on the filter state.

Parameters

ParameterTypeDescription
itemKubeObjectInterface | 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.

Defined in

src/redux/filterSlice.ts:42