Skip to main content

Function: useListPerVersion()

function useListPerVersion(
resourceClass: typeof KubeObject,
clustersByVersion: ClustersByVersion,
namespace?: string[]):
| KubeObject<any>[]
| null;

Defined in: lib/k8s/schedulingApis.ts:179

Lists a resource from the clusters that serve it, asking each one for its own version.

Parameters​

ParameterTypeDescription
resourceClasstypeof KubeObjectThe class to list.
clustersByVersionClustersByVersionThe clusters to list from, per version they serve.
namespace?string[]The namespaces to list from.

Returns​

| KubeObject<any>[] | null

The items of every cluster, or null while any of them is still loading.