Skip to main content

Function: useClustersConf()

function useClustersConf(): ConfigState["allClusters"]

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

ConfigState["allClusters"]

the clusters configuration.

Defined in

src/lib/k8s/index.ts:97