Skip to main content

Function: useClustersVersion()

function useClustersVersion(clusters: Cluster[]): [{
[clusterName: string]: StringDict;
}, {
[clusterName: string]: ApiError | null;
}];

Defined in: lib/k8s/index.ts:350

Hook to get the version of the clusters given by the parameter.

Parameters

ParameterTypeDescription
clustersCluster[]-

Returns

[{ [clusterName: string]: StringDict; }, { [clusterName: string]: ApiError | null; }]

a map with cluster -> version-info, and a map with cluster -> error.