Inject CA asap

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
Hung-Han (Henry) Chen committed 2021-11-02 16:40:07 +02:00
1 parent 61967cb8ed
commit aa7645347f
2 files changed
+5 -4

No files matched your search

+3 -3
View File
@@ -66,13 +66,15 @@ import { initTray } from "./tray";
import { kubeApiRequest, shellApiRequest } from "./proxy-functions";
import { AppPaths } from "../common/app-paths";
injectSystemCAs();
const onCloseCleanup = disposer();
const onQuitCleanup = disposer();
SentryInit();
app.setName(appName);
logger.info(`📟 Setting ${productName} as protocol client for lens://`);
if (app.setAsDefaultProtocolClient("lens")) {
@@ -121,8 +123,6 @@ app.on("second-instance", (event, argv) => {
});
app.on("ready", async () => {
await injectSystemCAs();
logger.info(`🚀 Starting ${productName} from "${AppPaths.get("exe")}"`);
logger.info("🐚 Syncing shell environment");
await shellSync();
+2 -1
View File
@@ -39,10 +39,11 @@ import { catalogEntityRegistry } from "./api/catalog-entity-registry";
import logger from "../common/logger";
import { unmountComponentAtNode } from "react-dom";
injectSystemCAs();
@observer
export class LensApp extends React.Component {
static async init(rootElem: HTMLElement) {
await injectSystemCAs();
catalogEntityRegistry.init();
ExtensionLoader.getInstance().loadOnClusterManagerRenderer();
LensProtocolRouterRenderer.createInstance().init();