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
| Parameter | Type | Description |
|---|---|---|
clusters | Cluster[] | - |
Returns
[{
[clusterName: string]: StringDict;
}, {
[clusterName: string]: ApiError | null;
}]
a map with cluster -> version-info, and a map with cluster -> error.