Function: useClustersServing()
function useClustersServing(resourceClass: ServedResourceClass): string[] | undefined;
Defined in: lib/k8s/resourceAvailability.ts:72
The selected clusters that serve the given resource.
The clusters are kept rather than reduced to a flag, because a list resolves its endpoint against the first cluster it is given, so views built on an optional API have to be asked only for the clusters that serve it.
Parameters
| Parameter | Type | Description |
|---|---|---|
resourceClass | ServedResourceClass | The class whose isEnabled probes a cluster. |
Returns
string[] | undefined
The clusters that serve the resource, empty when none does, or undefined until the selected clusters have answered.