mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
createInstance in init
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
ec924bcc1c
commit
cbaff2e9a4
@ -60,10 +60,7 @@ import { WeblinkStore } from "../common/weblink-store";
|
||||
import { ExtensionsStore } from "../extensions/extensions-store";
|
||||
import { FilesystemProvisionerStore } from "./extension-filesystem";
|
||||
import { SentryInit } from "../common/sentry";
|
||||
import { DetectorRegistry } from "./cluster-detectors/detector-registry";
|
||||
|
||||
// This has to be called before start using winton-based logger
|
||||
// For example, before any logger.log
|
||||
SentryInit();
|
||||
|
||||
const workingDir = path.join(app.getPath("appData"), appName);
|
||||
@ -168,7 +165,6 @@ app.on("ready", async () => {
|
||||
ClusterManager.createInstance().init();
|
||||
KubeconfigSyncManager.createInstance();
|
||||
|
||||
DetectorRegistry.createInstance();
|
||||
initializers.initClusterMetadataDetectors();
|
||||
|
||||
try {
|
||||
|
||||
@ -27,7 +27,7 @@ import { NodesCountDetector } from "../cluster-detectors/nodes-count-detector";
|
||||
import { VersionDetector } from "../cluster-detectors/version-detector";
|
||||
|
||||
export function initClusterMetadataDetectors() {
|
||||
DetectorRegistry.getInstance()
|
||||
DetectorRegistry.createInstance()
|
||||
.add(ClusterIdDetector)
|
||||
.add(LastSeenDetector)
|
||||
.add(VersionDetector)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user