mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Inject CA asap
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
parent
61967cb8ed
commit
aa7645347f
@ -66,13 +66,15 @@ import { initTray } from "./tray";
|
|||||||
import { kubeApiRequest, shellApiRequest } from "./proxy-functions";
|
import { kubeApiRequest, shellApiRequest } from "./proxy-functions";
|
||||||
import { AppPaths } from "../common/app-paths";
|
import { AppPaths } from "../common/app-paths";
|
||||||
|
|
||||||
|
injectSystemCAs();
|
||||||
|
|
||||||
const onCloseCleanup = disposer();
|
const onCloseCleanup = disposer();
|
||||||
const onQuitCleanup = disposer();
|
const onQuitCleanup = disposer();
|
||||||
|
|
||||||
|
|
||||||
SentryInit();
|
SentryInit();
|
||||||
app.setName(appName);
|
app.setName(appName);
|
||||||
|
|
||||||
|
|
||||||
logger.info(`📟 Setting ${productName} as protocol client for lens://`);
|
logger.info(`📟 Setting ${productName} as protocol client for lens://`);
|
||||||
|
|
||||||
if (app.setAsDefaultProtocolClient("lens")) {
|
if (app.setAsDefaultProtocolClient("lens")) {
|
||||||
@ -120,9 +122,7 @@ app.on("second-instance", (event, argv) => {
|
|||||||
WindowManager.getInstance(false)?.ensureMainWindow();
|
WindowManager.getInstance(false)?.ensureMainWindow();
|
||||||
});
|
});
|
||||||
|
|
||||||
app.on("ready", async () => {
|
app.on("ready", async () => {
|
||||||
await injectSystemCAs();
|
|
||||||
|
|
||||||
logger.info(`🚀 Starting ${productName} from "${AppPaths.get("exe")}"`);
|
logger.info(`🚀 Starting ${productName} from "${AppPaths.get("exe")}"`);
|
||||||
logger.info("🐚 Syncing shell environment");
|
logger.info("🐚 Syncing shell environment");
|
||||||
await shellSync();
|
await shellSync();
|
||||||
|
|||||||
@ -39,10 +39,11 @@ import { catalogEntityRegistry } from "./api/catalog-entity-registry";
|
|||||||
import logger from "../common/logger";
|
import logger from "../common/logger";
|
||||||
import { unmountComponentAtNode } from "react-dom";
|
import { unmountComponentAtNode } from "react-dom";
|
||||||
|
|
||||||
|
injectSystemCAs();
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
export class LensApp extends React.Component {
|
export class LensApp extends React.Component {
|
||||||
static async init(rootElem: HTMLElement) {
|
static async init(rootElem: HTMLElement) {
|
||||||
await injectSystemCAs();
|
|
||||||
catalogEntityRegistry.init();
|
catalogEntityRegistry.init();
|
||||||
ExtensionLoader.getInstance().loadOnClusterManagerRenderer();
|
ExtensionLoader.getInstance().loadOnClusterManagerRenderer();
|
||||||
LensProtocolRouterRenderer.createInstance().init();
|
LensProtocolRouterRenderer.createInstance().init();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user