@k8slens/extensions 6.3.0-git.30bfd6fa88.0 → 6.3.0-git.374701dd6e.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/common/utils/binary-name.injectable.d.ts +2 -0
- package/dist/src/common/utils/bundled-binary-path.injectable.d.ts +2 -0
- package/dist/src/common/utils/composable-responsibilities/orderable/orderable.d.ts +1 -0
- package/dist/src/common/vars/normalized-platform.injectable.d.ts +2 -1
- package/dist/src/common/vars.d.ts +0 -27
- package/dist/src/extensions/extension-api.js +3 -14
- package/dist/src/extensions/lens-renderer-extension.d.ts +2 -1
- package/dist/src/extensions/registries/index.d.ts +0 -1
- package/dist/src/{renderer/components/cluster-settings/components/__tests__/cluster-local-terminal-settings.test.d.ts → features/entity-settings/showing-settings-for-correct-entity.test.d.ts} +0 -0
- package/dist/src/features/preferences/renderer/preference-navigation/navigate-to-preference-tab/navigate-to-preference-tab.injectable.d.ts +2 -1
- package/dist/src/main/context-handler/context-handler.d.ts +12 -7
- package/dist/src/main/kube-auth-proxy/kube-auth-proxy-certificate.injectable.d.ts +7 -0
- package/dist/src/main/kube-auth-proxy/lens-k8s-proxy-path.injectable.d.ts +2 -0
- package/dist/src/main/kubectl/binary-name.injectable.d.ts +1 -1
- package/dist/src/main/kubectl/kubectl.d.ts +2 -1
- package/dist/src/main/prometheus/get-by-kind.injectable.d.ts +4 -0
- package/dist/src/main/prometheus/helm-14-provider.injectable.d.ts +6 -0
- package/dist/src/main/prometheus/helm-provider.injectable.d.ts +10 -0
- package/dist/src/main/prometheus/lens-provider.injectable.d.ts +10 -0
- package/dist/src/main/prometheus/operator-provider.injectable.ts.d.ts +10 -0
- package/dist/src/main/prometheus/provider.d.ts +38 -0
- package/dist/src/main/prometheus/providers.injectable.d.ts +2 -0
- package/dist/src/main/prometheus/stacklight-provider.injectable.d.ts +10 -0
- package/dist/src/renderer/components/+catalog/columns/extensions-registrator.injectable.d.ts +18 -2
- package/dist/src/renderer/components/+entity-settings/active-tabs.injectable.d.ts +21 -0
- package/dist/src/renderer/components/+entity-settings/current-entity.injectable.d.ts +2 -0
- package/dist/src/renderer/components/+entity-settings/entity-settings.d.ts +1 -1
- package/dist/src/renderer/components/+entity-settings/extension-registrator.injectable.d.ts +39 -0
- package/dist/src/renderer/components/+entity-settings/has-settings.injectable.d.ts +4 -0
- package/dist/src/renderer/components/+entity-settings/index.d.ts +0 -1
- package/dist/src/renderer/components/+entity-settings/internal-kubernetes-cluster/general-settings.injectable.d.ts +15 -0
- package/dist/src/renderer/components/+entity-settings/internal-kubernetes-cluster/metrics-settings.injectable.d.ts +14 -0
- package/dist/src/renderer/components/+entity-settings/internal-kubernetes-cluster/namespace-settings.injectable.d.ts +14 -0
- package/dist/src/renderer/components/+entity-settings/internal-kubernetes-cluster/node-shell-settings.injectable.d.ts +14 -0
- package/dist/src/renderer/components/+entity-settings/internal-kubernetes-cluster/proxy-settings.injectable.d.ts +14 -0
- package/dist/src/renderer/components/+entity-settings/internal-kubernetes-cluster/terminal-settings.injectable.d.ts +14 -0
- package/dist/src/renderer/components/+entity-settings/{entity-settings-route-component.injectable.d.ts → route-component.injectable.d.ts} +0 -0
- package/dist/src/renderer/components/+entity-settings/{entity-settings-route-parameters.injectable.d.ts → route-parameters.injectable.d.ts} +0 -0
- package/dist/src/renderer/components/+entity-settings/settings.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+entity-settings/token.d.ts +6 -0
- package/dist/src/renderer/components/cluster-settings/{index.d.ts → __tests__/cluster-local-terminal-settings.test.d.ts} +1 -1
- package/dist/src/renderer/components/cluster-settings/{components/cluster-accessible-namespaces.d.ts → accessible-namespaces.d.ts} +1 -1
- package/dist/src/renderer/components/cluster-settings/{components/cluster-icon-settings.d.ts → icon-settings.d.ts} +2 -2
- package/dist/src/renderer/components/cluster-settings/{components/cluster-kubeconfig.d.ts → kubeconfig.d.ts} +1 -1
- package/dist/src/renderer/components/cluster-settings/{components/cluster-local-terminal-settings.d.ts → local-terminal-settings.d.ts} +1 -1
- package/dist/src/renderer/components/cluster-settings/{components/cluster-metrics-setting.d.ts → metrics-setting.d.ts} +1 -1
- package/dist/src/renderer/components/cluster-settings/{components/cluster-name-setting.d.ts → name-setting.d.ts} +2 -2
- package/dist/src/renderer/components/cluster-settings/{components/cluster-node-shell-setting.d.ts → node-shell-setting.d.ts} +1 -1
- package/dist/src/renderer/components/cluster-settings/{components/cluster-prometheus-setting.d.ts → prometheus-setting.d.ts} +1 -1
- package/dist/src/renderer/components/cluster-settings/{components/cluster-proxy-setting.d.ts → proxy-setting.d.ts} +1 -1
- package/dist/src/renderer/components/cluster-settings/{components/cluster-show-metrics.d.ts → show-metrics.d.ts} +1 -1
- package/dist/src/renderer/components/tabs/tabs.d.ts +9 -9
- package/dist/src/renderer/initializers/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/src/common/utils/lazy-initialized.d.ts +0 -17
- package/dist/src/extensions/registries/entity-setting-registry.d.ts +0 -30
- package/dist/src/main/kube-auth-proxy/get-kube-auth-proxy-certificate.d.ts +0 -8
- package/dist/src/main/prometheus/helm-14.d.ts +0 -14
- package/dist/src/main/prometheus/helm.d.ts +0 -14
- package/dist/src/main/prometheus/index.d.ts +0 -5
- package/dist/src/main/prometheus/lens.d.ts +0 -15
- package/dist/src/main/prometheus/operator.d.ts +0 -15
- package/dist/src/main/prometheus/prometheus-provider-registry.injectable.d.ts +0 -3
- package/dist/src/main/prometheus/provider-registry.d.ts +0 -27
- package/dist/src/main/prometheus/stacklight.d.ts +0 -15
- package/dist/src/main/start-main-application/runnables/setup-prometheus-registry.injectable.d.ts +0 -5
- package/dist/src/renderer/components/cluster-settings/cluster-settings.d.ts +0 -11
- package/dist/src/renderer/components/cluster-settings/components/index.d.ts +0 -14
- package/dist/src/renderer/components/command-palette/registered-commands/get-entity-setting-commands.injectable.d.ts +0 -4
- package/dist/src/renderer/initializers/entity-settings-registry.d.ts +0 -5
@@ -1,2 +1,3 @@
|
|
1
|
-
|
1
|
+
export type NormalizedPlatform = "darwin" | "linux" | "windows";
|
2
|
+
declare const normalizedPlatformInjectable: import("@ogre-tools/injectable").Injectable<NormalizedPlatform, unknown, void>;
|
2
3
|
export default normalizedPlatformInjectable;
|
@@ -36,33 +36,6 @@ export declare const defaultThemeId: ThemeId;
|
|
36
36
|
export declare const defaultFontSize = 12;
|
37
37
|
export declare const defaultTerminalFontFamily = "RobotoMono";
|
38
38
|
export declare const defaultEditorFontFamily = "RobotoMono";
|
39
|
-
/**
|
40
|
-
* @deprecated use `di.inject(normalizedPlatformInjectable)` instead
|
41
|
-
*/
|
42
|
-
export declare const normalizedPlatform: string;
|
43
|
-
/**
|
44
|
-
* @deprecated use `di.inject(bundledBinariesNormalizedArchInjectable)` instead
|
45
|
-
*/
|
46
|
-
export declare const normalizedArch: string;
|
47
|
-
export declare function getBinaryName(name: string, { forPlatform }?: {
|
48
|
-
forPlatform?: string | undefined;
|
49
|
-
}): string;
|
50
|
-
/**
|
51
|
-
* @deprecated for being explicit side effect.
|
52
|
-
*/
|
53
|
-
export declare const baseBinariesDir: import("./utils/lazy-initialized").LazyInitialized<string>;
|
54
|
-
/**
|
55
|
-
* @deprecated for being explicit side effect.
|
56
|
-
*/
|
57
|
-
export declare const kubeAuthProxyBinaryName: string;
|
58
|
-
/**
|
59
|
-
* @deprecated for being explicit side effect.
|
60
|
-
*/
|
61
|
-
export declare const helmBinaryName: string;
|
62
|
-
/**
|
63
|
-
* @deprecated for being explicit side effect.
|
64
|
-
*/
|
65
|
-
export declare const helmBinaryPath: import("./utils/lazy-initialized").LazyInitialized<string>;
|
66
39
|
export declare const apiPrefix = "/api";
|
67
40
|
export declare const apiKubePrefix = "/api-kube";
|
68
41
|
export declare const issuesTrackerUrl: string;
|
@@ -31128,17 +31128,6 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
31128
31128
|
|
31129
31129
|
/***/ }),
|
31130
31130
|
|
31131
|
-
/***/ "./src/common/utils/lazy-initialized.ts":
|
31132
|
-
/*!**********************************************!*\
|
31133
|
-
!*** ./src/common/utils/lazy-initialized.ts ***!
|
31134
|
-
\**********************************************/
|
31135
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
31136
|
-
|
31137
|
-
"use strict";
|
31138
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"lazyInitialized\": () => (/* binding */ lazyInitialized)\n/* harmony export */ });\n/**\n * Copyright (c) OpenLens Authors. All rights reserved.\n * Licensed under MIT License. See LICENSE in root directory for more information.\n */\n/**\n * A function to make a `OnceCell<T>`\n */\nfunction lazyInitialized(builder) {\n let value;\n let called = false;\n return {\n get() {\n if (called) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return value;\n }\n value = builder();\n called = true;\n return value;\n },\n };\n}\n\n\n//# sourceURL=webpack://open-lens/./src/common/utils/lazy-initialized.ts?");
|
31139
|
-
|
31140
|
-
/***/ }),
|
31141
|
-
|
31142
31131
|
/***/ "./src/common/utils/n-fircate.ts":
|
31143
31132
|
/*!***************************************!*\
|
31144
31133
|
!*** ./src/common/utils/n-fircate.ts ***!
|
@@ -31366,7 +31355,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
31366
31355
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
31367
31356
|
|
31368
31357
|
"use strict";
|
31369
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"apiKubePrefix\": () => (/* binding */ apiKubePrefix),\n/* harmony export */ \"apiPrefix\": () => (/* binding */ apiPrefix),\n/* harmony export */ \"
|
31358
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"apiKubePrefix\": () => (/* binding */ apiKubePrefix),\n/* harmony export */ \"apiPrefix\": () => (/* binding */ apiPrefix),\n/* harmony export */ \"defaultEditorFontFamily\": () => (/* binding */ defaultEditorFontFamily),\n/* harmony export */ \"defaultFontSize\": () => (/* binding */ defaultFontSize),\n/* harmony export */ \"defaultTerminalFontFamily\": () => (/* binding */ defaultTerminalFontFamily),\n/* harmony export */ \"defaultThemeId\": () => (/* binding */ defaultThemeId),\n/* harmony export */ \"docsUrl\": () => (/* binding */ docsUrl),\n/* harmony export */ \"isDebugging\": () => (/* binding */ isDebugging),\n/* harmony export */ \"isDevelopment\": () => (/* binding */ isDevelopment),\n/* harmony export */ \"isLinux\": () => (/* binding */ isLinux),\n/* harmony export */ \"isMac\": () => (/* binding */ isMac),\n/* harmony export */ \"isProduction\": () => (/* binding */ isProduction),\n/* harmony export */ \"isTestEnv\": () => (/* binding */ isTestEnv),\n/* harmony export */ \"isWindows\": () => (/* binding */ isWindows),\n/* harmony export */ \"issuesTrackerUrl\": () => (/* binding */ issuesTrackerUrl),\n/* harmony export */ \"kubernetesDocumentationWeblinkId\": () => (/* binding */ kubernetesDocumentationWeblinkId),\n/* harmony export */ \"lensBlogWeblinkId\": () => (/* binding */ lensBlogWeblinkId),\n/* harmony export */ \"lensDocumentationWeblinkId\": () => (/* binding */ lensDocumentationWeblinkId),\n/* harmony export */ \"lensSlackWeblinkId\": () => (/* binding */ lensSlackWeblinkId),\n/* harmony export */ \"lensTwitterWeblinkId\": () => (/* binding */ lensTwitterWeblinkId),\n/* harmony export */ \"lensWebsiteWeblinkId\": () => (/* binding */ lensWebsiteWeblinkId),\n/* harmony export */ \"publicPath\": () => (/* binding */ publicPath),\n/* harmony export */ \"slackUrl\": () => (/* binding */ slackUrl),\n/* harmony export */ \"supportUrl\": () => (/* binding */ supportUrl)\n/* harmony export */ });\n/**\n * Copyright (c) OpenLens Authors. All rights reserved.\n * Licensed under MIT License. See LICENSE in root directory for more information.\n */\nvar _a;\n/**\n * @deprecated Switch to using isMacInjectable\n */\nconst isMac = process.platform === \"darwin\";\n/**\n * @deprecated Switch to using isWindowsInjectable\n */\nconst isWindows = process.platform === \"win32\";\n/**\n * @deprecated Switch to using isLinuxInjectable\n */\nconst isLinux = process.platform === \"linux\";\n/**\n * @deprecated switch to using `isDebuggingInjectable`\n */\nconst isDebugging = [\"true\", \"1\", \"yes\", \"y\", \"on\"].includes(((_a = process.env.DEBUG) !== null && _a !== void 0 ? _a : \"\").toLowerCase());\n/**\n * @deprecated Switch to using isTestEnvInjectable\n */\nconst isTestEnv = !!process.env.JEST_WORKER_ID;\n/**\n * @deprecated Switch to using isProductionInjectable\n */\nconst isProduction = \"development\" === \"production\";\n/**\n * @deprecated Switch to using isDevelopmentInjectable\n */\nconst isDevelopment = !isTestEnv && !isProduction;\nconst publicPath = \"/build/\";\nconst defaultThemeId = \"lens-dark\";\nconst defaultFontSize = 12;\nconst defaultTerminalFontFamily = \"RobotoMono\";\nconst defaultEditorFontFamily = \"RobotoMono\";\n// Apis\nconst apiPrefix = \"/api\"; // local router apis\nconst apiKubePrefix = \"/api-kube\"; // k8s cluster apis\n// Links\nconst issuesTrackerUrl = \"https://github.com/lensapp/lens/issues\";\nconst slackUrl = \"https://join.slack.com/t/k8slens/shared_invite/zt-wcl8jq3k-68R5Wcmk1o95MLBE5igUDQ\";\nconst supportUrl = \"https://docs.k8slens.dev/support/\";\nconst lensWebsiteWeblinkId = \"lens-website-link\";\nconst lensDocumentationWeblinkId = \"lens-documentation-link\";\nconst lensSlackWeblinkId = \"lens-slack-link\";\nconst lensTwitterWeblinkId = \"lens-twitter-link\";\nconst lensBlogWeblinkId = \"lens-blog-link\";\nconst kubernetesDocumentationWeblinkId = \"kubernetes-documentation-link\";\nconst docsUrl = \"https://docs.k8slens.dev\";\n\n\n//# sourceURL=webpack://open-lens/./src/common/vars.ts?");
|
31370
31359
|
|
31371
31360
|
/***/ }),
|
31372
31361
|
|
@@ -34270,7 +34259,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
34270
34259
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
34271
34260
|
|
34272
34261
|
"use strict";
|
34273
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"TabLayout\": () => (/* binding */ TabLayout)\n/* harmony export */ });\n/* harmony import */ var _tab_layout_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tab-layout.scss */ \"./src/renderer/components/layout/tab-layout.scss\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! mobx-react */ \"./node_modules/mobx-react/dist/mobxreact.esm.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils */ \"./src/renderer/utils/index.ts\");\n/* harmony import */ var _tabs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tabs */ \"./src/renderer/components/tabs/index.ts\");\n/* harmony import */ var _error_boundary__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../error-boundary */ \"./src/renderer/components/error-boundary/index.ts\");\n/**\n * Copyright (c) OpenLens Authors. All rights reserved.\n * Licensed under MIT License. See LICENSE in root directory for more information.\n */\n\n\n\n\n\n\nconst TabLayout = (0,mobx_react__WEBPACK_IMPORTED_MODULE_5__.observer)(({ tabs = [], children, }) => {\n const hasTabs = tabs.length > 0;\n return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(\"div\", { className: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.cssNames)(\"TabLayout\"), \"data-testid\": \"tab-layout\" },\n hasTabs && (react__WEBPACK_IMPORTED_MODULE_1__.createElement(_tabs__WEBPACK_IMPORTED_MODULE_3__.Tabs, { center: true }, tabs.map(({ registration, isActive }) => {\n const active = isActive.get();\n return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(_tabs__WEBPACK_IMPORTED_MODULE_3__.Tab, { onClick: registration.onClick, key: registration.id, label: registration.title, active: active, \"data-is-active-test\": active, \"data-testid\": `tab-link-for-${registration.id}
|
34262
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"TabLayout\": () => (/* binding */ TabLayout)\n/* harmony export */ });\n/* harmony import */ var _tab_layout_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tab-layout.scss */ \"./src/renderer/components/layout/tab-layout.scss\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! mobx-react */ \"./node_modules/mobx-react/dist/mobxreact.esm.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils */ \"./src/renderer/utils/index.ts\");\n/* harmony import */ var _tabs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tabs */ \"./src/renderer/components/tabs/index.ts\");\n/* harmony import */ var _error_boundary__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../error-boundary */ \"./src/renderer/components/error-boundary/index.ts\");\n/**\n * Copyright (c) OpenLens Authors. All rights reserved.\n * Licensed under MIT License. See LICENSE in root directory for more information.\n */\n\n\n\n\n\n\nconst TabLayout = (0,mobx_react__WEBPACK_IMPORTED_MODULE_5__.observer)(({ tabs = [], children, }) => {\n const hasTabs = tabs.length > 0;\n return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(\"div\", { className: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.cssNames)(\"TabLayout\"), \"data-testid\": \"tab-layout\" },\n hasTabs && (react__WEBPACK_IMPORTED_MODULE_1__.createElement(_tabs__WEBPACK_IMPORTED_MODULE_3__.Tabs, { center: true }, tabs.map(({ registration, isActive }) => {\n const active = isActive.get();\n return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(_tabs__WEBPACK_IMPORTED_MODULE_3__.Tab, { onClick: registration.onClick, key: registration.id, label: registration.title, active: active, \"data-is-active-test\": active, \"data-testid\": `tab-link-for-${registration.id}`, value: undefined }));\n }))),\n react__WEBPACK_IMPORTED_MODULE_1__.createElement(\"main\", null,\n react__WEBPACK_IMPORTED_MODULE_1__.createElement(_error_boundary__WEBPACK_IMPORTED_MODULE_4__.ErrorBoundary, null, children))));\n});\n\n\n//# sourceURL=webpack://open-lens/./src/renderer/components/layout/tab-layout-2.tsx?");
|
34274
34263
|
|
34275
34264
|
/***/ }),
|
34276
34265
|
|
@@ -40001,7 +39990,7 @@ eval("module.exports = JSON.parse('{\"name\":\"winston\",\"description\":\"A log
|
|
40001
39990
|
/***/ ((module) => {
|
40002
39991
|
|
40003
39992
|
"use strict";
|
40004
|
-
eval("module.exports = JSON.parse('{\"name\":\"open-lens\",\"productName\":\"OpenLens\",\"description\":\"OpenLens - Open Source IDE for Kubernetes\",\"homepage\":\"https://github.com/lensapp/lens\",\"version\":\"6.3.0-alpha.0\",\"main\":\"static/build/main.js\",\"copyright\":\"© 2022 OpenLens Authors\",\"license\":\"MIT\",\"author\":{\"name\":\"OpenLens Authors\",\"email\":\"info@k8slens.dev\"},\"scripts\":{\"adr:create\":\"echo \\\\\"What is the title?\\\\\"; read title; adr new \\\\\"$title\\\\\"\",\"adr:change-status\":\"echo \\\\\"Decision number?:\\\\\"; read decision; adr status $decision\",\"adr:update-readme\":\"adr update\",\"adr:list\":\"adr list\",\"dev\":\"concurrently -i -k \\\\\"yarn run dev-run -C\\\\\" yarn:dev:*\",\"dev-build\":\"concurrently yarn:compile:*\",\"debug-build\":\"concurrently yarn:compile:main yarn:compile:extension-types\",\"dev-run\":\"nodemon --watch ./static/build/main.js --exec \\\\\"electron --remote-debugging-port=9223 --inspect .\\\\\"\",\"dev:main\":\"yarn run compile:main --watch --progress\",\"dev:renderer\":\"yarn run ts-node webpack/dev-server.ts\",\"compile\":\"env NODE_ENV=production concurrently yarn:compile:*\",\"compile:main\":\"yarn run webpack --config webpack/main.ts\",\"compile:renderer\":\"yarn run webpack --config webpack/renderer.ts\",\"compile:extension-types\":\"yarn run webpack --config webpack/extensions.ts\",\"compile:node-fetch\":\"yarn run webpack --config ./webpack/node-fetch.ts\",\"postinstall\":\"yarn run compile:node-fetch\",\"npm:fix-package-version\":\"yarn run ts-node build/set_npm_version.ts\",\"build:linux\":\"yarn run compile && electron-builder --linux --dir\",\"build:mac\":\"yarn run compile && electron-builder --mac --dir\",\"build:win\":\"yarn run compile && electron-builder --win --dir\",\"integration\":\"jest --runInBand --detectOpenHandles --forceExit integration\",\"test:unit\":\"func() { jest ${1} --watch --testPathIgnorePatterns integration; }; func\",\"test:integration\":\"func() { jest ${1:-xyz} --watch --runInBand --detectOpenHandles --forceExit --modulePaths=[\\\\\"<rootDir>/integration/\\\\\"]; }; func\",\"dist\":\"yarn run compile && electron-builder --publish onTag\",\"dist:dir\":\"yarn run dist --dir -c.compression=store -c.mac.identity=null\",\"download:binaries\":\"yarn run ts-node build/download_binaries.ts\",\"build:tray-icons\":\"yarn run ts-node build/generate-tray-icons.ts\",\"build:theme-vars\":\"yarn run ts-node build/build_theme_vars.ts\",\"lint\":\"PROD=true yarn run eslint --ext js,ts,tsx --max-warnings=0 .\",\"lint:fix\":\"yarn run lint --fix\",\"mkdocs-serve-local\":\"docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -it -p 8000:8000 -v ${PWD}:/docs mkdocs-serve-local:latest\",\"verify-docs\":\"docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -v ${PWD}:/docs mkdocs-serve-local:latest build --strict\",\"typedocs-extensions-api\":\"yarn run typedoc src/extensions/extension-api.ts\",\"version-checkout\":\"cat package.json | jq \\'.version\\' -r | xargs printf \\\\\"release/v%s\\\\\" | xargs git checkout -b\",\"version-commit\":\"cat package.json | jq \\'.version\\' -r | xargs printf \\\\\"release v%s\\\\\" | git commit --no-edit -s -F -\",\"version\":\"yarn run version-checkout && git add package.json && yarn run version-commit\",\"postversion\":\"git push --set-upstream ${GIT_REMOTE:-origin} release/v$npm_package_version\",\"precreate-release-pr\":\"npx swc ./scripts/create-release-pr.ts -o ./scripts/create-release-pr.mjs\",\"create-release-pr\":\"node ./scripts/create-release-pr.mjs\"},\"config\":{\"k8sProxyVersion\":\"0.3.0\",\"bundledKubectlVersion\":\"1.23.3\",\"bundledHelmVersion\":\"3.7.2\",\"sentryDsn\":\"\",\"contentSecurityPolicy\":\"script-src \\'unsafe-eval\\' \\'self\\'; frame-src http://*.localhost:*/; img-src * data:\",\"welcomeRoute\":\"/welcome\"},\"engines\":{\"node\":\">=16 <17\"},\"jest\":{\"collectCoverage\":false,\"verbose\":true,\"transform\":{\"^.+\\\\\\\\.(t|j)sx?$\":[\"@swc/jest\"]},\"testEnvironment\":\"jsdom\",\"resolver\":\"<rootDir>/src/jest-28-resolver.js\",\"moduleNameMapper\":{\"\\\\\\\\.(css|scss)$\":\"identity-obj-proxy\",\"\\\\\\\\.(svg|png|jpg|eot|woff2?|ttf)$\":\"<rootDir>/__mocks__/assetMock.ts\"},\"modulePathIgnorePatterns\":[\"<rootDir>/dist\",\"<rootDir>/src/extensions/npm\"],\"setupFiles\":[\"<rootDir>/src/jest.setup.ts\",\"jest-canvas-mock\"],\"globalSetup\":\"<rootDir>/src/jest.timezone.ts\",\"setupFilesAfterEnv\":[\"<rootDir>/src/jest-after-env.setup.ts\"],\"runtime\":\"@side/jest-runtime\"},\"build\":{\"generateUpdatesFilesForAllChannels\":true,\"files\":[\"static/build/main.js\"],\"afterSign\":\"build/notarize.js\",\"extraResources\":[{\"from\":\"locales/\",\"to\":\"locales/\",\"filter\":\"**/*.js\"},{\"from\":\"static/\",\"to\":\"static/\",\"filter\":\"!**/main.js\"},{\"from\":\"build/tray\",\"to\":\"static/icons\",\"filter\":\"*.png\"},{\"from\":\"extensions/\",\"to\":\"./extensions/\",\"filter\":[\"**/*.tgz\",\"**/package.json\",\"!**/node_modules\"]},{\"from\":\"templates/\",\"to\":\"./templates/\",\"filter\":\"**/*.yaml\"},\"LICENSE\"],\"linux\":{\"category\":\"Network\",\"artifactName\":\"${productName}-${version}.${arch}.${ext}\",\"target\":[\"deb\",\"rpm\",\"AppImage\"],\"extraResources\":[{\"from\":\"binaries/client/linux/${arch}/kubectl\",\"to\":\"./${arch}/kubectl\"},{\"from\":\"binaries/client/linux/${arch}/lens-k8s-proxy\",\"to\":\"./${arch}/lens-k8s-proxy\"},{\"from\":\"binaries/client/linux/${arch}/helm\",\"to\":\"./${arch}/helm\"}]},\"rpm\":{\"fpm\":[\"--rpm-rpmbuild-define=%define _build_id_links none\"]},\"mac\":{\"hardenedRuntime\":true,\"gatekeeperAssess\":false,\"entitlements\":\"build/entitlements.mac.plist\",\"entitlementsInherit\":\"build/entitlements.mac.plist\",\"extraResources\":[{\"from\":\"binaries/client/darwin/${arch}/kubectl\",\"to\":\"./${arch}/kubectl\"},{\"from\":\"binaries/client/darwin/${arch}/lens-k8s-proxy\",\"to\":\"./${arch}/lens-k8s-proxy\"},{\"from\":\"binaries/client/darwin/${arch}/helm\",\"to\":\"./${arch}/helm\"}]},\"win\":{\"target\":[\"nsis\"],\"extraResources\":[{\"from\":\"binaries/client/windows/${arch}/kubectl.exe\",\"to\":\"./${arch}/kubectl.exe\"},{\"from\":\"binaries/client/windows/${arch}/lens-k8s-proxy.exe\",\"to\":\"./${arch}/lens-k8s-proxy.exe\"},{\"from\":\"binaries/client/windows/${arch}/helm.exe\",\"to\":\"./${arch}/helm.exe\"}]},\"nsis\":{\"include\":\"build/installer.nsh\",\"oneClick\":false,\"allowElevation\":true,\"createStartMenuShortcut\":true,\"allowToChangeInstallationDirectory\":true},\"protocols\":{\"name\":\"Lens Protocol Handler\",\"schemes\":[\"lens\"],\"role\":\"Viewer\"}},\"resolutions\":{\"@astronautlabs/jsonpath/underscore\":\"^1.12.1\"},\"dependencies\":{\"@astronautlabs/jsonpath\":\"^1.1.0\",\"@hapi/call\":\"^9.0.0\",\"@hapi/subtext\":\"^7.0.4\",\"@kubernetes/client-node\":\"^0.17.1\",\"@material-ui/styles\":\"^4.11.5\",\"@ogre-tools/fp\":\"^12.0.1\",\"@ogre-tools/injectable\":\"^12.0.1\",\"@ogre-tools/injectable-extension-for-auto-registration\":\"^12.0.1\",\"@ogre-tools/injectable-extension-for-mobx\":\"^12.0.1\",\"@ogre-tools/injectable-react\":\"^12.0.1\",\"@sentry/electron\":\"^3.0.8\",\"@sentry/integrations\":\"^6.19.3\",\"@side/jest-runtime\":\"^1.0.1\",\"@types/circular-dependency-plugin\":\"5.0.5\",\"abort-controller\":\"^3.0.0\",\"auto-bind\":\"^4.0.0\",\"await-lock\":\"^2.2.2\",\"byline\":\"^5.0.0\",\"chokidar\":\"^3.5.3\",\"conf\":\"^7.1.2\",\"crypto-js\":\"^4.1.1\",\"electron-devtools-installer\":\"^3.2.0\",\"electron-updater\":\"^4.6.5\",\"electron-window-state\":\"^5.0.3\",\"filehound\":\"^1.17.6\",\"fs-extra\":\"^9.0.1\",\"glob-to-regexp\":\"^0.4.1\",\"got\":\"^11.8.5\",\"grapheme-splitter\":\"^1.0.4\",\"handlebars\":\"^4.7.7\",\"history\":\"^4.10.1\",\"http-proxy\":\"^1.18.1\",\"immer\":\"^9.0.16\",\"joi\":\"^17.7.0\",\"js-yaml\":\"^4.1.0\",\"jsdom\":\"^16.7.0\",\"lodash\":\"^4.17.15\",\"marked\":\"^4.2.3\",\"md5-file\":\"^5.0.0\",\"mobx\":\"^6.7.0\",\"mobx-observable-history\":\"^2.0.3\",\"mobx-react\":\"^7.6.0\",\"mobx-utils\":\"^6.0.4\",\"mock-fs\":\"^5.2.0\",\"moment\":\"^2.29.4\",\"moment-timezone\":\"^0.5.39\",\"monaco-editor\":\"^0.29.1\",\"monaco-editor-webpack-plugin\":\"^5.0.0\",\"node-fetch\":\"^3.3.0\",\"node-pty\":\"0.10.1\",\"npm\":\"^8.19.3\",\"p-limit\":\"^3.1.0\",\"path-to-regexp\":\"^6.2.0\",\"proper-lockfile\":\"^4.1.2\",\"react\":\"^17.0.2\",\"react-dom\":\"^17.0.2\",\"react-material-ui-carousel\":\"^2.3.11\",\"react-router\":\"^5.3.4\",\"react-virtualized-auto-sizer\":\"^1.0.7\",\"readable-stream\":\"^3.6.0\",\"request\":\"^2.88.2\",\"request-promise-native\":\"^1.0.9\",\"rfc6902\":\"^4.0.2\",\"selfsigned\":\"^2.1.1\",\"semver\":\"^7.3.8\",\"tar\":\"^6.1.12\",\"tcp-port-used\":\"^1.0.2\",\"tempy\":\"1.0.1\",\"typed-regex\":\"^0.0.8\",\"url-parse\":\"^1.5.10\",\"uuid\":\"^8.3.2\",\"win-ca\":\"^3.5.0\",\"winston\":\"^3.8.2\",\"winston-transport-browserconsole\":\"^1.0.5\",\"ws\":\"^8.11.0\",\"xterm-link-provider\":\"^1.3.1\"},\"devDependencies\":{\"@async-fn/jest\":\"1.6.4\",\"@material-ui/core\":\"^4.12.3\",\"@material-ui/icons\":\"^4.11.2\",\"@material-ui/lab\":\"^4.0.0-alpha.60\",\"@pmmmwh/react-refresh-webpack-plugin\":\"^0.5.10\",\"@sentry/types\":\"^6.19.7\",\"@swc/cli\":\"^0.1.57\",\"@swc/core\":\"^1.3.19\",\"@swc/jest\":\"^0.2.23\",\"@testing-library/dom\":\"^7.31.2\",\"@testing-library/jest-dom\":\"^5.16.5\",\"@testing-library/react\":\"^12.1.5\",\"@testing-library/user-event\":\"^13.5.0\",\"@types/byline\":\"^4.2.33\",\"@types/chart.js\":\"^2.9.36\",\"@types/circular-dependency-plugin\":\"5.0.5\",\"@types/cli-progress\":\"^3.11.0\",\"@types/color\":\"^3.0.3\",\"@types/command-line-args\":\"^5.2.0\",\"@types/crypto-js\":\"^3.1.47\",\"@types/dompurify\":\"^2.4.0\",\"@types/electron-devtools-installer\":\"^2.2.1\",\"@types/fs-extra\":\"^9.0.13\",\"@types/glob-to-regexp\":\"^0.4.1\",\"@types/gunzip-maybe\":\"^1.4.0\",\"@types/hapi__call\":\"^9.0.0\",\"@types/hapi__subtext\":\"^7.0.0\",\"@types/html-webpack-plugin\":\"^3.2.6\",\"@types/http-proxy\":\"^1.17.9\",\"@types/jest\":\"^28.1.6\",\"@types/js-yaml\":\"^4.0.5\",\"@types/jsdom\":\"^16.2.14\",\"@types/lodash\":\"^4.14.190\",\"@types/marked\":\"^4.0.7\",\"@types/md5-file\":\"^4.0.2\",\"@types/memorystream\":\"^0.3.0\",\"@types/mini-css-extract-plugin\":\"^2.4.0\",\"@types/mock-fs\":\"^4.13.1\",\"@types/node\":\"^16.18.2\",\"@types/proper-lockfile\":\"^4.1.2\",\"@types/randomcolor\":\"^0.5.6\",\"@types/react\":\"^17.0.45\",\"@types/react-beautiful-dnd\":\"^13.1.2\",\"@types/react-dom\":\"^17.0.16\",\"@types/react-router\":\"^5.1.19\",\"@types/react-router-dom\":\"^5.3.3\",\"@types/react-table\":\"^7.7.12\",\"@types/react-virtualized-auto-sizer\":\"^1.0.1\",\"@types/react-window\":\"^1.8.5\",\"@types/readable-stream\":\"^2.3.13\",\"@types/request\":\"^2.48.7\",\"@types/request-promise-native\":\"^1.0.18\",\"@types/semver\":\"^7.3.13\",\"@types/sharp\":\"^0.31.0\",\"@types/tar\":\"^6.1.3\",\"@types/tar-stream\":\"^2.2.2\",\"@types/tcp-port-used\":\"^1.0.1\",\"@types/tempy\":\"^0.3.0\",\"@types/triple-beam\":\"^1.3.2\",\"@types/url-parse\":\"^1.4.8\",\"@types/uuid\":\"^8.3.4\",\"@types/webpack\":\"^5.28.0\",\"@types/webpack-dev-server\":\"^4.7.2\",\"@types/webpack-env\":\"^1.18.0\",\"@types/webpack-node-externals\":\"^2.5.3\",\"@typescript-eslint/eslint-plugin\":\"^5.44.0\",\"@typescript-eslint/parser\":\"^5.44.0\",\"adr\":\"^1.4.3\",\"ansi_up\":\"^5.1.0\",\"chalk\":\"^4.1.2\",\"chart.js\":\"^2.9.4\",\"circular-dependency-plugin\":\"^5.2.2\",\"cli-progress\":\"^3.11.2\",\"color\":\"^3.2.1\",\"command-line-args\":\"^5.2.1\",\"concurrently\":\"^7.6.0\",\"css-loader\":\"^6.7.2\",\"deepdash\":\"^5.3.9\",\"dompurify\":\"^2.4.1\",\"electron\":\"^19.1.7\",\"electron-builder\":\"^23.6.0\",\"electron-notarize\":\"^0.3.0\",\"esbuild\":\"^0.15.15\",\"esbuild-loader\":\"^2.20.0\",\"eslint\":\"^8.28.0\",\"eslint-plugin-header\":\"^3.1.1\",\"eslint-plugin-import\":\"^2.26.0\",\"eslint-plugin-react\":\"7.31.11\",\"eslint-plugin-react-hooks\":\"^4.6.0\",\"eslint-plugin-unused-imports\":\"^2.0.0\",\"eslint-import-resolver-typescript\":\"^3.5.2\",\"fork-ts-checker-webpack-plugin\":\"^6.5.2\",\"gunzip-maybe\":\"^1.4.2\",\"html-webpack-plugin\":\"^5.5.0\",\"identity-obj-proxy\":\"^3.0.0\",\"ignore-loader\":\"^0.1.2\",\"include-media\":\"^1.4.9\",\"jest\":\"^28.1.3\",\"jest-canvas-mock\":\"^2.3.1\",\"jest-environment-jsdom\":\"^28.1.3\",\"jest-mock-extended\":\"^2.0.9\",\"make-plural\":\"^6.2.2\",\"memorystream\":\"^0.3.1\",\"mini-css-extract-plugin\":\"^2.7.0\",\"mock-http\":\"^1.1.0\",\"node-gyp\":\"^8.3.0\",\"node-loader\":\"^2.0.0\",\"nodemon\":\"^2.0.20\",\"playwright\":\"^1.28.1\",\"postcss\":\"^8.4.19\",\"postcss-loader\":\"^6.2.1\",\"query-string\":\"^7.1.1\",\"randomcolor\":\"^0.6.2\",\"react-beautiful-dnd\":\"^13.1.1\",\"react-refresh\":\"^0.14.0\",\"react-refresh-typescript\":\"^2.0.7\",\"react-router-dom\":\"^5.3.4\",\"react-select\":\"^5.6.1\",\"react-select-event\":\"^5.5.1\",\"react-table\":\"^7.8.0\",\"react-window\":\"^1.8.8\",\"sass\":\"^1.56.1\",\"sass-loader\":\"^12.6.0\",\"sharp\":\"^0.31.2\",\"style-loader\":\"^3.3.1\",\"tailwindcss\":\"^3.2.4\",\"tar-stream\":\"^2.2.0\",\"ts-loader\":\"^9.4.1\",\"ts-node\":\"^10.9.1\",\"type-fest\":\"^2.14.0\",\"typed-emitter\":\"^1.4.0\",\"typedoc\":\"0.23.21\",\"typedoc-plugin-markdown\":\"^3.13.6\",\"typescript\":\"^4.9.3\",\"typescript-plugin-css-modules\":\"^3.4.0\",\"webpack\":\"^5.75.0\",\"webpack-cli\":\"^4.9.2\",\"webpack-dev-server\":\"^4.11.1\",\"webpack-node-externals\":\"^3.0.0\",\"xterm\":\"^4.19.0\",\"xterm-addon-fit\":\"^0.5.0\"}}');\n\n//# sourceURL=webpack://open-lens/./package.json?");
|
39993
|
+
eval("module.exports = JSON.parse('{\"name\":\"open-lens\",\"productName\":\"OpenLens\",\"description\":\"OpenLens - Open Source IDE for Kubernetes\",\"homepage\":\"https://github.com/lensapp/lens\",\"version\":\"6.3.0-alpha.0\",\"main\":\"static/build/main.js\",\"copyright\":\"© 2022 OpenLens Authors\",\"license\":\"MIT\",\"author\":{\"name\":\"OpenLens Authors\",\"email\":\"info@k8slens.dev\"},\"scripts\":{\"adr:create\":\"echo \\\\\"What is the title?\\\\\"; read title; adr new \\\\\"$title\\\\\"\",\"adr:change-status\":\"echo \\\\\"Decision number?:\\\\\"; read decision; adr status $decision\",\"adr:update-readme\":\"adr update\",\"adr:list\":\"adr list\",\"dev\":\"concurrently -i -k \\\\\"yarn run dev-run -C\\\\\" yarn:dev:*\",\"dev-build\":\"concurrently yarn:compile:*\",\"debug-build\":\"concurrently yarn:compile:main yarn:compile:extension-types\",\"dev-run\":\"nodemon --watch ./static/build/main.js --exec \\\\\"electron --remote-debugging-port=9223 --inspect .\\\\\"\",\"dev:main\":\"yarn run compile:main --watch --progress\",\"dev:renderer\":\"yarn run ts-node webpack/dev-server.ts\",\"compile\":\"env NODE_ENV=production concurrently yarn:compile:*\",\"compile:main\":\"yarn run webpack --config webpack/main.ts\",\"compile:renderer\":\"yarn run webpack --config webpack/renderer.ts\",\"compile:extension-types\":\"yarn run webpack --config webpack/extensions.ts\",\"compile:node-fetch\":\"yarn run webpack --config ./webpack/node-fetch.ts\",\"postinstall\":\"yarn run compile:node-fetch\",\"npm:fix-package-version\":\"yarn run ts-node build/set_npm_version.ts\",\"build:linux\":\"yarn run compile && electron-builder --linux --dir\",\"build:mac\":\"yarn run compile && electron-builder --mac --dir\",\"build:win\":\"yarn run compile && electron-builder --win --dir\",\"integration\":\"jest --runInBand --detectOpenHandles --forceExit integration\",\"test:unit\":\"func() { jest ${1} --watch --testPathIgnorePatterns integration; }; func\",\"test:integration\":\"func() { jest ${1:-xyz} --watch --runInBand --detectOpenHandles --forceExit --modulePaths=[\\\\\"<rootDir>/integration/\\\\\"]; }; func\",\"dist\":\"yarn run compile && electron-builder --publish onTag\",\"dist:dir\":\"yarn run dist --dir -c.compression=store -c.mac.identity=null\",\"download:binaries\":\"yarn run ts-node build/download_binaries.ts\",\"build:tray-icons\":\"yarn run ts-node build/generate-tray-icons.ts\",\"build:theme-vars\":\"yarn run ts-node build/build_theme_vars.ts\",\"lint\":\"PROD=true yarn run eslint --ext js,ts,tsx --max-warnings=0 .\",\"lint:fix\":\"yarn run lint --fix\",\"mkdocs-serve-local\":\"docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -it -p 8000:8000 -v ${PWD}:/docs mkdocs-serve-local:latest\",\"verify-docs\":\"docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -v ${PWD}:/docs mkdocs-serve-local:latest build --strict\",\"typedocs-extensions-api\":\"yarn run typedoc src/extensions/extension-api.ts\",\"version-checkout\":\"cat package.json | jq \\'.version\\' -r | xargs printf \\\\\"release/v%s\\\\\" | xargs git checkout -b\",\"version-commit\":\"cat package.json | jq \\'.version\\' -r | xargs printf \\\\\"release v%s\\\\\" | git commit --no-edit -s -F -\",\"version\":\"yarn run version-checkout && git add package.json && yarn run version-commit\",\"postversion\":\"git push --set-upstream ${GIT_REMOTE:-origin} release/v$npm_package_version\",\"precreate-release-pr\":\"npx swc ./scripts/create-release-pr.ts -o ./scripts/create-release-pr.mjs\",\"create-release-pr\":\"node ./scripts/create-release-pr.mjs\"},\"config\":{\"k8sProxyVersion\":\"0.3.0\",\"bundledKubectlVersion\":\"1.23.3\",\"bundledHelmVersion\":\"3.7.2\",\"sentryDsn\":\"\",\"contentSecurityPolicy\":\"script-src \\'unsafe-eval\\' \\'self\\'; frame-src http://*.localhost:*/; img-src * data:\",\"welcomeRoute\":\"/welcome\"},\"engines\":{\"node\":\">=16 <17\"},\"jest\":{\"collectCoverage\":false,\"verbose\":true,\"transform\":{\"^.+\\\\\\\\.(t|j)sx?$\":[\"@swc/jest\"]},\"testEnvironment\":\"jsdom\",\"resolver\":\"<rootDir>/src/jest-28-resolver.js\",\"moduleNameMapper\":{\"\\\\\\\\.(css|scss)$\":\"identity-obj-proxy\",\"\\\\\\\\.(svg|png|jpg|eot|woff2?|ttf)$\":\"<rootDir>/__mocks__/assetMock.ts\"},\"modulePathIgnorePatterns\":[\"<rootDir>/dist\",\"<rootDir>/src/extensions/npm\"],\"setupFiles\":[\"<rootDir>/src/jest.setup.ts\",\"jest-canvas-mock\"],\"globalSetup\":\"<rootDir>/src/jest.timezone.ts\",\"setupFilesAfterEnv\":[\"<rootDir>/src/jest-after-env.setup.ts\"],\"runtime\":\"@side/jest-runtime\"},\"build\":{\"generateUpdatesFilesForAllChannels\":true,\"files\":[\"static/build/main.js\"],\"afterSign\":\"build/notarize.js\",\"extraResources\":[{\"from\":\"locales/\",\"to\":\"locales/\",\"filter\":\"**/*.js\"},{\"from\":\"static/\",\"to\":\"static/\",\"filter\":\"!**/main.js\"},{\"from\":\"build/tray\",\"to\":\"static/icons\",\"filter\":\"*.png\"},{\"from\":\"extensions/\",\"to\":\"./extensions/\",\"filter\":[\"**/*.tgz\",\"**/package.json\",\"!**/node_modules\"]},{\"from\":\"templates/\",\"to\":\"./templates/\",\"filter\":\"**/*.yaml\"},\"LICENSE\"],\"linux\":{\"category\":\"Network\",\"artifactName\":\"${productName}-${version}.${arch}.${ext}\",\"target\":[\"deb\",\"rpm\",\"AppImage\"],\"extraResources\":[{\"from\":\"binaries/client/linux/${arch}/kubectl\",\"to\":\"./${arch}/kubectl\"},{\"from\":\"binaries/client/linux/${arch}/lens-k8s-proxy\",\"to\":\"./${arch}/lens-k8s-proxy\"},{\"from\":\"binaries/client/linux/${arch}/helm\",\"to\":\"./${arch}/helm\"}]},\"rpm\":{\"fpm\":[\"--rpm-rpmbuild-define=%define _build_id_links none\"]},\"mac\":{\"hardenedRuntime\":true,\"gatekeeperAssess\":false,\"entitlements\":\"build/entitlements.mac.plist\",\"entitlementsInherit\":\"build/entitlements.mac.plist\",\"extraResources\":[{\"from\":\"binaries/client/darwin/${arch}/kubectl\",\"to\":\"./${arch}/kubectl\"},{\"from\":\"binaries/client/darwin/${arch}/lens-k8s-proxy\",\"to\":\"./${arch}/lens-k8s-proxy\"},{\"from\":\"binaries/client/darwin/${arch}/helm\",\"to\":\"./${arch}/helm\"}]},\"win\":{\"target\":[\"nsis\"],\"extraResources\":[{\"from\":\"binaries/client/windows/${arch}/kubectl.exe\",\"to\":\"./${arch}/kubectl.exe\"},{\"from\":\"binaries/client/windows/${arch}/lens-k8s-proxy.exe\",\"to\":\"./${arch}/lens-k8s-proxy.exe\"},{\"from\":\"binaries/client/windows/${arch}/helm.exe\",\"to\":\"./${arch}/helm.exe\"}]},\"nsis\":{\"include\":\"build/installer.nsh\",\"oneClick\":false,\"allowElevation\":true,\"createStartMenuShortcut\":true,\"allowToChangeInstallationDirectory\":true},\"protocols\":{\"name\":\"Lens Protocol Handler\",\"schemes\":[\"lens\"],\"role\":\"Viewer\"}},\"resolutions\":{\"@astronautlabs/jsonpath/underscore\":\"^1.12.1\"},\"dependencies\":{\"@astronautlabs/jsonpath\":\"^1.1.0\",\"@hapi/call\":\"^9.0.0\",\"@hapi/subtext\":\"^7.0.4\",\"@kubernetes/client-node\":\"^0.17.1\",\"@material-ui/styles\":\"^4.11.5\",\"@ogre-tools/fp\":\"^12.0.1\",\"@ogre-tools/injectable\":\"^12.0.1\",\"@ogre-tools/injectable-extension-for-auto-registration\":\"^12.0.1\",\"@ogre-tools/injectable-extension-for-mobx\":\"^12.0.1\",\"@ogre-tools/injectable-react\":\"^12.0.1\",\"@sentry/electron\":\"^3.0.8\",\"@sentry/integrations\":\"^6.19.3\",\"@side/jest-runtime\":\"^1.0.1\",\"@types/circular-dependency-plugin\":\"5.0.5\",\"abort-controller\":\"^3.0.0\",\"auto-bind\":\"^4.0.0\",\"await-lock\":\"^2.2.2\",\"byline\":\"^5.0.0\",\"chokidar\":\"^3.5.3\",\"conf\":\"^7.1.2\",\"crypto-js\":\"^4.1.1\",\"electron-devtools-installer\":\"^3.2.0\",\"electron-updater\":\"^4.6.5\",\"electron-window-state\":\"^5.0.3\",\"filehound\":\"^1.17.6\",\"fs-extra\":\"^9.0.1\",\"glob-to-regexp\":\"^0.4.1\",\"got\":\"^11.8.5\",\"grapheme-splitter\":\"^1.0.4\",\"handlebars\":\"^4.7.7\",\"history\":\"^4.10.1\",\"http-proxy\":\"^1.18.1\",\"immer\":\"^9.0.16\",\"joi\":\"^17.7.0\",\"js-yaml\":\"^4.1.0\",\"jsdom\":\"^16.7.0\",\"lodash\":\"^4.17.15\",\"marked\":\"^4.2.3\",\"md5-file\":\"^5.0.0\",\"mobx\":\"^6.7.0\",\"mobx-observable-history\":\"^2.0.3\",\"mobx-react\":\"^7.6.0\",\"mobx-utils\":\"^6.0.4\",\"mock-fs\":\"^5.2.0\",\"moment\":\"^2.29.4\",\"moment-timezone\":\"^0.5.39\",\"monaco-editor\":\"^0.29.1\",\"monaco-editor-webpack-plugin\":\"^5.0.0\",\"node-fetch\":\"^3.3.0\",\"node-pty\":\"0.10.1\",\"npm\":\"^8.19.3\",\"p-limit\":\"^3.1.0\",\"path-to-regexp\":\"^6.2.0\",\"proper-lockfile\":\"^4.1.2\",\"react\":\"^17.0.2\",\"react-dom\":\"^17.0.2\",\"react-material-ui-carousel\":\"^2.3.11\",\"react-router\":\"^5.3.4\",\"react-virtualized-auto-sizer\":\"^1.0.7\",\"readable-stream\":\"^3.6.0\",\"request\":\"^2.88.2\",\"request-promise-native\":\"^1.0.9\",\"rfc6902\":\"^4.0.2\",\"selfsigned\":\"^2.1.1\",\"semver\":\"^7.3.8\",\"tar\":\"^6.1.12\",\"tcp-port-used\":\"^1.0.2\",\"tempy\":\"1.0.1\",\"typed-regex\":\"^0.0.8\",\"url-parse\":\"^1.5.10\",\"uuid\":\"^8.3.2\",\"win-ca\":\"^3.5.0\",\"winston\":\"^3.8.2\",\"winston-transport-browserconsole\":\"^1.0.5\",\"ws\":\"^8.11.0\",\"xterm-link-provider\":\"^1.3.1\"},\"devDependencies\":{\"@async-fn/jest\":\"1.6.4\",\"@material-ui/core\":\"^4.12.3\",\"@material-ui/icons\":\"^4.11.2\",\"@material-ui/lab\":\"^4.0.0-alpha.60\",\"@pmmmwh/react-refresh-webpack-plugin\":\"^0.5.10\",\"@sentry/types\":\"^6.19.7\",\"@swc/cli\":\"^0.1.57\",\"@swc/core\":\"^1.3.20\",\"@swc/jest\":\"^0.2.23\",\"@testing-library/dom\":\"^7.31.2\",\"@testing-library/jest-dom\":\"^5.16.5\",\"@testing-library/react\":\"^12.1.5\",\"@testing-library/user-event\":\"^13.5.0\",\"@types/byline\":\"^4.2.33\",\"@types/chart.js\":\"^2.9.36\",\"@types/circular-dependency-plugin\":\"5.0.5\",\"@types/cli-progress\":\"^3.11.0\",\"@types/color\":\"^3.0.3\",\"@types/command-line-args\":\"^5.2.0\",\"@types/crypto-js\":\"^3.1.47\",\"@types/dompurify\":\"^2.4.0\",\"@types/electron-devtools-installer\":\"^2.2.1\",\"@types/fs-extra\":\"^9.0.13\",\"@types/glob-to-regexp\":\"^0.4.1\",\"@types/gunzip-maybe\":\"^1.4.0\",\"@types/hapi__call\":\"^9.0.0\",\"@types/hapi__subtext\":\"^7.0.0\",\"@types/html-webpack-plugin\":\"^3.2.6\",\"@types/http-proxy\":\"^1.17.9\",\"@types/jest\":\"^28.1.6\",\"@types/js-yaml\":\"^4.0.5\",\"@types/jsdom\":\"^16.2.14\",\"@types/lodash\":\"^4.14.190\",\"@types/marked\":\"^4.0.7\",\"@types/md5-file\":\"^4.0.2\",\"@types/memorystream\":\"^0.3.0\",\"@types/mini-css-extract-plugin\":\"^2.4.0\",\"@types/mock-fs\":\"^4.13.1\",\"@types/node\":\"^16.18.2\",\"@types/proper-lockfile\":\"^4.1.2\",\"@types/randomcolor\":\"^0.5.7\",\"@types/react\":\"^17.0.45\",\"@types/react-beautiful-dnd\":\"^13.1.2\",\"@types/react-dom\":\"^17.0.16\",\"@types/react-router\":\"^5.1.19\",\"@types/react-router-dom\":\"^5.3.3\",\"@types/react-table\":\"^7.7.12\",\"@types/react-virtualized-auto-sizer\":\"^1.0.1\",\"@types/react-window\":\"^1.8.5\",\"@types/readable-stream\":\"^2.3.13\",\"@types/request\":\"^2.48.7\",\"@types/request-promise-native\":\"^1.0.18\",\"@types/semver\":\"^7.3.13\",\"@types/sharp\":\"^0.31.0\",\"@types/tar\":\"^6.1.3\",\"@types/tar-stream\":\"^2.2.2\",\"@types/tcp-port-used\":\"^1.0.1\",\"@types/tempy\":\"^0.3.0\",\"@types/triple-beam\":\"^1.3.2\",\"@types/url-parse\":\"^1.4.8\",\"@types/uuid\":\"^8.3.4\",\"@types/webpack\":\"^5.28.0\",\"@types/webpack-dev-server\":\"^4.7.2\",\"@types/webpack-env\":\"^1.18.0\",\"@types/webpack-node-externals\":\"^2.5.3\",\"@typescript-eslint/eslint-plugin\":\"^5.44.0\",\"@typescript-eslint/parser\":\"^5.44.0\",\"adr\":\"^1.4.3\",\"ansi_up\":\"^5.1.0\",\"chalk\":\"^4.1.2\",\"chart.js\":\"^2.9.4\",\"circular-dependency-plugin\":\"^5.2.2\",\"cli-progress\":\"^3.11.2\",\"color\":\"^3.2.1\",\"command-line-args\":\"^5.2.1\",\"concurrently\":\"^7.6.0\",\"css-loader\":\"^6.7.2\",\"deepdash\":\"^5.3.9\",\"dompurify\":\"^2.4.1\",\"electron\":\"^19.1.8\",\"electron-builder\":\"^23.6.0\",\"electron-notarize\":\"^0.3.0\",\"esbuild\":\"^0.15.16\",\"esbuild-loader\":\"^2.20.0\",\"eslint\":\"^8.28.0\",\"eslint-plugin-header\":\"^3.1.1\",\"eslint-plugin-import\":\"^2.26.0\",\"eslint-plugin-react\":\"7.31.11\",\"eslint-plugin-react-hooks\":\"^4.6.0\",\"eslint-plugin-unused-imports\":\"^2.0.0\",\"eslint-import-resolver-typescript\":\"^3.5.2\",\"fork-ts-checker-webpack-plugin\":\"^6.5.2\",\"gunzip-maybe\":\"^1.4.2\",\"html-webpack-plugin\":\"^5.5.0\",\"identity-obj-proxy\":\"^3.0.0\",\"ignore-loader\":\"^0.1.2\",\"include-media\":\"^1.4.9\",\"jest\":\"^28.1.3\",\"jest-canvas-mock\":\"^2.3.1\",\"jest-environment-jsdom\":\"^28.1.3\",\"jest-mock-extended\":\"^2.0.9\",\"make-plural\":\"^6.2.2\",\"memorystream\":\"^0.3.1\",\"mini-css-extract-plugin\":\"^2.7.0\",\"mock-http\":\"^1.1.0\",\"node-gyp\":\"^8.3.0\",\"node-loader\":\"^2.0.0\",\"nodemon\":\"^2.0.20\",\"playwright\":\"^1.28.1\",\"postcss\":\"^8.4.19\",\"postcss-loader\":\"^6.2.1\",\"query-string\":\"^7.1.1\",\"randomcolor\":\"^0.6.2\",\"react-beautiful-dnd\":\"^13.1.1\",\"react-refresh\":\"^0.14.0\",\"react-refresh-typescript\":\"^2.0.7\",\"react-router-dom\":\"^5.3.4\",\"react-select\":\"^5.6.1\",\"react-select-event\":\"^5.5.1\",\"react-table\":\"^7.8.0\",\"react-window\":\"^1.8.8\",\"sass\":\"^1.56.1\",\"sass-loader\":\"^12.6.0\",\"sharp\":\"^0.31.2\",\"style-loader\":\"^3.3.1\",\"tailwindcss\":\"^3.2.4\",\"tar-stream\":\"^2.2.0\",\"ts-loader\":\"^9.4.1\",\"ts-node\":\"^10.9.1\",\"type-fest\":\"^2.14.0\",\"typed-emitter\":\"^1.4.0\",\"typedoc\":\"0.23.21\",\"typedoc-plugin-markdown\":\"^3.13.6\",\"typescript\":\"^4.9.3\",\"typescript-plugin-css-modules\":\"^3.4.0\",\"webpack\":\"^5.75.0\",\"webpack-cli\":\"^4.9.2\",\"webpack-dev-server\":\"^4.11.1\",\"webpack-node-externals\":\"^3.0.0\",\"xterm\":\"^4.19.0\",\"xterm-addon-fit\":\"^0.5.0\"}}');\n\n//# sourceURL=webpack://open-lens/./package.json?");
|
40005
39994
|
|
40006
39995
|
/***/ }),
|
40007
39996
|
|
@@ -25,6 +25,7 @@ import type { KubeObjectHandlerRegistration } from "../renderer/kube-object/hand
|
|
25
25
|
import type { AppPreferenceTabRegistration } from "../features/preferences/renderer/compliance-for-legacy-extension-api/app-preference-tab-registration";
|
26
26
|
import type { KubeObjectDetailRegistration } from "../renderer/components/kube-object-details/kube-object-detail-registration";
|
27
27
|
import type { ClusterFrameChildComponent } from "../renderer/frames/cluster-frame/cluster-frame-child-component-injection-token";
|
28
|
+
import type { EntitySettingRegistration } from "../renderer/components/+entity-settings/extension-registrator.injectable";
|
28
29
|
export declare class LensRendererExtension extends LensExtension<LensRendererExtensionDependencies> {
|
29
30
|
globalPages: registries.PageRegistration[];
|
30
31
|
clusterPages: registries.PageRegistration[];
|
@@ -33,7 +34,7 @@ export declare class LensRendererExtension extends LensExtension<LensRendererExt
|
|
33
34
|
kubeObjectStatusTexts: KubeObjectStatusRegistration[];
|
34
35
|
appPreferences: AppPreferenceRegistration[];
|
35
36
|
appPreferenceTabs: AppPreferenceTabRegistration[];
|
36
|
-
entitySettings:
|
37
|
+
entitySettings: EntitySettingRegistration[];
|
37
38
|
statusBarItems: StatusBarRegistration[];
|
38
39
|
kubeObjectDetailItems: KubeObjectDetailRegistration[];
|
39
40
|
kubeObjectMenuItems: KubeObjectMenuRegistration[];
|
File without changes
|
@@ -1,2 +1,3 @@
|
|
1
|
-
|
1
|
+
export type NavigateToPreferenceTab = (tabId: string) => void;
|
2
|
+
declare const navigateToPreferenceTabInjectable: import("@ogre-tools/injectable").Injectable<NavigateToPreferenceTab, unknown, void>;
|
2
3
|
export default navigateToPreferenceTabInjectable;
|
@@ -3,13 +3,16 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
/// <reference types="node" />
|
6
|
-
import type { PrometheusProvider, PrometheusService
|
6
|
+
import type { PrometheusProvider, PrometheusService } from "../prometheus/provider";
|
7
7
|
import type { ClusterPrometheusPreferences } from "../../common/cluster-types";
|
8
8
|
import type { Cluster } from "../../common/cluster/cluster";
|
9
9
|
import type httpProxy from "http-proxy";
|
10
10
|
import type { UrlWithStringQuery } from "url";
|
11
11
|
import type { KubeAuthProxy } from "../kube-auth-proxy/kube-auth-proxy";
|
12
12
|
import type { CreateKubeAuthProxy } from "../kube-auth-proxy/create-kube-auth-proxy.injectable";
|
13
|
+
import type { GetPrometheusProviderByKind } from "../prometheus/get-by-kind.injectable";
|
14
|
+
import type { IComputedValue } from "mobx";
|
15
|
+
import type { Logger } from "../../common/logger";
|
13
16
|
export interface PrometheusDetails {
|
14
17
|
prometheusPath: string;
|
15
18
|
provider: PrometheusProvider;
|
@@ -20,10 +23,12 @@ interface PrometheusServicePreferences {
|
|
20
23
|
port: number;
|
21
24
|
prefix: string;
|
22
25
|
}
|
23
|
-
interface
|
24
|
-
|
26
|
+
export interface ContextHandlerDependencies {
|
27
|
+
createKubeAuthProxy: CreateKubeAuthProxy;
|
28
|
+
getPrometheusProviderByKind: GetPrometheusProviderByKind;
|
25
29
|
readonly authProxyCa: string;
|
26
|
-
readonly
|
30
|
+
readonly prometheusProviders: IComputedValue<PrometheusProvider[]>;
|
31
|
+
readonly logger: Logger;
|
27
32
|
}
|
28
33
|
export interface ClusterContextHandler {
|
29
34
|
readonly clusterUrl: UrlWithStringQuery;
|
@@ -37,14 +42,14 @@ export interface ClusterContextHandler {
|
|
37
42
|
stopServer(): void;
|
38
43
|
}
|
39
44
|
export declare class ContextHandler implements ClusterContextHandler {
|
40
|
-
private dependencies;
|
41
|
-
protected cluster: Cluster;
|
45
|
+
private readonly dependencies;
|
46
|
+
protected readonly cluster: Cluster;
|
42
47
|
readonly clusterUrl: UrlWithStringQuery;
|
43
48
|
protected kubeAuthProxy?: KubeAuthProxy;
|
44
49
|
protected apiTarget?: httpProxy.ServerOptions;
|
45
50
|
protected prometheusProvider?: string;
|
46
51
|
protected prometheus?: PrometheusServicePreferences;
|
47
|
-
constructor(dependencies:
|
52
|
+
constructor(dependencies: ContextHandlerDependencies, cluster: Cluster);
|
48
53
|
setupPrometheus(preferences?: ClusterPrometheusPreferences): void;
|
49
54
|
getPrometheusDetails(): Promise<PrometheusDetails>;
|
50
55
|
protected ensurePrometheusPath({ service, namespace, port }: PrometheusService): string;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
/// <reference types="selfsigned" />
|
6
|
+
declare const kubeAuthProxyCertificateInjectable: import("@ogre-tools/injectable").Injectable<import("selfsigned").SelfSignedCert, unknown, string>;
|
7
|
+
export default kubeAuthProxyCertificateInjectable;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const kubectlBinaryNameInjectable: import("@ogre-tools/injectable").Injectable<
|
1
|
+
declare const kubectlBinaryNameInjectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
|
2
2
|
export default kubectlBinaryNameInjectable;
|
@@ -5,9 +5,10 @@
|
|
5
5
|
import type { JoinPaths } from "../../common/path/join-paths.injectable";
|
6
6
|
import type { GetDirnameOfPath } from "../../common/path/get-dirname.injectable";
|
7
7
|
import type { GetBasenameOfPath } from "../../common/path/get-basename.injectable";
|
8
|
+
import type { NormalizedPlatform } from "../../common/vars/normalized-platform.injectable";
|
8
9
|
export interface KubectlDependencies {
|
9
10
|
readonly directoryForKubectlBinaries: string;
|
10
|
-
readonly normalizedDownloadPlatform:
|
11
|
+
readonly normalizedDownloadPlatform: NormalizedPlatform;
|
11
12
|
readonly normalizedDownloadArch: "amd64" | "arm64" | "386";
|
12
13
|
readonly kubectlBinaryName: string;
|
13
14
|
readonly bundledKubectlBinaryPath: string;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { PrometheusProvider } from "./provider";
|
2
|
+
export type GetPrometheusProviderByKind = (kind: string) => PrometheusProvider;
|
3
|
+
declare const getPrometheusProviderByKindInjectable: import("@ogre-tools/injectable").Injectable<GetPrometheusProviderByKind, unknown, void>;
|
4
|
+
export default getPrometheusProviderByKindInjectable;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
declare const helm14PrometheusProviderInjectable: import("@ogre-tools/injectable").Injectable<import("./provider").PrometheusProvider, import("./provider").PrometheusProvider, void>;
|
6
|
+
export default helm14PrometheusProviderInjectable;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { PrometheusProvider } from "./provider";
|
6
|
+
export declare const getHelmLikeQueryFor: ({ rateAccuracy }: {
|
7
|
+
rateAccuracy: string;
|
8
|
+
}) => PrometheusProvider["getQuery"];
|
9
|
+
declare const helmPrometheusProviderInjectable: import("@ogre-tools/injectable").Injectable<PrometheusProvider, PrometheusProvider, void>;
|
10
|
+
export default helmPrometheusProviderInjectable;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { PrometheusProvider } from "./provider";
|
6
|
+
export declare const getLensLikeQueryFor: ({ rateAccuracy }: {
|
7
|
+
rateAccuracy: string;
|
8
|
+
}) => PrometheusProvider["getQuery"];
|
9
|
+
declare const lensPrometheusProviderInjectable: import("@ogre-tools/injectable").Injectable<PrometheusProvider, PrometheusProvider, void>;
|
10
|
+
export default lensPrometheusProviderInjectable;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { PrometheusProvider } from "./provider";
|
6
|
+
export declare const getOperatorLikeQueryFor: ({ rateAccuracy }: {
|
7
|
+
rateAccuracy: string;
|
8
|
+
}) => PrometheusProvider["getQuery"];
|
9
|
+
declare const operatorPrometheusProviderInjectable: import("@ogre-tools/injectable").Injectable<PrometheusProvider, PrometheusProvider, void>;
|
10
|
+
export default operatorPrometheusProviderInjectable;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { CoreV1Api } from "@kubernetes/client-node";
|
6
|
+
export interface PrometheusService extends PrometheusServiceInfo {
|
7
|
+
kind: string;
|
8
|
+
}
|
9
|
+
export interface PrometheusServiceInfo {
|
10
|
+
namespace: string;
|
11
|
+
service: string;
|
12
|
+
port: number;
|
13
|
+
}
|
14
|
+
export interface PrometheusProvider {
|
15
|
+
readonly kind: string;
|
16
|
+
readonly name: string;
|
17
|
+
readonly isConfigurable: boolean;
|
18
|
+
getQuery(opts: Record<string, string>, queryName: string): string;
|
19
|
+
getPrometheusService(client: CoreV1Api): Promise<PrometheusService>;
|
20
|
+
}
|
21
|
+
export interface CreatePrometheusProviderOpts {
|
22
|
+
readonly kind: string;
|
23
|
+
readonly name: string;
|
24
|
+
readonly isConfigurable: boolean;
|
25
|
+
getQuery(opts: Record<string, string>, queryName: string): string;
|
26
|
+
getService(client: CoreV1Api): Promise<PrometheusServiceInfo>;
|
27
|
+
}
|
28
|
+
export declare const createPrometheusProvider: ({ getService, ...opts }: CreatePrometheusProviderOpts) => PrometheusProvider;
|
29
|
+
export declare function findFirstNamespacedService(client: CoreV1Api, ...selectors: string[]): Promise<PrometheusServiceInfo>;
|
30
|
+
export declare function findNamespacedService(client: CoreV1Api, name: string, namespace: string): Promise<PrometheusServiceInfo>;
|
31
|
+
export interface BytesSentArgs {
|
32
|
+
rateAccuracy: string;
|
33
|
+
ingress: string;
|
34
|
+
namespace: string;
|
35
|
+
statuses: string;
|
36
|
+
}
|
37
|
+
export declare function bytesSent({ rateAccuracy, ingress, namespace, statuses }: BytesSentArgs): string;
|
38
|
+
export declare const prometheusProviderInjectionToken: import("@ogre-tools/injectable").InjectionToken<PrometheusProvider, void>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { PrometheusProvider } from "./provider";
|
6
|
+
export declare const getStacklightLikeQueryFor: ({ rateAccuracy }: {
|
7
|
+
rateAccuracy: string;
|
8
|
+
}) => PrometheusProvider["getQuery"];
|
9
|
+
declare const stacklightPrometheusProviderInjectable: import("@ogre-tools/injectable").Injectable<PrometheusProvider, PrometheusProvider, void>;
|
10
|
+
export default stacklightPrometheusProviderInjectable;
|
package/dist/src/renderer/components/+catalog/columns/extensions-registrator.injectable.d.ts
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
-
|
2
|
-
declare const customCategoryColumnsRegistratorInjectable: import("@ogre-tools/injectable").Injectable<
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const customCategoryColumnsRegistratorInjectable: import("@ogre-tools/injectable").Injectable<(ext: import("../../../../extensions/lens-extension").LensExtension<import("../../../../extensions/lens-extension-set-dependencies").LensExtensionDependencies>) => import("@ogre-tools/injectable").Injectable<{
|
3
|
+
group: string;
|
4
|
+
kind: string;
|
5
|
+
registration: {
|
6
|
+
renderCell: (entity: import("../../../api/catalog-entity").CatalogEntity<import("../../../../common/catalog").CatalogEntityMetadata, import("../../../../common/catalog").CatalogEntityStatus, import("../../../../common/catalog").CatalogEntitySpec>) => import("react").ReactNode;
|
7
|
+
priority: number;
|
8
|
+
id: string;
|
9
|
+
titleProps: {
|
10
|
+
sortBy: string | undefined;
|
11
|
+
className?: string | undefined;
|
12
|
+
title: string;
|
13
|
+
id: string;
|
14
|
+
};
|
15
|
+
searchFilter: ((entity: import("../../../api/catalog-entity").CatalogEntity<import("../../../../common/catalog").CatalogEntityMetadata, import("../../../../common/catalog").CatalogEntityStatus, import("../../../../common/catalog").CatalogEntitySpec>) => string | string[]) | undefined;
|
16
|
+
sortCallback: ((entity: import("../../../api/catalog-entity").CatalogEntity<import("../../../../common/catalog").CatalogEntityMetadata, import("../../../../common/catalog").CatalogEntityStatus, import("../../../../common/catalog").CatalogEntitySpec>) => string | number | (string | number)[]) | undefined;
|
17
|
+
};
|
18
|
+
}, import("./custom-token").CustomCatalogCategoryRegistration, void>[], import("../../../../extensions/extension-loader/extension-registrator-injection-token").ExtensionRegistrator, void>;
|
3
19
|
export default customCategoryColumnsRegistratorInjectable;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import type { CatalogEntity } from "../../api/catalog-entity";
|
2
|
+
import type { RegisteredEntitySetting } from "./extension-registrator.injectable";
|
3
|
+
export interface SettingTabs {
|
4
|
+
title: string;
|
5
|
+
id: string;
|
6
|
+
}
|
7
|
+
export interface SettingGroup {
|
8
|
+
title: string;
|
9
|
+
tabs: SettingTabs[];
|
10
|
+
}
|
11
|
+
export interface ActiveEntitySettingDetails {
|
12
|
+
tabId: string | undefined;
|
13
|
+
setting: RegisteredEntitySetting | undefined;
|
14
|
+
groups: SettingGroup[];
|
15
|
+
}
|
16
|
+
export interface ActiveEntitySettings {
|
17
|
+
get: () => ActiveEntitySettingDetails;
|
18
|
+
set: (tabId: string) => void;
|
19
|
+
}
|
20
|
+
declare const activeEntitySettingsTabInjectable: import("@ogre-tools/injectable").Injectable<ActiveEntitySettings, unknown, CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>>;
|
21
|
+
export default activeEntitySettingsTabInjectable;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const currentCatalogEntityForSettingsInjectable: import("@ogre-tools/injectable").Injectable<import("mobx").IComputedValue<import("../../api/catalog-entity").CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec> | undefined>, unknown, void>;
|
2
|
+
export default currentCatalogEntityForSettingsInjectable;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { CatalogEntity } from "../../api/catalog-entity";
|
3
|
+
export interface EntitySettingViewProps {
|
4
|
+
entity: CatalogEntity;
|
5
|
+
}
|
6
|
+
export interface EntitySettingComponents {
|
7
|
+
View: React.ComponentType<EntitySettingViewProps>;
|
8
|
+
}
|
9
|
+
export interface EntitySettingRegistration {
|
10
|
+
apiVersions: string[];
|
11
|
+
kind: string;
|
12
|
+
title: string;
|
13
|
+
components: EntitySettingComponents;
|
14
|
+
source?: string;
|
15
|
+
id?: string;
|
16
|
+
priority?: number;
|
17
|
+
group?: string;
|
18
|
+
}
|
19
|
+
export interface RegisteredEntitySetting {
|
20
|
+
id: string;
|
21
|
+
orderNumber: number;
|
22
|
+
apiVersions: Set<string>;
|
23
|
+
kind: string;
|
24
|
+
title: string;
|
25
|
+
components: EntitySettingComponents;
|
26
|
+
source?: string;
|
27
|
+
group: string;
|
28
|
+
}
|
29
|
+
declare const entitySettingExtensionRegistratorInjectable: import("@ogre-tools/injectable").Injectable<(ext: import("../../../extensions/lens-extension").LensExtension<import("../../../extensions/lens-extension-set-dependencies").LensExtensionDependencies>) => import("@ogre-tools/injectable").Injectable<{
|
30
|
+
apiVersions: Set<string>;
|
31
|
+
components: EntitySettingComponents;
|
32
|
+
id: string;
|
33
|
+
kind: string;
|
34
|
+
orderNumber: number;
|
35
|
+
title: string;
|
36
|
+
group: string;
|
37
|
+
source: string | undefined;
|
38
|
+
}, RegisteredEntitySetting, void>[], import("../../../extensions/extension-loader/extension-registrator-injection-token").ExtensionRegistrator, void>;
|
39
|
+
export default entitySettingExtensionRegistratorInjectable;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { CatalogEntity } from "../../api/catalog-entity";
|
2
|
+
export type HasCatalogEntitySettingItems = (entity: CatalogEntity) => boolean;
|
3
|
+
declare const hasCatalogEntitySettingItemsInjectable: import("@ogre-tools/injectable").Injectable<HasCatalogEntitySettingItems, unknown, void>;
|
4
|
+
export default hasCatalogEntitySettingItemsInjectable;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import type { EntitySettingViewProps } from "../extension-registrator.injectable";
|
3
|
+
declare const generalKubernetesClusterEntitySettingsInjectable: import("@ogre-tools/injectable").Injectable<{
|
4
|
+
apiVersions: Set<string>;
|
5
|
+
kind: string;
|
6
|
+
source: string;
|
7
|
+
title: string;
|
8
|
+
group: string;
|
9
|
+
id: string;
|
10
|
+
orderNumber: number;
|
11
|
+
components: {
|
12
|
+
View: React.FunctionComponent<EntitySettingViewProps>;
|
13
|
+
};
|
14
|
+
}, import("../extension-registrator.injectable").RegisteredEntitySetting, void>;
|
15
|
+
export default generalKubernetesClusterEntitySettingsInjectable;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import type { EntitySettingViewProps } from "../extension-registrator.injectable";
|
3
|
+
declare const metricsKubernetesClusterEntitySettingsInjectable: import("@ogre-tools/injectable").Injectable<{
|
4
|
+
apiVersions: Set<string>;
|
5
|
+
kind: string;
|
6
|
+
title: string;
|
7
|
+
group: string;
|
8
|
+
id: string;
|
9
|
+
orderNumber: number;
|
10
|
+
components: {
|
11
|
+
View: React.FunctionComponent<EntitySettingViewProps>;
|
12
|
+
};
|
13
|
+
}, import("../extension-registrator.injectable").RegisteredEntitySetting, void>;
|
14
|
+
export default metricsKubernetesClusterEntitySettingsInjectable;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import type { EntitySettingViewProps } from "../extension-registrator.injectable";
|
3
|
+
declare const namespaceKubernetesClusterEntitySettingsInjectable: import("@ogre-tools/injectable").Injectable<{
|
4
|
+
apiVersions: Set<string>;
|
5
|
+
kind: string;
|
6
|
+
title: string;
|
7
|
+
group: string;
|
8
|
+
id: string;
|
9
|
+
orderNumber: number;
|
10
|
+
components: {
|
11
|
+
View: React.FunctionComponent<EntitySettingViewProps>;
|
12
|
+
};
|
13
|
+
}, import("../extension-registrator.injectable").RegisteredEntitySetting, void>;
|
14
|
+
export default namespaceKubernetesClusterEntitySettingsInjectable;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import type { EntitySettingViewProps } from "../extension-registrator.injectable";
|
3
|
+
declare const nodeShellKubernetesClusterEntitySettingsInjectable: import("@ogre-tools/injectable").Injectable<{
|
4
|
+
apiVersions: Set<string>;
|
5
|
+
kind: string;
|
6
|
+
title: string;
|
7
|
+
group: string;
|
8
|
+
id: string;
|
9
|
+
orderNumber: number;
|
10
|
+
components: {
|
11
|
+
View: React.FunctionComponent<EntitySettingViewProps>;
|
12
|
+
};
|
13
|
+
}, import("../extension-registrator.injectable").RegisteredEntitySetting, void>;
|
14
|
+
export default nodeShellKubernetesClusterEntitySettingsInjectable;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import type { EntitySettingViewProps } from "../extension-registrator.injectable";
|
3
|
+
declare const proxyKubernetesClusterEntitySettingsInjectable: import("@ogre-tools/injectable").Injectable<{
|
4
|
+
apiVersions: Set<string>;
|
5
|
+
kind: string;
|
6
|
+
title: string;
|
7
|
+
group: string;
|
8
|
+
id: string;
|
9
|
+
orderNumber: number;
|
10
|
+
components: {
|
11
|
+
View: React.FunctionComponent<EntitySettingViewProps>;
|
12
|
+
};
|
13
|
+
}, import("../extension-registrator.injectable").RegisteredEntitySetting, void>;
|
14
|
+
export default proxyKubernetesClusterEntitySettingsInjectable;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import type { EntitySettingViewProps } from "../extension-registrator.injectable";
|
3
|
+
declare const terminalKubernetesClusterEntitySettingsInjectable: import("@ogre-tools/injectable").Injectable<{
|
4
|
+
apiVersions: Set<string>;
|
5
|
+
kind: string;
|
6
|
+
title: string;
|
7
|
+
group: string;
|
8
|
+
id: string;
|
9
|
+
orderNumber: number;
|
10
|
+
components: {
|
11
|
+
View: React.FunctionComponent<EntitySettingViewProps>;
|
12
|
+
};
|
13
|
+
}, import("../extension-registrator.injectable").RegisteredEntitySetting, void>;
|
14
|
+
export default terminalKubernetesClusterEntitySettingsInjectable;
|
File without changes
|
File without changes
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import type { CatalogEntity } from "../../api/catalog-entity";
|
2
|
+
declare const catalogEntitySettingItemsInjectable: import("@ogre-tools/injectable").Injectable<import("mobx").IComputedValue<import("./extension-registrator.injectable").RegisteredEntitySetting[]>, unknown, CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>>;
|
3
|
+
export default catalogEntitySettingItemsInjectable;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
import type { RegisteredEntitySetting } from "./extension-registrator.injectable";
|
6
|
+
export declare const entitySettingInjectionToken: import("@ogre-tools/injectable").InjectionToken<RegisteredEntitySetting, void>;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import React from "react";
|
6
|
-
import type { Cluster } from "
|
6
|
+
import type { Cluster } from "../../../common/cluster/cluster";
|
7
7
|
export interface ClusterAccessibleNamespacesProps {
|
8
8
|
cluster: Cluster;
|
9
9
|
}
|
@@ -3,8 +3,8 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import React from "react";
|
6
|
-
import type { Cluster } from "
|
7
|
-
import type { KubernetesCluster } from "
|
6
|
+
import type { Cluster } from "../../../common/cluster/cluster";
|
7
|
+
import type { KubernetesCluster } from "../../../common/catalog-entities";
|
8
8
|
declare enum GeneralInputStatus {
|
9
9
|
CLEAN = "clean",
|
10
10
|
ERROR = "error"
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import React from "react";
|
6
|
-
import type { Cluster } from "
|
6
|
+
import type { Cluster } from "../../../common/cluster/cluster";
|
7
7
|
export interface ClusterKubeconfigProps {
|
8
8
|
cluster: Cluster;
|
9
9
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import React from "react";
|
6
|
-
import type { Cluster } from "
|
6
|
+
import type { Cluster } from "../../../common/cluster/cluster";
|
7
7
|
export interface ClusterLocalTerminalSettingProps {
|
8
8
|
cluster: Cluster;
|
9
9
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import React from "react";
|
6
|
-
import type { Cluster } from "
|
6
|
+
import type { Cluster } from "../../../common/cluster/cluster";
|
7
7
|
export interface ClusterMetricsSettingProps {
|
8
8
|
cluster: Cluster;
|
9
9
|
}
|
@@ -3,8 +3,8 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import React from "react";
|
6
|
-
import type { Cluster } from "
|
7
|
-
import type { KubernetesCluster } from "
|
6
|
+
import type { Cluster } from "../../../common/cluster/cluster";
|
7
|
+
import type { KubernetesCluster } from "../../../common/catalog-entities";
|
8
8
|
export interface ClusterNameSettingProps {
|
9
9
|
cluster: Cluster;
|
10
10
|
entity: KubernetesCluster;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
|
-
import type { Cluster } from "
|
5
|
+
import type { Cluster } from "../../../common/cluster/cluster";
|
6
6
|
import React from "react";
|
7
7
|
export interface ClusterNodeShellSettingProps {
|
8
8
|
cluster: Cluster;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import React from "react";
|
6
|
-
import type { Cluster } from "
|
6
|
+
import type { Cluster } from "../../../common/cluster/cluster";
|
7
7
|
export interface ClusterPrometheusSettingProps {
|
8
8
|
cluster: Cluster;
|
9
9
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import React from "react";
|
6
|
-
import type { Cluster } from "
|
6
|
+
import type { Cluster } from "../../../common/cluster/cluster";
|
7
7
|
export interface ClusterProxySettingProps {
|
8
8
|
cluster: Cluster;
|
9
9
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import React from "react";
|
6
|
-
import type { Cluster } from "
|
6
|
+
import type { Cluster } from "../../../common/cluster/cluster";
|
7
7
|
export interface ShowMetricsSettingProps {
|
8
8
|
cluster: Cluster;
|
9
9
|
}
|
@@ -5,36 +5,36 @@
|
|
5
5
|
import "./tabs.scss";
|
6
6
|
import type { DOMAttributes } from "react";
|
7
7
|
import React from "react";
|
8
|
-
interface TabsContextValue<D
|
8
|
+
interface TabsContextValue<D> {
|
9
9
|
autoFocus?: boolean;
|
10
10
|
withBorder?: boolean;
|
11
11
|
value?: D;
|
12
12
|
onChange?(value: D): void;
|
13
13
|
}
|
14
|
-
export interface TabsProps<D
|
14
|
+
export interface TabsProps<D> extends TabsContextValue<D>, Omit<DOMAttributes<HTMLElement>, "onChange"> {
|
15
15
|
className?: string;
|
16
16
|
center?: boolean;
|
17
17
|
wrap?: boolean;
|
18
18
|
scrollable?: boolean;
|
19
19
|
}
|
20
|
-
export declare class Tabs extends React.PureComponent<TabsProps
|
20
|
+
export declare class Tabs<D> extends React.PureComponent<TabsProps<D>> {
|
21
21
|
elem: HTMLDivElement | null;
|
22
22
|
render(): JSX.Element;
|
23
23
|
}
|
24
|
-
export interface TabProps<D
|
24
|
+
export interface TabProps<D> extends DOMAttributes<HTMLElement> {
|
25
25
|
id?: string;
|
26
26
|
className?: string;
|
27
27
|
active?: boolean;
|
28
28
|
disabled?: boolean;
|
29
29
|
icon?: React.ReactNode | string;
|
30
30
|
label?: React.ReactNode;
|
31
|
-
value
|
31
|
+
value: D;
|
32
32
|
}
|
33
|
-
export declare class Tab extends React.PureComponent<TabProps
|
34
|
-
static contextType: React.Context<TabsContextValue<
|
35
|
-
context: TabsContextValue
|
33
|
+
export declare class Tab<D> extends React.PureComponent<TabProps<D>> {
|
34
|
+
static contextType: React.Context<TabsContextValue<unknown>>;
|
35
|
+
context: TabsContextValue<D>;
|
36
36
|
ref: React.RefObject<HTMLDivElement>;
|
37
|
-
constructor(props: TabProps);
|
37
|
+
constructor(props: TabProps<D>);
|
38
38
|
get isActive(): boolean;
|
39
39
|
focus(): void;
|
40
40
|
scrollIntoView(): void;
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@k8slens/extensions",
|
3
3
|
"productName": "OpenLens extensions",
|
4
4
|
"description": "OpenLens - Open Source Kubernetes IDE: extensions",
|
5
|
-
"version": "6.3.0-git.
|
5
|
+
"version": "6.3.0-git.374701dd6e.0",
|
6
6
|
"copyright": "© 2022 OpenLens Authors",
|
7
7
|
"license": "MIT",
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
@@ -1,17 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* A OnceCell is an object that wraps some function that produces a value.
|
7
|
-
*
|
8
|
-
* It then only calls the function on the first call to `get()` and returns the
|
9
|
-
* same instance/value on every subsequent call.
|
10
|
-
*/
|
11
|
-
export interface LazyInitialized<T> {
|
12
|
-
get(): T;
|
13
|
-
}
|
14
|
-
/**
|
15
|
-
* A function to make a `OnceCell<T>`
|
16
|
-
*/
|
17
|
-
export declare function lazyInitialized<T>(builder: () => T): LazyInitialized<T>;
|
@@ -1,30 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
-
*/
|
5
|
-
import type React from "react";
|
6
|
-
import type { CatalogEntity } from "../../common/catalog";
|
7
|
-
import { BaseRegistry } from "./base-registry";
|
8
|
-
export interface EntitySettingViewProps {
|
9
|
-
entity: CatalogEntity;
|
10
|
-
}
|
11
|
-
export interface EntitySettingComponents {
|
12
|
-
View: React.ComponentType<EntitySettingViewProps>;
|
13
|
-
}
|
14
|
-
export interface EntitySettingRegistration {
|
15
|
-
apiVersions: string[];
|
16
|
-
kind: string;
|
17
|
-
title: string;
|
18
|
-
components: EntitySettingComponents;
|
19
|
-
source?: string;
|
20
|
-
id?: string;
|
21
|
-
priority?: number;
|
22
|
-
group?: string;
|
23
|
-
}
|
24
|
-
export interface RegisteredEntitySetting extends EntitySettingRegistration {
|
25
|
-
id: string;
|
26
|
-
}
|
27
|
-
export declare class EntitySettingRegistry extends BaseRegistry<EntitySettingRegistration, RegisteredEntitySetting> {
|
28
|
-
getRegisteredItem(item: EntitySettingRegistration): RegisteredEntitySetting;
|
29
|
-
getItemsForKind(kind: string, apiVersion: string, source?: string): RegisteredEntitySetting[];
|
30
|
-
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
-
*/
|
5
|
-
import type * as selfsigned from "selfsigned";
|
6
|
-
type SelfSignedGenerate = typeof selfsigned.generate;
|
7
|
-
export declare function getKubeAuthProxyCertificate(hostname: string, generate: SelfSignedGenerate): selfsigned.SelfSignedCert;
|
8
|
-
export {};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
-
*/
|
5
|
-
import { PrometheusLens } from "./lens";
|
6
|
-
import type { CoreV1Api } from "@kubernetes/client-node";
|
7
|
-
import type { PrometheusService } from "./provider-registry";
|
8
|
-
export declare class PrometheusHelm14 extends PrometheusLens {
|
9
|
-
readonly id: string;
|
10
|
-
readonly name: string;
|
11
|
-
readonly rateAccuracy: string;
|
12
|
-
readonly isConfigurable: boolean;
|
13
|
-
getPrometheusService(client: CoreV1Api): Promise<PrometheusService>;
|
14
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
-
*/
|
5
|
-
import type { CoreV1Api } from "@kubernetes/client-node";
|
6
|
-
import { PrometheusProvider, type PrometheusService } from "./provider-registry";
|
7
|
-
export declare class PrometheusHelm extends PrometheusProvider {
|
8
|
-
readonly id: string;
|
9
|
-
readonly name: string;
|
10
|
-
readonly rateAccuracy: string;
|
11
|
-
readonly isConfigurable: boolean;
|
12
|
-
getPrometheusService(client: CoreV1Api): Promise<PrometheusService>;
|
13
|
-
getQuery(opts: Record<string, string>, queryName: string): string;
|
14
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
-
*/
|
5
|
-
import type { PrometheusService } from "./provider-registry";
|
6
|
-
import { PrometheusProvider } from "./provider-registry";
|
7
|
-
import type { CoreV1Api } from "@kubernetes/client-node";
|
8
|
-
export declare class PrometheusLens extends PrometheusProvider {
|
9
|
-
readonly id: string;
|
10
|
-
readonly name: string;
|
11
|
-
readonly rateAccuracy: string;
|
12
|
-
readonly isConfigurable: boolean;
|
13
|
-
getPrometheusService(client: CoreV1Api): Promise<PrometheusService>;
|
14
|
-
getQuery(opts: Record<string, string>, queryName: string): string;
|
15
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
-
*/
|
5
|
-
import type { PrometheusService } from "./provider-registry";
|
6
|
-
import { PrometheusProvider } from "./provider-registry";
|
7
|
-
import type { CoreV1Api } from "@kubernetes/client-node";
|
8
|
-
export declare class PrometheusOperator extends PrometheusProvider {
|
9
|
-
readonly rateAccuracy: string;
|
10
|
-
readonly id: string;
|
11
|
-
readonly name: string;
|
12
|
-
readonly isConfigurable: boolean;
|
13
|
-
getPrometheusService(client: CoreV1Api): Promise<PrometheusService>;
|
14
|
-
getQuery(opts: Record<string, string>, queryName: string): string;
|
15
|
-
}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
-
*/
|
5
|
-
import type { CoreV1Api } from "@kubernetes/client-node";
|
6
|
-
export interface PrometheusService {
|
7
|
-
id: string;
|
8
|
-
namespace: string;
|
9
|
-
service: string;
|
10
|
-
port: number;
|
11
|
-
}
|
12
|
-
export declare abstract class PrometheusProvider {
|
13
|
-
abstract readonly id: string;
|
14
|
-
abstract readonly name: string;
|
15
|
-
abstract readonly rateAccuracy: string;
|
16
|
-
abstract readonly isConfigurable: boolean;
|
17
|
-
abstract getQuery(opts: Record<string, string>, queryName: string): string;
|
18
|
-
abstract getPrometheusService(client: CoreV1Api): Promise<PrometheusService | undefined>;
|
19
|
-
protected bytesSent(ingress: string, namespace: string, statuses: string): string;
|
20
|
-
protected getFirstNamespacedService(client: CoreV1Api, ...selectors: string[]): Promise<PrometheusService>;
|
21
|
-
protected getNamespacedService(client: CoreV1Api, name: string, namespace: string): Promise<PrometheusService>;
|
22
|
-
}
|
23
|
-
export declare class PrometheusProviderRegistry {
|
24
|
-
providers: Map<string, PrometheusProvider>;
|
25
|
-
getByKind(kind: string): PrometheusProvider;
|
26
|
-
registerProvider(provider: PrometheusProvider): this;
|
27
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
-
*/
|
5
|
-
import type { PrometheusService } from "./provider-registry";
|
6
|
-
import { PrometheusProvider } from "./provider-registry";
|
7
|
-
import type { CoreV1Api } from "@kubernetes/client-node";
|
8
|
-
export declare class PrometheusStacklight extends PrometheusProvider {
|
9
|
-
readonly id: string;
|
10
|
-
readonly name: string;
|
11
|
-
readonly rateAccuracy: string;
|
12
|
-
readonly isConfigurable: boolean;
|
13
|
-
getPrometheusService(client: CoreV1Api): Promise<PrometheusService>;
|
14
|
-
getQuery(opts: Record<string, string>, queryName: string): string;
|
15
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
-
*/
|
5
|
-
import type { EntitySettingViewProps } from "../../../extensions/registries";
|
6
|
-
export declare function GeneralSettings({ entity }: EntitySettingViewProps): JSX.Element | null;
|
7
|
-
export declare function ProxySettings({ entity }: EntitySettingViewProps): JSX.Element | null;
|
8
|
-
export declare function TerminalSettings({ entity }: EntitySettingViewProps): JSX.Element | null;
|
9
|
-
export declare function NamespacesSettings({ entity }: EntitySettingViewProps): JSX.Element | null;
|
10
|
-
export declare function MetricsSettings({ entity }: EntitySettingViewProps): JSX.Element | null;
|
11
|
-
export declare function NodeShellSettings({ entity }: EntitySettingViewProps): JSX.Element | null;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
-
*/
|
5
|
-
export * from "./cluster-accessible-namespaces";
|
6
|
-
export * from "./cluster-local-terminal-settings";
|
7
|
-
export * from "./cluster-kubeconfig";
|
8
|
-
export * from "./cluster-metrics-setting";
|
9
|
-
export * from "./cluster-name-setting";
|
10
|
-
export * from "./cluster-prometheus-setting";
|
11
|
-
export * from "./cluster-proxy-setting";
|
12
|
-
export * from "./cluster-show-metrics";
|
13
|
-
export * from "./cluster-icon-settings";
|
14
|
-
export * from "./cluster-node-shell-setting";
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import type { RegisteredEntitySetting } from "../../../../extensions/registries";
|
2
|
-
export type GetEntitySettingCommands = (kind: string, apiVersion: string, source?: string) => RegisteredEntitySetting[];
|
3
|
-
declare const getEntitySettingCommandsInjectable: import("@ogre-tools/injectable").Injectable<GetEntitySettingCommands, unknown, void>;
|
4
|
-
export default getEntitySettingCommandsInjectable;
|