Skip to main content

Function: useClustersConf()

function useClustersConf(): 
| {
[clusterName: string]: Cluster;
}
| null;

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

Hook for getting or fetching the clusters configuration. This gets the clusters from the redux store. The redux store is updated when the user changes the configuration. The configuration is stored in the local storage. When stateless clusters are present, it combines the stateless clusters with the clusters from the redux store.

Returns​

| { [clusterName: string]: Cluster; } | null

the clusters configuration.