@k8slens/extensions 6.3.0-git.27fb128c05.0 → 6.3.0-git.286e6c8de7.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/channel/message-to-channel-injection-token.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 +2 -13
- package/dist/src/features/shell-sync/common/failure-channel.d.ts +6 -0
- package/dist/src/{main/utils/shell-env → features/shell-sync/main}/compute-shell-environment.injectable.d.ts +0 -0
- package/dist/src/{main/utils/shell-env → features/shell-sync/main}/compute-unix-shell-environment.global-override-for-injectable.d.ts +0 -0
- package/dist/src/{main/utils/shell-env → features/shell-sync/main}/compute-unix-shell-environment.injectable.d.ts +0 -0
- package/dist/src/{main/utils/shell-env → features/shell-sync/main}/compute-unix-shell-environment.test.d.ts +0 -0
- package/dist/src/features/shell-sync/main/emit-failure.injectable.d.ts +2 -0
- package/dist/src/{main/utils/shell-env → features/shell-sync/main}/env.injectable.d.ts +0 -0
- package/dist/src/{main/utils/shell-env → features/shell-sync/main}/execPath.injectable.d.ts +0 -0
- package/dist/src/{main/start-main-application/runnables → features/shell-sync/main}/setup-shell.injectable.d.ts +0 -0
- package/dist/src/features/shell-sync/renderer/failure-listener.injectable.d.ts +5 -0
- 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/main/shell-session/shell-session.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/common/utils/lazy-initialized.d.ts +0 -17
- 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
@@ -3,4 +3,5 @@ export interface SendMessageToChannel {
|
|
3
3
|
(channel: MessageChannel<void>): void;
|
4
4
|
<Message>(channel: MessageChannel<Message>, message: Message): void;
|
5
5
|
}
|
6
|
+
export type MessageChannelSender<Channel> = Channel extends MessageChannel<void | undefined> ? () => void : Channel extends MessageChannel<infer Message> ? (message: Message) => void : never;
|
6
7
|
export declare const sendMessageToChannelInjectionToken: import("@ogre-tools/injectable").InjectionToken<SendMessageToChannel, void>;
|
@@ -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
|
|
@@ -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.9\",\"@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.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?");
|
40005
39994
|
|
40006
39995
|
/***/ }),
|
40007
39996
|
|
@@ -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 { MessageChannel } from "../../../common/utils/channel/message-channel-listener-injection-token";
|
6
|
+
export declare const shellSyncFailedChannel: MessageChannel<string>;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const shellSyncFailureListenerInjectable: import("@ogre-tools/injectable").Injectable<{
|
2
|
+
channel: import("../../../common/utils/channel/message-channel-listener-injection-token").MessageChannel<string>;
|
3
|
+
handler: (message: string) => void;
|
4
|
+
}, import("../../../common/utils/channel/message-channel-listener-injection-token").MessageChannelListener<import("../../../common/utils/channel/message-channel-listener-injection-token").MessageChannel<unknown>>, void>;
|
5
|
+
export default shellSyncFailureListenerInjectable;
|
@@ -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;
|
@@ -8,7 +8,7 @@ import type WebSocket from "ws";
|
|
8
8
|
import type * as pty from "node-pty";
|
9
9
|
import { type TerminalMessage } from "../../common/terminal/channels";
|
10
10
|
import type { Logger } from "../../common/logger";
|
11
|
-
import type { ComputeShellEnvironment } from "
|
11
|
+
import type { ComputeShellEnvironment } from "../../features/shell-sync/main/compute-shell-environment.injectable";
|
12
12
|
import type { SpawnPty } from "./spawn-pty.injectable";
|
13
13
|
import type { InitializableState } from "../../common/initializable-state/create";
|
14
14
|
import type { EmitAppEvent } from "../../common/app-event-bus/emit-event.injectable";
|
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.286e6c8de7.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,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
|
-
}
|