mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Deprecate some undesirables (#5086)
This commit is contained in:
parent
c48527b44f
commit
ab4780f67c
@ -72,11 +72,34 @@ const resourcesDir = lazyInitialized(() => (
|
|||||||
: path.join(process.cwd(), "binaries", "client", normalizedPlatform)
|
: path.join(process.cwd(), "binaries", "client", normalizedPlatform)
|
||||||
));
|
));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated for being explicit side effect.
|
||||||
|
*/
|
||||||
export const baseBinariesDir = lazyInitialized(() => path.join(resourcesDir.get(), normalizedArch));
|
export const baseBinariesDir = lazyInitialized(() => path.join(resourcesDir.get(), normalizedArch));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated for being explicit side effect.
|
||||||
|
*/
|
||||||
export const kubeAuthProxyBinaryName = getBinaryName("lens-k8s-proxy");
|
export const kubeAuthProxyBinaryName = getBinaryName("lens-k8s-proxy");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated for being explicit side effect.
|
||||||
|
*/
|
||||||
export const helmBinaryName = getBinaryName("helm");
|
export const helmBinaryName = getBinaryName("helm");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated for being explicit side effect.
|
||||||
|
*/
|
||||||
export const helmBinaryPath = lazyInitialized(() => path.join(baseBinariesDir.get(), helmBinaryName));
|
export const helmBinaryPath = lazyInitialized(() => path.join(baseBinariesDir.get(), helmBinaryName));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated for being explicit side effect.
|
||||||
|
*/
|
||||||
export const kubectlBinaryName = getBinaryName("kubectl");
|
export const kubectlBinaryName = getBinaryName("kubectl");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated for being explicit side effect.
|
||||||
|
*/
|
||||||
export const kubectlBinaryPath = lazyInitialized(() => path.join(baseBinariesDir.get(), kubectlBinaryName));
|
export const kubectlBinaryPath = lazyInitialized(() => path.join(baseBinariesDir.get(), kubectlBinaryName));
|
||||||
|
|
||||||
// Webpack build paths
|
// Webpack build paths
|
||||||
|
|||||||
@ -5,6 +5,9 @@
|
|||||||
import { asLegacyGlobalForExtensionApi } from "./as-legacy-global-object-for-extension-api";
|
import { asLegacyGlobalForExtensionApi } from "./as-legacy-global-object-for-extension-api";
|
||||||
import type { Injectable } from "@ogre-tools/injectable";
|
import type { Injectable } from "@ogre-tools/injectable";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated use asLegacyGlobalForExtensionApi instead, and use proper implementations instead of "modifications".
|
||||||
|
*/
|
||||||
export const asLegacyGlobalObjectForExtensionApiWithModifications = <
|
export const asLegacyGlobalObjectForExtensionApiWithModifications = <
|
||||||
InjectableInstance extends InjectionTokenInstance,
|
InjectableInstance extends InjectionTokenInstance,
|
||||||
InjectionTokenInstance,
|
InjectionTokenInstance,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user