mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Cleanup 'Cluster' to remove environment specific details (#6951)
- requestNamespaceListPermissions is infallable so no need to have the extra try/catch - Refactor isMetricHidden method away from Cluster - Refactor shouldShowResource out of Cluster - Refactor isInLocalKubeconfig out of Cluster - Remove depecrated and unused workspace from Cluster - Refactor out kubectl as a dependency of Cluster - Remove from cluster getter used only once - Split out ClusterConnection from Cluster - Also split out KubeAuthProxyServer from ContextHandler - Rename ContextHandler to PrometheusHandler - Cleanup onNetworkOffline/Online impls within ClusterManager - Remove annotations from ClusterConnection - Remove mobx annotations from Cluster - Rename loadConfigFromFileInjectable - Remove all uses of dead createClusterInjectionToken - Fix type errors related to broadcastConnectionUpdate Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
e6d6d1d8f7
commit
ad9bafe2a5
133 files changed
+2544
-1961
No files matched your search
@@ -8,11 +8,11 @@ import type { ConfigResult } from "../kube-helpers";
|
||||
import { loadConfigFromString } from "../kube-helpers";
|
||||
import resolveTildeInjectable from "../path/resolve-tilde.injectable";
|
||||
|
||||
export type LoadConfigfromFile = (filePath: string) => Promise<ConfigResult>;
|
||||
export type LoadConfigFromFile = (filePath: string) => Promise<ConfigResult>;
|
||||
|
||||
const loadConfigfromFileInjectable = getInjectable({
|
||||
id: "load-configfrom-file",
|
||||
instantiate: (di): LoadConfigfromFile => {
|
||||
const loadConfigFromFileInjectable = getInjectable({
|
||||
id: "load-config-from-file",
|
||||
instantiate: (di): LoadConfigFromFile => {
|
||||
const readFile = di.inject(readFileInjectable);
|
||||
const resolveTilde = di.inject(resolveTildeInjectable);
|
||||
|
||||
@@ -20,4 +20,4 @@ const loadConfigfromFileInjectable = getInjectable({
|
||||
},
|
||||
});
|
||||
|
||||
export default loadConfigfromFileInjectable;
|
||||
export default loadConfigFromFileInjectable;
|
||||
Reference in new issue
Block a user