@k8slens/extensions 6.0.1-git.e2b854d3af.0 → 6.0.1-git.e3703dbf26.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/base-store.d.ts +1 -1
- package/dist/src/common/fs/exec-file.injectable.d.ts +3 -1
- package/dist/src/common/get-configuration-file-model/get-configuration-file-model.injectable.d.ts +1 -1
- 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/metrics.api.d.ts +5 -2
- 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/{main/routes/metrics/metrics-query.d.ts → common/k8s-api/endpoints/types/object-field-selector.d.ts} +4 -3
- 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/utils/singleton.d.ts +1 -1
- package/dist/src/common/vars/package-json.injectable.d.ts +4 -0
- package/dist/src/extensions/as-legacy-globals-for-extension-api/as-legacy-global-object-for-extension-api-with-modifications.d.ts +1 -1
- package/dist/src/extensions/common-api/k8s-api.d.ts +1 -1
- package/dist/src/extensions/extension-api.js +733 -358
- package/dist/src/extensions/extension-discovery/extension-discovery.d.ts +1 -2
- package/dist/src/extensions/extension-store.d.ts +1 -1
- package/dist/src/extensions/renderer-api/theming.d.ts +7 -1
- package/dist/src/features/cluster/workload-overview.test.d.ts +5 -0
- package/dist/src/features/pod-logs/download-logs.test.d.ts +5 -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/helm/exec-helm/exec-helm.injectable.d.ts +2 -1
- package/dist/src/main/helm/helm-release-manager.d.ts +1 -6
- package/dist/src/main/helm/helm-service/get-helm-release-resources/call-for-helm-manifest/call-for-helm-manifest.injectable.d.ts +4 -0
- package/dist/src/main/helm/helm-service/get-helm-release-resources/call-for-kube-resources-by-manifest/call-for-kube-resources-by-manifest.injectable.d.ts +5 -0
- package/dist/src/main/helm/helm-service/get-helm-release-resources/call-for-kube-resources-by-manifest/exec-file-with-input/exec-file-with-input.global-override-for-injectable.d.ts +5 -0
- package/dist/src/main/helm/helm-service/get-helm-release-resources/call-for-kube-resources-by-manifest/exec-file-with-input/exec-file-with-input.injectable.d.ts +8 -0
- package/dist/src/main/helm/helm-service/get-helm-release-resources/call-for-kube-resources-by-manifest/exec-file-with-input/exec-file-with-input.test.d.ts +1 -0
- package/dist/src/main/helm/helm-service/get-helm-release-resources/call-for-kube-resources-by-manifest/exec-file-with-input/non-promise-exec-file.injectable.d.ts +4 -0
- package/dist/src/main/helm/helm-service/get-helm-release-resources/get-helm-release-resources.injectable.d.ts +4 -0
- package/dist/src/main/helm/helm-service/get-helm-release-resources/get-helm-release-resources.test.d.ts +5 -0
- package/dist/src/main/helm/helm-service/get-helm-release.global-override-for-injectable.d.ts +5 -0
- package/dist/src/main/helm/helm-service/update-helm-release.global-override-for-injectable.d.ts +11 -0
- package/dist/src/main/prometheus/helm-14.d.ts +14 -0
- package/dist/src/main/prometheus/helm.d.ts +3 -3
- package/dist/src/main/router/router.d.ts +1 -1
- package/dist/src/renderer/components/+helm-releases/release-details/release-details-drawer-toolbar.d.ts +12 -0
- package/dist/src/renderer/components/+helm-releases/release-details/release-details-drawer.d.ts +12 -0
- package/dist/src/renderer/components/+helm-releases/release-details/release-details-model/call-for-helm-release/call-for-helm-release.injectable.d.ts +2 -1
- package/dist/src/renderer/components/+helm-releases/release-details/release-details-model/release-details-model.injectable.d.ts +15 -16
- package/dist/src/renderer/components/+workloads-overview/overview-workload-status.d.ts +19 -1
- package/dist/src/renderer/components/+workloads-overview/workloads/workload-injection-token.d.ts +2 -1
- package/dist/src/renderer/components/+workloads-pods/__tests__/pod-container-env.test.d.ts +5 -0
- package/dist/src/renderer/components/+workloads-pods/details/volumes/variant-helpers.d.ts +1 -1
- 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/chart/chart.d.ts +1 -0
- package/dist/src/renderer/components/dock/logs/controls.d.ts +1 -3
- package/dist/src/renderer/components/dock/logs/create-pod-logs-tab.injectable.d.ts +2 -2
- package/dist/src/renderer/components/dock/logs/download-all-logs.injectable.d.ts +4 -0
- package/dist/src/renderer/components/dock/logs/download-logs-dropdown.d.ts +10 -0
- package/dist/src/renderer/components/dock/logs/download-logs.injectable.d.ts +2 -0
- package/dist/src/renderer/components/dock/logs/get-random-id-for-pod-logs-tab.injectable.d.ts +2 -0
- package/dist/src/renderer/components/dock/logs/logs-view-model.d.ts +6 -1
- package/dist/src/renderer/components/dropdown/dropdown.d.ts +11 -0
- package/dist/src/renderer/components/layout/sidebar-item.d.ts +0 -1
- package/dist/src/renderer/components/status-bar/status-bar-registration.d.ts +5 -0
- package/dist/src/renderer/components/test-utils/get-application-builder.d.ts +1 -0
- package/dist/src/renderer/navigation/index.d.ts +0 -4
- package/dist/src/renderer/navigation/match-route.injectable.d.ts +3 -1
- package/dist/src/renderer/themes/active-type.injectable.d.ts +5 -0
- package/dist/src/renderer/themes/active.injectable.d.ts +2 -0
- package/dist/src/renderer/themes/lens-dark.d.ts +2 -2
- package/dist/src/renderer/themes/lens-light.d.ts +2 -2
- package/dist/src/renderer/themes/store.d.ts +6 -5
- package/dist/src/renderer/utils/storageHelper.d.ts +1 -1
- 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;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
*/
|
5
5
|
import { BaseStore } from "../common/base-store";
|
6
6
|
import type { LensExtension } from "./lens-extension";
|
7
|
-
export declare abstract class ExtensionStore<T> extends BaseStore<T> {
|
7
|
+
export declare abstract class ExtensionStore<T extends object> extends BaseStore<T> {
|
8
8
|
readonly displayName = "ExtensionStore<T>";
|
9
9
|
protected extension?: LensExtension;
|
10
10
|
loadExtension(extension: LensExtension): void;
|
@@ -2,4 +2,10 @@
|
|
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
|
-
|
5
|
+
import type { LensTheme } from "../../renderer/themes/store";
|
6
|
+
export declare const activeTheme: import("mobx").IComputedValue<LensTheme>;
|
7
|
+
/**
|
8
|
+
* @deprecated This hides the reactivity of active theme, use {@link activeTheme} instead
|
9
|
+
*/
|
10
|
+
export declare function getActiveTheme(): LensTheme;
|
11
|
+
export type { LensTheme };
|
@@ -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;
|
@@ -1,3 +1,4 @@
|
|
1
1
|
import type { AsyncResult } from "../../../common/utils/async-result";
|
2
|
-
declare
|
2
|
+
export declare type ExecHelm = (args: string[]) => Promise<AsyncResult<string>>;
|
3
|
+
declare const execHelmInjectable: import("@ogre-tools/injectable").Injectable<ExecHelm, unknown, void>;
|
3
4
|
export default execHelmInjectable;
|
@@ -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 {
|
5
|
+
import type { JsonValue } from "type-fest";
|
6
6
|
export declare function listReleases(pathToKubeconfig: string, namespace?: string): Promise<Record<string, any>[]>;
|
7
7
|
export declare function installChart(chart: string, values: JsonValue, name: string | undefined, namespace: string, version: string, kubeconfigPath: string): Promise<{
|
8
8
|
log: string;
|
@@ -11,11 +11,6 @@ export declare function installChart(chart: string, values: JsonValue, name: str
|
|
11
11
|
namespace: string;
|
12
12
|
};
|
13
13
|
}>;
|
14
|
-
export declare function upgradeRelease(name: string, chart: string, values: any, namespace: string, version: string, kubeconfigPath: string, kubectlPath: string): Promise<{
|
15
|
-
log: string;
|
16
|
-
release: JsonObject | undefined;
|
17
|
-
}>;
|
18
|
-
export declare function getRelease(name: string, namespace: string, kubeconfigPath: string, kubectlPath: string): Promise<JsonObject | undefined>;
|
19
14
|
export declare function deleteRelease(name: string, namespace: string, kubeconfigPath: string): Promise<string>;
|
20
15
|
interface GetValuesOptions {
|
21
16
|
namespace: string;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { AsyncResult } from "../../../../../common/utils/async-result";
|
2
|
+
import type { KubeJsonApiData } from "../../../../../common/k8s-api/kube-json-api";
|
3
|
+
declare const callForHelmManifestInjectable: import("@ogre-tools/injectable").Injectable<(name: string, namespace: string, kubeconfigPath: string) => Promise<AsyncResult<KubeJsonApiData[]>>, unknown, void>;
|
4
|
+
export default callForHelmManifestInjectable;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { JsonObject } from "type-fest";
|
2
|
+
import type { KubeJsonApiData } from "../../../../../common/k8s-api/kube-json-api";
|
3
|
+
export declare type CallForKubeResourcesByManifest = (namespace: string, kubeconfigPath: string, kubectlPath: string, resourceManifests: KubeJsonApiData[]) => Promise<JsonObject[]>;
|
4
|
+
declare const callForKubeResourcesByManifestInjectable: import("@ogre-tools/injectable").Injectable<CallForKubeResourcesByManifest, unknown, void>;
|
5
|
+
export default callForKubeResourcesByManifestInjectable;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
injectable: import("@ogre-tools/injectable").Injectable<import("./exec-file-with-input.injectable").ExecFileWithInput, unknown, void>;
|
3
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./exec-file-with-input.injectable").ExecFileWithInput, void>;
|
4
|
+
};
|
5
|
+
export default _default;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { AsyncResult } from "../../../../../../common/utils/async-result";
|
2
|
+
export declare type ExecFileWithInput = (options: {
|
3
|
+
filePath: string;
|
4
|
+
commandArguments: string[];
|
5
|
+
input: string;
|
6
|
+
}) => Promise<AsyncResult<string, unknown>>;
|
7
|
+
declare const execFileWithInputInjectable: import("@ogre-tools/injectable").Injectable<ExecFileWithInput, unknown, void>;
|
8
|
+
export default execFileWithInputInjectable;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { JsonObject } from "type-fest";
|
2
|
+
export declare type GetHelmReleaseResources = (name: string, namespace: string, kubeconfigPath: string, kubectlPath: string) => Promise<JsonObject[]>;
|
3
|
+
declare const getHelmReleaseResourcesInjectable: import("@ogre-tools/injectable").Injectable<GetHelmReleaseResources, unknown, void>;
|
4
|
+
export default getHelmReleaseResourcesInjectable;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
injectable: import("@ogre-tools/injectable").Injectable<(cluster: import("../../../common/cluster/cluster").Cluster, releaseName: string, namespace: string) => Promise<import("type-fest").JsonObject | undefined>, unknown, void>;
|
3
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<(cluster: import("../../../common/cluster/cluster").Cluster, releaseName: string, namespace: string) => Promise<import("type-fest").JsonObject | undefined>, void>;
|
4
|
+
};
|
5
|
+
export default _default;
|
package/dist/src/main/helm/helm-service/update-helm-release.global-override-for-injectable.d.ts
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
injectable: import("@ogre-tools/injectable").Injectable<(cluster: import("../../../common/cluster/cluster").Cluster, releaseName: string, namespace: string, data: import("./update-helm-release.injectable").UpdateChartArgs) => Promise<{
|
3
|
+
log: string;
|
4
|
+
release: import("type-fest").JsonObject | undefined;
|
5
|
+
}>, unknown, void>;
|
6
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<(cluster: import("../../../common/cluster/cluster").Cluster, releaseName: string, namespace: string, data: import("./update-helm-release.injectable").UpdateChartArgs) => Promise<{
|
7
|
+
log: string;
|
8
|
+
release: import("type-fest").JsonObject | undefined;
|
9
|
+
}>, void>;
|
10
|
+
};
|
11
|
+
export default _default;
|
@@ -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
|
+
}
|
@@ -2,13 +2,13 @@
|
|
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 { PrometheusLens } from "./lens";
|
6
5
|
import type { CoreV1Api } from "@kubernetes/client-node";
|
7
|
-
import type
|
8
|
-
export declare class PrometheusHelm extends
|
6
|
+
import { PrometheusProvider, type PrometheusService } from "./provider-registry";
|
7
|
+
export declare class PrometheusHelm extends PrometheusProvider {
|
9
8
|
readonly id: string;
|
10
9
|
readonly name: string;
|
11
10
|
readonly rateAccuracy: string;
|
12
11
|
readonly isConfigurable: boolean;
|
13
12
|
getPrometheusService(client: CoreV1Api): Promise<PrometheusService>;
|
13
|
+
getQuery(opts: Record<string, string>, queryName: string): string;
|
14
14
|
}
|
@@ -21,7 +21,7 @@ interface Dependencies {
|
|
21
21
|
}
|
22
22
|
export declare class Router {
|
23
23
|
private dependencies;
|
24
|
-
protected router: Call.Router<(request: LensApiRequest<string>, response: http.ServerResponse) => Promise<void>>;
|
24
|
+
protected router: Call.Router<(request: LensApiRequest<string>, response: http.ServerResponse<http.IncomingMessage>) => Promise<void>>;
|
25
25
|
constructor(routes: Route<unknown, string>[], dependencies: Dependencies);
|
26
26
|
route(cluster: Cluster | undefined, req: ServerIncomingMessage, res: http.ServerResponse): Promise<boolean>;
|
27
27
|
protected getRequest(opts: RouterRequestOpts): Promise<LensApiRequest<string>>;
|
@@ -0,0 +1,12 @@
|
|
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 "./release-details.scss";
|
6
|
+
import React from "react";
|
7
|
+
import type { TargetHelmRelease } from "./target-helm-release.injectable";
|
8
|
+
interface ReleaseDetailsDrawerProps {
|
9
|
+
targetRelease: TargetHelmRelease;
|
10
|
+
}
|
11
|
+
export declare const ReleaseDetailsDrawerToolbar: React.FunctionComponent<ReleaseDetailsDrawerProps>;
|
12
|
+
export {};
|
package/dist/src/renderer/components/+helm-releases/release-details/release-details-drawer.d.ts
ADDED
@@ -0,0 +1,12 @@
|
|
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 "./release-details.scss";
|
6
|
+
import React from "react";
|
7
|
+
import type { TargetHelmRelease } from "./target-helm-release.injectable";
|
8
|
+
interface ReleaseDetailsDrawerProps {
|
9
|
+
targetRelease: TargetHelmRelease;
|
10
|
+
}
|
11
|
+
export declare const ReleaseDetailsDrawer: React.FunctionComponent<ReleaseDetailsDrawerProps>;
|
12
|
+
export {};
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import type { HelmReleaseDto } from "../../../../../../common/k8s-api/endpoints/helm-releases.api";
|
2
2
|
import type { HelmReleaseDetails } from "./call-for-helm-release-details/call-for-helm-release-details.injectable";
|
3
|
+
import type { AsyncResult } from "../../../../../../common/utils/async-result";
|
3
4
|
export interface DetailedHelmRelease {
|
4
5
|
release: HelmReleaseDto;
|
5
6
|
details: HelmReleaseDetails;
|
6
7
|
}
|
7
|
-
export declare type CallForHelmRelease = (name: string, namespace: string) => Promise<DetailedHelmRelease | undefined
|
8
|
+
export declare type CallForHelmRelease = (name: string, namespace: string) => Promise<AsyncResult<DetailedHelmRelease | undefined>>;
|
8
9
|
declare const callForHelmReleaseInjectable: import("@ogre-tools/injectable").Injectable<CallForHelmRelease, unknown, void>;
|
9
10
|
export default callForHelmReleaseInjectable;
|
@@ -1,45 +1,44 @@
|
|
1
|
-
import type { IObservableValue } from "mobx";
|
1
|
+
import type { IComputedValue, IObservableValue } from "mobx";
|
2
2
|
import type { TargetHelmRelease } from "../target-helm-release.injectable";
|
3
3
|
import type { CallForHelmRelease } from "./call-for-helm-release/call-for-helm-release.injectable";
|
4
|
-
import type {
|
4
|
+
import type { LensTheme } from "../../../../themes/store";
|
5
5
|
import type { CallForHelmReleaseConfiguration } from "./call-for-helm-release-configuration/call-for-helm-release-configuration.injectable";
|
6
6
|
import type { GetResourceDetailsUrl } from "./get-resource-details-url.injectable";
|
7
7
|
import type { CallForHelmReleaseUpdate } from "../../update-release/call-for-helm-release-update/call-for-helm-release-update.injectable";
|
8
8
|
import type { ShowCheckedErrorNotification } from "../../../notifications/show-checked-error.injectable";
|
9
9
|
import type { ShowNotification } from "../../../notifications";
|
10
10
|
import type { HelmRelease } from "../../../../../common/k8s-api/endpoints/helm-releases.api";
|
11
|
-
|
12
|
-
declare const releaseDetailsModelInjectable: import("@ogre-tools/injectable").Injectable<ReleaseDetailsModel, unknown, TargetHelmRelease>;
|
11
|
+
declare const releaseDetailsModelInjectable: import("@ogre-tools/injectable").Injectable<Promise<ReleaseDetailsModel>, unknown, TargetHelmRelease>;
|
13
12
|
export default releaseDetailsModelInjectable;
|
14
13
|
export interface OnlyUserSuppliedValuesAreShownToggle {
|
15
|
-
value: IObservableValue<boolean>;
|
14
|
+
readonly value: IObservableValue<boolean>;
|
16
15
|
toggle: () => Promise<void>;
|
17
16
|
}
|
18
17
|
export interface ConfigurationInput {
|
19
|
-
nonSavedValue: IObservableValue<string>;
|
20
|
-
isLoading: IObservableValue<boolean>;
|
21
|
-
isSaving: IObservableValue<boolean>;
|
18
|
+
readonly nonSavedValue: IObservableValue<string>;
|
19
|
+
readonly isLoading: IObservableValue<boolean>;
|
20
|
+
readonly isSaving: IObservableValue<boolean>;
|
22
21
|
onChange: (value: string) => void;
|
23
22
|
save: () => Promise<void>;
|
24
23
|
}
|
25
24
|
interface Dependencies {
|
25
|
+
readonly targetRelease: TargetHelmRelease;
|
26
|
+
readonly activeTheme: IComputedValue<LensTheme>;
|
26
27
|
callForHelmRelease: CallForHelmRelease;
|
27
|
-
targetRelease: TargetHelmRelease;
|
28
|
-
themeStore: ThemeStore;
|
29
28
|
callForHelmReleaseConfiguration: CallForHelmReleaseConfiguration;
|
30
29
|
getResourceDetailsUrl: GetResourceDetailsUrl;
|
31
30
|
updateRelease: CallForHelmReleaseUpdate;
|
32
31
|
showCheckedErrorNotification: ShowCheckedErrorNotification;
|
33
32
|
showSuccessNotification: ShowNotification;
|
34
33
|
createUpgradeChartTab: (release: HelmRelease) => string;
|
35
|
-
navigateToHelmReleases:
|
34
|
+
navigateToHelmReleases: () => void;
|
36
35
|
}
|
37
36
|
export declare class ReleaseDetailsModel {
|
38
|
-
private dependencies;
|
39
|
-
id: string;
|
37
|
+
private readonly dependencies;
|
38
|
+
readonly id: string;
|
40
39
|
constructor(dependencies: Dependencies);
|
41
|
-
private detailedRelease;
|
42
|
-
readonly
|
40
|
+
private readonly detailedRelease;
|
41
|
+
readonly loadingError: IObservableValue<string | undefined>;
|
43
42
|
readonly configuration: ConfigurationInput;
|
44
43
|
readonly onlyUserSuppliedValuesAreShown: OnlyUserSuppliedValuesAreShownToggle;
|
45
44
|
load: () => Promise<void>;
|
@@ -48,7 +47,7 @@ export declare class ReleaseDetailsModel {
|
|
48
47
|
private get details();
|
49
48
|
get notes(): string;
|
50
49
|
get groupedResources(): MinimalResourceGroup[];
|
51
|
-
get activeTheme(): "
|
50
|
+
get activeTheme(): import("../../../../themes/store").LensThemeType;
|
52
51
|
close: () => void;
|
53
52
|
startUpgradeProcess: () => void;
|
54
53
|
}
|
@@ -4,7 +4,25 @@
|
|
4
4
|
*/
|
5
5
|
import "./overview-workload-status.scss";
|
6
6
|
import React from "react";
|
7
|
+
import type { PascalCase } from "type-fest";
|
8
|
+
import type { Workload } from "./workloads/workload-injection-token";
|
9
|
+
export declare type LowercaseOrPascalCase<T extends string> = Lowercase<T> | PascalCase<T>;
|
10
|
+
export declare type WorkloadStatus = Partial<Record<LowercaseOrPascalCase<keyof typeof statusBackgroundColorMapping>, number>>;
|
7
11
|
export interface OverviewWorkloadStatusProps {
|
8
|
-
|
12
|
+
workload: Workload;
|
9
13
|
}
|
14
|
+
declare const statusBackgroundColorMapping: {
|
15
|
+
readonly running: "colorOk";
|
16
|
+
readonly scheduled: "colorOk";
|
17
|
+
readonly pending: "colorWarning";
|
18
|
+
readonly suspended: "colorWarning";
|
19
|
+
readonly evicted: "colorError";
|
20
|
+
readonly succeeded: "colorSuccess";
|
21
|
+
readonly failed: "colorError";
|
22
|
+
readonly terminated: "colorTerminated";
|
23
|
+
readonly terminating: "colorTerminated";
|
24
|
+
readonly unknown: "colorVague";
|
25
|
+
readonly complete: "colorSuccess";
|
26
|
+
};
|
10
27
|
export declare const OverviewWorkloadStatus: React.FunctionComponent<OverviewWorkloadStatusProps>;
|
28
|
+
export {};
|
package/dist/src/renderer/components/+workloads-overview/workloads/workload-injection-token.d.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
import type { IComputedValue } from "mobx";
|
2
|
+
import type { WorkloadStatus } from "../overview-workload-status";
|
2
3
|
export interface Workload {
|
3
4
|
resourceName: string;
|
4
5
|
open: () => void;
|
5
6
|
amountOfItems: IComputedValue<number>;
|
6
|
-
status: IComputedValue<
|
7
|
+
status: IComputedValue<WorkloadStatus>;
|
7
8
|
title: string;
|
8
9
|
orderNumber: number;
|
9
10
|
}
|
@@ -21,4 +21,4 @@ export interface LocalRefProps {
|
|
21
21
|
kubeRef: LocalObjectReference | SecretReference | undefined;
|
22
22
|
api: LocalRefPropsApi;
|
23
23
|
}
|
24
|
-
export declare const LocalRef: ({ pod, title, kubeRef
|
24
|
+
export declare const LocalRef: ({ pod, title, kubeRef, api }: LocalRefProps) => JSX.Element | null;
|
@@ -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>;
|
@@ -2,10 +2,8 @@
|
|
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 "./controls.scss";
|
6
|
-
import React from "react";
|
7
5
|
import type { LogTabViewModel } from "./logs-view-model";
|
8
6
|
export interface LogControlsProps {
|
9
7
|
model: LogTabViewModel;
|
10
8
|
}
|
11
|
-
export declare const LogControls:
|
9
|
+
export declare const LogControls: ({ model }: LogControlsProps) => JSX.Element | null;
|
@@ -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;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { PodLogsQuery } from "../../../../common/k8s-api/endpoints";
|
2
|
+
import type { ResourceDescriptor } from "../../../../common/k8s-api/kube-api";
|
3
|
+
declare const downloadAllLogsInjectable: import("@ogre-tools/injectable").Injectable<(params: ResourceDescriptor, query: PodLogsQuery) => Promise<void>, unknown, void>;
|
4
|
+
export default downloadAllLogsInjectable;
|
@@ -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
|
+
interface DownloadLogsDropdownProps {
|
6
|
+
downloadVisibleLogs: () => void;
|
7
|
+
downloadAllLogs: () => Promise<void> | undefined;
|
8
|
+
}
|
9
|
+
export declare function DownloadLogsDropdown({ downloadAllLogs, downloadVisibleLogs }: DownloadLogsDropdownProps): JSX.Element;
|
10
|
+
export {};
|
@@ -6,10 +6,11 @@ import type { LogTabData } from "./tab-store";
|
|
6
6
|
import type { IComputedValue } from "mobx";
|
7
7
|
import type { TabId } from "../dock/store";
|
8
8
|
import type { SearchStore } from "../../../search-store/search-store";
|
9
|
-
import type { Pod } from "../../../../common/k8s-api/endpoints";
|
9
|
+
import type { Pod, PodLogsQuery } from "../../../../common/k8s-api/endpoints";
|
10
10
|
import type { GetPodById } from "../../+workloads-pods/get-pod-by-id.injectable";
|
11
11
|
import type { GetPodsByOwnerId } from "../../+workloads-pods/get-pods-by-owner-id.injectable";
|
12
12
|
import type { LoadLogs } from "./load-logs.injectable";
|
13
|
+
import type { ResourceDescriptor } from "../../../../common/k8s-api/kube-api";
|
13
14
|
export interface LogTabViewModelDependencies {
|
14
15
|
getLogs: (tabId: TabId) => string[];
|
15
16
|
getLogsWithoutTimestamps: (tabId: TabId) => string[];
|
@@ -23,6 +24,8 @@ export interface LogTabViewModelDependencies {
|
|
23
24
|
getPodById: GetPodById;
|
24
25
|
getPodsByOwnerId: GetPodsByOwnerId;
|
25
26
|
areLogsPresent: (tabId: TabId) => boolean;
|
27
|
+
downloadLogs: (filename: string, logs: string[]) => void;
|
28
|
+
downloadAllLogs: (params: ResourceDescriptor, query: PodLogsQuery) => Promise<void>;
|
26
29
|
searchStore: SearchStore;
|
27
30
|
}
|
28
31
|
export declare class LogTabViewModel {
|
@@ -42,4 +45,6 @@ export declare class LogTabViewModel {
|
|
42
45
|
reloadLogs: () => Promise<void>;
|
43
46
|
renameTab: (title: string) => void;
|
44
47
|
stopLoadingLogs: () => void;
|
48
|
+
downloadLogs: () => void;
|
49
|
+
downloadAllLogs: () => Promise<void> | undefined;
|
45
50
|
}
|
@@ -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 { HTMLAttributes } from "react";
|
6
|
+
import React from "react";
|
7
|
+
interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
|
8
|
+
contentForToggle: React.ReactNode;
|
9
|
+
}
|
10
|
+
export declare function Dropdown(props: DropdownProps): JSX.Element;
|
11
|
+
export {};
|
@@ -2,7 +2,6 @@
|
|
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 "./sidebar-item.scss";
|
6
5
|
import React from "react";
|
7
6
|
import type { HierarchicalSidebarItem } from "./sidebar-items.injectable";
|
8
7
|
export interface SidebarItemProps {
|
@@ -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
|
}
|
@@ -11,8 +11,4 @@ export declare const navigation: import("mobx-observable-history").ObservableHis
|
|
11
11
|
* @deprecated use `di.inject(navigateInjectable)` instead
|
12
12
|
*/
|
13
13
|
export declare const navigate: import("./navigate.injectable").Navigate;
|
14
|
-
/**
|
15
|
-
* @deprecated use `di.inject(matchRouteInjectable)` instead
|
16
|
-
*/
|
17
|
-
export declare const matchRoute: import("./match-route.injectable").MatchRoute;
|
18
14
|
export * from "./page-param";
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import type { match, RouteProps } from "react-router";
|
2
|
-
export declare type MatchRoute = <Params
|
2
|
+
export declare type MatchRoute = <Params extends {
|
3
|
+
[K in keyof Params]?: string;
|
4
|
+
}>(route: string | string[] | RouteProps) => match<Params> | null;
|
3
5
|
declare const matchRouteInjectable: import("@ogre-tools/injectable").Injectable<MatchRoute, unknown, void>;
|
4
6
|
export default matchRouteInjectable;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { IComputedValue } from "mobx";
|
2
|
+
import type { LensThemeType } from "./store";
|
3
|
+
export declare type ActiveThemeType = IComputedValue<LensThemeType>;
|
4
|
+
declare const activeThemeTypeInjectable: import("@ogre-tools/injectable").Injectable<IComputedValue<LensThemeType>, unknown, void>;
|
5
|
+
export default activeThemeTypeInjectable;
|
@@ -2,6 +2,6 @@
|
|
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 {
|
6
|
-
declare const lensDarkTheme:
|
5
|
+
import type { LensTheme } from "./store";
|
6
|
+
declare const lensDarkTheme: LensTheme;
|
7
7
|
export default lensDarkTheme;
|