Skip to main content

Function: requestPoolStatus()

function requestPoolStatus(spec: ResourcePoolStatusRequestSpec, cluster: string): Promise<ResourcePoolStatusRequest>;

Defined in: lib/k8s/resourcePoolStatusRequest.ts:143

Asks a cluster for the status of a driver's pools, and removes the request afterwards.

The answer is computed once per request. The wait has a limit because, as of Kubernetes 1.37, a driver with an incomplete pool leaves its request without a status.

Parameters​

ParameterTypeDescription
specResourcePoolStatusRequestSpecThe driver, and optionally the pool, to ask about.
clusterstringThe cluster to ask.

Returns​

Promise<ResourcePoolStatusRequest>

The answered request, which may have failed.

Throws​

PoolStatusRequestTimeoutError when the cluster does not answer in time.