@k8slens/extensions 6.0.1-git.0d28af3fe5.0 → 6.0.1-git.100bd870d7.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/app-event-bus/app-event-bus.global-override-for-injectable.d.ts +5 -0
- package/dist/src/common/k8s-api/endpoints/daemon-set.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/index.d.ts +1 -0
- package/dist/src/common/k8s-api/endpoints/job.api.d.ts +4 -3
- package/dist/src/common/k8s-api/endpoints/pod.api.d.ts +13 -129
- package/dist/src/common/k8s-api/endpoints/replica-set.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/stateful-set.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/types/capabilities.d.ts +17 -0
- package/dist/src/common/k8s-api/endpoints/types/container-port.d.ts +11 -0
- package/dist/src/common/k8s-api/endpoints/types/container.d.ts +158 -0
- package/dist/src/common/k8s-api/endpoints/types/env-from-source.d.ts +13 -0
- package/dist/src/common/k8s-api/endpoints/types/env-source.d.ts +11 -0
- package/dist/src/common/k8s-api/endpoints/types/env-var-key-selector.d.ts +9 -0
- package/dist/src/common/k8s-api/endpoints/types/env-var-source.d.ts +13 -0
- package/dist/src/common/k8s-api/endpoints/types/env-var.d.ts +10 -0
- package/dist/src/common/k8s-api/endpoints/types/exec-action.d.ts +18 -0
- package/dist/src/common/k8s-api/endpoints/types/handler.d.ts +15 -0
- package/dist/src/common/k8s-api/endpoints/types/http-get-action.d.ts +32 -0
- package/dist/src/common/k8s-api/endpoints/types/http-header.d.ts +17 -0
- package/dist/src/common/k8s-api/endpoints/types/index.d.ts +35 -0
- package/dist/src/common/k8s-api/endpoints/types/lifecycle.d.ts +15 -0
- package/dist/src/common/k8s-api/endpoints/types/object-field-selector.d.ts +8 -0
- package/dist/src/common/k8s-api/endpoints/types/pod-security-context.d.ts +20 -0
- package/dist/src/common/k8s-api/endpoints/types/probe.d.ts +70 -0
- package/dist/src/common/k8s-api/endpoints/types/resource-field-selector.d.ts +9 -0
- package/dist/src/common/k8s-api/endpoints/types/se-linux-options.d.ts +25 -0
- package/dist/src/common/k8s-api/endpoints/types/seccomp-profile.d.ts +27 -0
- package/dist/src/common/k8s-api/endpoints/types/security-context.d.ts +45 -0
- package/dist/src/common/k8s-api/endpoints/types/tcp-socket-action.d.ts +17 -0
- package/dist/src/common/k8s-api/endpoints/types/volume-device.d.ts +17 -0
- package/dist/src/common/k8s-api/endpoints/types/volume-mount.d.ts +12 -0
- package/dist/src/common/k8s-api/endpoints/types/windows-security-context-options.d.ts +36 -0
- package/dist/src/common/vars/package-json.injectable.d.ts +1 -0
- package/dist/src/extensions/common-api/k8s-api.d.ts +1 -1
- package/dist/src/extensions/extension-api.js +622 -269
- package/dist/src/extensions/extension-discovery/extension-discovery.d.ts +1 -2
- package/dist/src/{behaviours → features}/pod-logs/download-logs.test.d.ts +0 -0
- package/dist/src/features/telemetry/emit-telemetry-from-specific-function-calls.test.d.ts +1 -0
- package/dist/src/features/telemetry/renderer/emit-telemetry.injectable.d.ts +5 -0
- package/dist/src/features/telemetry/renderer/telemetry-decorator.injectable.d.ts +11 -0
- package/dist/src/features/telemetry/renderer/telemetry-white-list-for-functions.injectable.d.ts +2 -0
- package/dist/src/main/prometheus/helm-14.d.ts +14 -0
- package/dist/src/renderer/components/+workloads-pods/__tests__/pod-container-env.test.d.ts +5 -0
- package/dist/src/renderer/components/+workloads-pods/pod-container-env.d.ts +4 -10
- package/dist/src/renderer/components/+workloads-pods/pod-details-container.d.ts +2 -2
- package/dist/src/renderer/components/dock/logs/create-pod-logs-tab.injectable.d.ts +2 -2
- package/dist/src/renderer/components/status-bar/status-bar-registration.d.ts +5 -0
- package/package.json +1 -1
- package/dist/src/extensions/extension-discovery/is-compatible-bundled-extension/is-compatible-bundled-extension.d.ts +0 -11
- package/dist/src/extensions/extension-discovery/is-compatible-bundled-extension/is-compatible-bundled-extension.injectable.d.ts +0 -2
|
@@ -17,7 +17,6 @@ interface Dependencies {
|
|
|
17
17
|
extensionLoader: ExtensionLoader;
|
|
18
18
|
extensionsStore: ExtensionsStore;
|
|
19
19
|
extensionInstallationStateStore: ExtensionInstallationStateStore;
|
|
20
|
-
isCompatibleBundledExtension: (manifest: LensExtensionManifest) => boolean;
|
|
21
20
|
isCompatibleExtension: (manifest: LensExtensionManifest) => boolean;
|
|
22
21
|
installExtension: (name: string) => Promise<void>;
|
|
23
22
|
installExtensions: (packageJsonPath: string, packagesJson: PackageJson) => Promise<void>;
|
|
@@ -55,7 +54,7 @@ interface LoadFromFolderOptions {
|
|
|
55
54
|
* - "remove": When extension is removed. The event is of type LensExtensionId
|
|
56
55
|
*/
|
|
57
56
|
export declare class ExtensionDiscovery {
|
|
58
|
-
protected dependencies: Dependencies;
|
|
57
|
+
protected readonly dependencies: Dependencies;
|
|
59
58
|
protected bundledFolderPath: string;
|
|
60
59
|
private loadStarted;
|
|
61
60
|
private extensions;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
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 { DiContainerForInjection, Injectable } from "@ogre-tools/injectable";
|
|
6
|
+
declare const telemetryDecoratorInjectable: Injectable<{
|
|
7
|
+
decorate: (instantiateToBeDecorated: any) => (di: DiContainerForInjection, instantiationParameter: any) => any;
|
|
8
|
+
}, {
|
|
9
|
+
decorate: (toBeDecorated: any) => any;
|
|
10
|
+
}, unknown>;
|
|
11
|
+
export default telemetryDecoratorInjectable;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -3,16 +3,10 @@
|
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
4
|
*/
|
|
5
5
|
import "./pod-container-env.scss";
|
|
6
|
-
import
|
|
6
|
+
import React from "react";
|
|
7
|
+
import type { Container } from "../../../common/k8s-api/endpoints";
|
|
7
8
|
export interface ContainerEnvironmentProps {
|
|
8
|
-
container:
|
|
9
|
-
namespace: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const ContainerEnvironment: (props: ContainerEnvironmentProps) => JSX.Element;
|
|
12
|
-
export interface SecretKeyProps {
|
|
13
|
-
reference: {
|
|
14
|
-
name: string;
|
|
15
|
-
key: string;
|
|
16
|
-
};
|
|
9
|
+
container: Container;
|
|
17
10
|
namespace: string;
|
|
18
11
|
}
|
|
12
|
+
export declare const ContainerEnvironment: React.FunctionComponent<ContainerEnvironmentProps>;
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import "./pod-details-container.scss";
|
|
6
6
|
import React from "react";
|
|
7
|
-
import type {
|
|
7
|
+
import type { Container, Pod } from "../../../common/k8s-api/endpoints";
|
|
8
8
|
import type { MetricData } from "../../../common/k8s-api/endpoints/metrics.api";
|
|
9
9
|
export interface PodDetailsContainerProps {
|
|
10
10
|
pod: Pod;
|
|
11
|
-
container:
|
|
11
|
+
container: Container;
|
|
12
12
|
metrics?: Partial<Record<string, MetricData>>;
|
|
13
13
|
}
|
|
14
14
|
export declare const PodDetailsContainer: React.FunctionComponent<PodDetailsContainerProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Container, Pod } from "../../../../common/k8s-api/endpoints";
|
|
2
2
|
import type { TabId } from "../dock/store";
|
|
3
3
|
export interface PodLogsTabData {
|
|
4
4
|
selectedPod: Pod;
|
|
5
|
-
selectedContainer:
|
|
5
|
+
selectedContainer: Container;
|
|
6
6
|
}
|
|
7
7
|
declare const createPodLogsTabInjectable: import("@ogre-tools/injectable").Injectable<({ selectedPod, selectedContainer }: PodLogsTabData) => TabId, unknown, void>;
|
|
8
8
|
export default createPodLogsTabInjectable;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
4
|
*/
|
|
5
5
|
/// <reference types="react" />
|
|
6
|
+
import type { IComputedValue } from "mobx";
|
|
6
7
|
/**
|
|
7
8
|
* The props for StatusBar item component
|
|
8
9
|
*/
|
|
@@ -35,4 +36,8 @@ export interface StatusBarRegistration {
|
|
|
35
36
|
* The newer API, allows for registering a component instead of a ReactNode
|
|
36
37
|
*/
|
|
37
38
|
components?: StatusBarComponents;
|
|
39
|
+
/**
|
|
40
|
+
* If specified, controls item visibility
|
|
41
|
+
*/
|
|
42
|
+
visible?: IComputedValue<boolean>;
|
|
38
43
|
}
|
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.0.1-git.
|
|
5
|
+
"version": "6.0.1-git.100bd870d7.0",
|
|
6
6
|
"copyright": "© 2022 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
|
@@ -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 { LensExtensionManifest } from "../../lens-extension";
|
|
6
|
-
import type { SemVer } from "semver";
|
|
7
|
-
interface Dependencies {
|
|
8
|
-
appSemVer: SemVer;
|
|
9
|
-
}
|
|
10
|
-
export declare const isCompatibleBundledExtension: ({ appSemVer }: Dependencies) => (manifest: LensExtensionManifest) => boolean;
|
|
11
|
-
export {};
|