@k8slens/extensions 5.3.0-git.0f4250d1e6.0 → 5.3.0-git.125a073007.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/catalog/catalog-entity.d.ts +4 -1
- package/dist/src/common/catalog/catalog-run-event.d.ts +30 -0
- package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +9 -1
- package/dist/src/common/catalog-entities/web-link.d.ts +2 -0
- package/dist/src/common/hotbar-store.d.ts +5 -0
- package/dist/src/common/k8s-api/endpoints/crd.api.d.ts +24 -8
- package/dist/src/common/k8s-api/endpoints/nodes.api.d.ts +25 -44
- package/dist/src/common/k8s-api/kube-object.d.ts +4 -0
- package/dist/src/common/kube-helpers.d.ts +9 -14
- package/dist/src/common/routes/index.d.ts +1 -0
- package/dist/src/common/routes/port-forwards.d.ts +25 -0
- package/dist/src/common/user-store/preferences-helpers.d.ts +6 -0
- package/dist/src/common/user-store/user-store.d.ts +2 -0
- package/dist/src/common/utils/iter.d.ts +16 -9
- package/dist/src/extensions/common-api/catalog.d.ts +2 -1
- package/dist/src/extensions/extension-api.js +6215 -6198
- package/dist/src/extensions/renderer-api/catalog.d.ts +6 -4
- package/dist/src/main/cluster.d.ts +0 -1
- package/dist/src/main/helm/helm-chart-manager.d.ts +4 -0
- package/dist/src/main/helm/helm-repo-manager.d.ts +1 -0
- package/dist/src/main/routes/port-forward-route.d.ts +3 -0
- package/dist/src/main/shell-session/node-shell-session.d.ts +2 -0
- package/dist/src/main/utils/update-channel.d.ts +6 -0
- package/dist/src/renderer/api/catalog-entity-registry.d.ts +7 -10
- package/dist/src/renderer/components/+apps-helm-charts/helm-chart-details.d.ts +1 -1
- package/dist/src/renderer/components/+apps-releases/release-details.d.ts +2 -1
- package/dist/src/renderer/components/+catalog/catalog-entity-drawer-menu.d.ts +0 -1
- package/dist/src/renderer/components/+catalog/catalog-entity-item.d.ts +1 -1
- package/dist/src/renderer/components/+catalog/catalog.d.ts +2 -0
- package/dist/src/renderer/components/+catalog/hotbar-toggle-menu-item.d.ts +27 -0
- package/dist/src/renderer/components/+config-maps/config-map-details.d.ts +1 -1
- package/dist/src/renderer/components/+config-pod-disruption-budgets/pod-disruption-budgets-details.d.ts +1 -1
- package/dist/src/renderer/components/+config-resource-quotas/resource-quota-details.d.ts +1 -1
- package/dist/src/renderer/components/+config-secrets/secret-details.d.ts +1 -1
- package/dist/src/renderer/components/+custom-resources/crd-details.d.ts +1 -1
- package/dist/src/renderer/components/+custom-resources/crd-resource-details.d.ts +2 -2
- package/dist/src/renderer/components/+entity-settings/entity-settings.d.ts +1 -2
- package/dist/src/renderer/components/+events/event-details.d.ts +1 -1
- package/dist/src/renderer/components/+events/kube-event-details.d.ts +1 -1
- package/dist/src/renderer/components/+network-endpoints/endpoint-details.d.ts +1 -1
- package/dist/src/renderer/components/+network-ingresses/ingress-details.d.ts +1 -1
- package/dist/src/renderer/components/+network-policies/network-policy-details.d.ts +1 -1
- package/dist/src/renderer/{keyboard-shortcuts → components/+network-port-forwards}/index.d.ts +1 -1
- package/dist/src/renderer/components/+network-port-forwards/port-forward-menu.d.ts +33 -0
- package/dist/src/renderer/components/+network-port-forwards/port-forwards.d.ts +28 -0
- package/dist/src/renderer/components/+network-services/service-details.d.ts +1 -1
- package/dist/src/renderer/components/+network-services/service-port-component.d.ts +6 -0
- package/dist/src/renderer/components/+pod-security-policies/pod-security-policy-details.d.ts +9 -8
- package/dist/src/renderer/components/+storage-classes/storage-class-details.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-cronjobs/cronjob-details.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-pods/pod-container-port.d.ts +6 -0
- package/dist/src/renderer/components/+workloads-pods/pod-details-container.d.ts +1 -0
- package/dist/src/{common/custom-errors.d.ts → renderer/components/__tests__/nodes.api.test.d.ts} +1 -3
- package/dist/src/renderer/components/dock/dock.d.ts +4 -1
- package/dist/src/renderer/components/dock/dock.store.d.ts +1 -1
- package/dist/src/renderer/components/dock/log-tab.store.d.ts +1 -1
- package/dist/src/renderer/components/hotbar/hotbar-entity-icon.d.ts +0 -2
- package/dist/src/renderer/components/kube-object-meta/kube-object-meta.d.ts +1 -1
- package/dist/src/renderer/components/layout/setting-layout.d.ts +0 -1
- package/dist/src/renderer/components/layout/sidebar.d.ts +3 -1
- package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
- package/dist/src/renderer/navigation/history.d.ts +2 -2
- package/dist/src/renderer/port-forward/index.d.ts +23 -0
- package/dist/src/renderer/port-forward/port-forward-dialog.d.ts +46 -0
- package/dist/src/renderer/port-forward/port-forward-item.d.ts +46 -0
- package/dist/src/renderer/port-forward/port-forward.store.d.ts +39 -0
- package/package.json +1 -1
|
@@ -32,11 +32,13 @@ export declare class CatalogEntityRegistry {
|
|
|
32
32
|
getItemsForApiKind<T extends CatalogEntity>(apiVersion: string, kind: string): T[];
|
|
33
33
|
getItemsForCategory<T extends CatalogEntity>(category: CatalogCategory): T[];
|
|
34
34
|
/**
|
|
35
|
-
* Add a onBeforeRun hook to a catalog
|
|
36
|
-
*
|
|
37
|
-
* @param onBeforeRun The function
|
|
35
|
+
* Add a onBeforeRun hook to a catalog entities. If `onBeforeRun` was previously
|
|
36
|
+
* added then it will not be added again.
|
|
37
|
+
* @param onBeforeRun The function to be called with a `CatalogRunEvent`
|
|
38
|
+
* event target will be the catalog entity. onBeforeRun hook can call event.preventDefault()
|
|
39
|
+
* to stop run sequence
|
|
38
40
|
* @returns A function to remove that hook
|
|
39
41
|
*/
|
|
40
|
-
addOnBeforeRun(
|
|
42
|
+
addOnBeforeRun(onBeforeRun: CatalogEntityOnBeforeRun): Disposer;
|
|
41
43
|
}
|
|
42
44
|
export declare const catalogEntities: CatalogEntityRegistry;
|
|
@@ -293,7 +293,6 @@ export declare class Cluster implements ClusterModel, ClusterState {
|
|
|
293
293
|
accessible: boolean;
|
|
294
294
|
disconnected: boolean;
|
|
295
295
|
};
|
|
296
|
-
protected getAllowedNamespacesErrorCount: number;
|
|
297
296
|
protected getAllowedNamespaces(): Promise<string[]>;
|
|
298
297
|
protected getAllowedResources(): Promise<KubeResource[]>;
|
|
299
298
|
isAllowedResource(kind: string): boolean;
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import type { HelmRepo } from "./helm-repo-manager";
|
|
22
22
|
import type { RepoHelmChartList } from "../../common/k8s-api/endpoints/helm-charts.api";
|
|
23
|
+
export interface HelmCacheFile {
|
|
24
|
+
apiVersion: string;
|
|
25
|
+
entries: RepoHelmChartList;
|
|
26
|
+
}
|
|
23
27
|
export declare class HelmChartManager {
|
|
24
28
|
#private;
|
|
25
29
|
protected repo: HelmRepo;
|
|
@@ -45,6 +45,7 @@ export declare class HelmRepoManager extends Singleton {
|
|
|
45
45
|
private init;
|
|
46
46
|
protected static parseHelmEnv(): Promise<HelmEnv>;
|
|
47
47
|
repo(name: string): Promise<HelmRepo>;
|
|
48
|
+
private readConfig;
|
|
48
49
|
repositories(): Promise<HelmRepo[]>;
|
|
49
50
|
static update(): Promise<any>;
|
|
50
51
|
static addRepo({ name, url }: HelmRepo): Promise<string>;
|
|
@@ -21,4 +21,7 @@
|
|
|
21
21
|
import type { LensApiRequest } from "../router";
|
|
22
22
|
export declare class PortForwardRoute {
|
|
23
23
|
static routePortForward(request: LensApiRequest): Promise<void>;
|
|
24
|
+
static routeCurrentPortForward(request: LensApiRequest): Promise<void>;
|
|
25
|
+
static routeAllPortForwards(request: LensApiRequest): Promise<void>;
|
|
26
|
+
static routeCurrentPortForwardStop(request: LensApiRequest): Promise<void>;
|
|
24
27
|
}
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
/// <reference types="node" />
|
|
22
|
+
/// <reference types="node/http" />
|
|
23
|
+
/// <reference types="got/dist/source/core/utils/timed-out" />
|
|
22
24
|
import type * as WebSocket from "ws";
|
|
23
25
|
import * as k8s from "@kubernetes/client-node";
|
|
24
26
|
import type { KubeConfig } from "@kubernetes/client-node";
|
|
@@ -18,4 +18,10 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
+
/**
|
|
22
|
+
* Compute the next update channel from the current updating channel
|
|
23
|
+
* @param defaultChannel The default (initial) channel to check
|
|
24
|
+
* @param channel The current channel that did not have a new version associated with it
|
|
25
|
+
* @returns The channel name of the next release version
|
|
26
|
+
*/
|
|
21
27
|
export declare function nextUpdateChannel(defaultChannel: string, channel: string): string;
|
|
@@ -18,20 +18,19 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
import { ObservableSet } from "mobx";
|
|
22
21
|
import { CatalogCategory, CatalogEntity, CatalogEntityData, CatalogCategoryRegistry, CatalogEntityKindData } from "../../common/catalog";
|
|
23
22
|
import "../../common/catalog-entities";
|
|
24
23
|
import type { Cluster } from "../../main/cluster";
|
|
25
24
|
import { Disposer } from "../utils";
|
|
25
|
+
import { CatalogRunEvent } from "../../common/catalog/catalog-run-event";
|
|
26
26
|
export declare type EntityFilter = (entity: CatalogEntity) => any;
|
|
27
|
-
export declare type CatalogEntityOnBeforeRun = (
|
|
28
|
-
declare type CatalogEntityUid = CatalogEntity["metadata"]["uid"];
|
|
27
|
+
export declare type CatalogEntityOnBeforeRun = (event: CatalogRunEvent) => void | Promise<void>;
|
|
29
28
|
export declare class CatalogEntityRegistry {
|
|
30
29
|
private categoryRegistry;
|
|
31
30
|
protected activeEntityId: string | undefined;
|
|
32
31
|
protected _entities: import("mobx").ObservableMap<string, CatalogEntity<import("../../common/catalog").CatalogEntityMetadata, import("../../common/catalog").CatalogEntityStatus, import("../../common/catalog").CatalogEntitySpec>>;
|
|
33
|
-
protected filters: ObservableSet<EntityFilter>;
|
|
34
|
-
protected onBeforeRunHooks: import("mobx").
|
|
32
|
+
protected filters: import("mobx").ObservableSet<EntityFilter>;
|
|
33
|
+
protected onBeforeRunHooks: import("mobx").ObservableSet<CatalogEntityOnBeforeRun>;
|
|
35
34
|
/**
|
|
36
35
|
* Buffer for keeping entities that don't yet have CatalogCategory synced
|
|
37
36
|
*/
|
|
@@ -61,14 +60,13 @@ export declare class CatalogEntityRegistry {
|
|
|
61
60
|
*/
|
|
62
61
|
addCatalogFilter(fn: EntityFilter): Disposer;
|
|
63
62
|
/**
|
|
64
|
-
* Add a onBeforeRun hook
|
|
65
|
-
* @param catalogEntityUid The uid of the catalog entity
|
|
63
|
+
* Add a onBeforeRun hook. If `onBeforeRun` was previously added then it will not be added again
|
|
66
64
|
* @param onBeforeRun The function that should return a boolean if the onRun of catalog entity should be triggered.
|
|
67
65
|
* @returns A function to remove that hook
|
|
68
66
|
*/
|
|
69
|
-
addOnBeforeRun(
|
|
67
|
+
addOnBeforeRun(onBeforeRun: CatalogEntityOnBeforeRun): Disposer;
|
|
70
68
|
/**
|
|
71
|
-
* Runs all the registered `onBeforeRun` hooks, short circuiting on the first
|
|
69
|
+
* Runs all the registered `onBeforeRun` hooks, short circuiting on the first event that's preventDefaulted
|
|
72
70
|
* @param entity The entity to run the hooks on
|
|
73
71
|
* @returns Whether the entities `onRun` method should be executed
|
|
74
72
|
*/
|
|
@@ -81,4 +79,3 @@ export declare class CatalogEntityRegistry {
|
|
|
81
79
|
}
|
|
82
80
|
export declare const catalogEntityRegistry: CatalogEntityRegistry;
|
|
83
81
|
export declare function getActiveClusterEntity(): Cluster | undefined;
|
|
84
|
-
export {};
|
|
@@ -34,7 +34,7 @@ export declare class HelmChartDetails extends Component<Props> {
|
|
|
34
34
|
private abortController?;
|
|
35
35
|
constructor(props: Props);
|
|
36
36
|
componentWillUnmount(): void;
|
|
37
|
-
|
|
37
|
+
componentDidMount(): void;
|
|
38
38
|
onVersionChange({ value: chart }: SelectOption<HelmChart>): Promise<void>;
|
|
39
39
|
install(): void;
|
|
40
40
|
renderIntroduction(): JSX.Element;
|
|
@@ -27,12 +27,13 @@ interface Props {
|
|
|
27
27
|
hideDetails(): void;
|
|
28
28
|
}
|
|
29
29
|
export declare class ReleaseDetails extends Component<Props> {
|
|
30
|
-
details: IReleaseDetails;
|
|
30
|
+
details: IReleaseDetails | null;
|
|
31
31
|
values: string;
|
|
32
32
|
valuesLoading: boolean;
|
|
33
33
|
showOnlyUserSuppliedValues: boolean;
|
|
34
34
|
saving: boolean;
|
|
35
35
|
releaseSecret: Secret;
|
|
36
|
+
error?: string;
|
|
36
37
|
componentDidMount(): void;
|
|
37
38
|
constructor(props: Props);
|
|
38
39
|
loadDetails(): Promise<void>;
|
|
@@ -30,7 +30,6 @@ export declare class CatalogEntityDrawerMenu<T extends CatalogEntity> extends Re
|
|
|
30
30
|
constructor(props: CatalogEntityDrawerMenuProps<T>);
|
|
31
31
|
componentDidMount(): void;
|
|
32
32
|
onMenuItemClick(menuItem: CatalogEntityContextMenu): void;
|
|
33
|
-
addToHotbar(entity: CatalogEntity): void;
|
|
34
33
|
getMenuItems(entity: T): React.ReactChild[];
|
|
35
34
|
render(): JSX.Element;
|
|
36
35
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
2
|
+
import { CatalogEntity } from "../../api/catalog-entity";
|
|
3
3
|
import type { ItemObject } from "../../../common/item.store";
|
|
4
4
|
import type { CatalogEntityRegistry } from "../../api/catalog-entity-registry";
|
|
5
5
|
export declare class CatalogEntityItem<T extends CatalogEntity> implements ItemObject {
|
|
@@ -40,12 +40,14 @@ export declare class Catalog extends React.Component<Props> {
|
|
|
40
40
|
get routeActiveTab(): string;
|
|
41
41
|
componentDidMount(): Promise<void>;
|
|
42
42
|
addToHotbar(item: CatalogEntityItem<CatalogEntity>): void;
|
|
43
|
+
removeFromHotbar(item: CatalogEntityItem<CatalogEntity>): void;
|
|
43
44
|
onDetails: (item: CatalogEntityItem<CatalogEntity>) => void;
|
|
44
45
|
onMenuItemClick(menuItem: CatalogEntityContextMenu): void;
|
|
45
46
|
get categories(): import("../../api/catalog-entity").CatalogCategory[];
|
|
46
47
|
onTabChange: (tabId: string | null) => void;
|
|
47
48
|
renderNavigation(): JSX.Element;
|
|
48
49
|
renderItemMenu: (item: CatalogEntityItem<CatalogEntity>) => JSX.Element;
|
|
50
|
+
renderName(item: CatalogEntityItem<CatalogEntity>): JSX.Element;
|
|
49
51
|
renderIcon(item: CatalogEntityItem<CatalogEntity>): JSX.Element;
|
|
50
52
|
renderList(): JSX.Element;
|
|
51
53
|
render(): JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import { ReactNode } from "react";
|
|
22
|
+
import type { CatalogEntity } from "../../api/catalog-entity";
|
|
23
|
+
export declare function HotbarToggleMenuItem(props: {
|
|
24
|
+
entity: CatalogEntity;
|
|
25
|
+
addContent: ReactNode;
|
|
26
|
+
removeContent: ReactNode;
|
|
27
|
+
}): JSX.Element;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import "./config-map-details.scss";
|
|
22
22
|
import React from "react";
|
|
23
23
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
|
24
|
-
import
|
|
24
|
+
import { ConfigMap } from "../../../common/k8s-api/endpoints";
|
|
25
25
|
interface Props extends KubeObjectDetailsProps<ConfigMap> {
|
|
26
26
|
}
|
|
27
27
|
export declare class ConfigMapDetails extends React.Component<Props> {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import "./pod-disruption-budgets-details.scss";
|
|
22
22
|
import React from "react";
|
|
23
23
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
|
24
|
-
import
|
|
24
|
+
import { PodDisruptionBudget } from "../../../common/k8s-api/endpoints";
|
|
25
25
|
interface Props extends KubeObjectDetailsProps<PodDisruptionBudget> {
|
|
26
26
|
}
|
|
27
27
|
export declare class PodDisruptionBudgetDetails extends React.Component<Props> {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import "./resource-quota-details.scss";
|
|
22
22
|
import React from "react";
|
|
23
23
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
|
24
|
-
import
|
|
24
|
+
import { ResourceQuota } from "../../../common/k8s-api/endpoints/resource-quota.api";
|
|
25
25
|
interface Props extends KubeObjectDetailsProps<ResourceQuota> {
|
|
26
26
|
}
|
|
27
27
|
export declare class ResourceQuotaDetails extends React.Component<Props> {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import "./secret-details.scss";
|
|
22
22
|
import React from "react";
|
|
23
23
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
|
24
|
-
import
|
|
24
|
+
import { Secret } from "../../../common/k8s-api/endpoints";
|
|
25
25
|
interface Props extends KubeObjectDetailsProps<Secret> {
|
|
26
26
|
}
|
|
27
27
|
export declare class SecretDetails extends React.Component<Props> {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import "./crd-details.scss";
|
|
22
22
|
import React from "react";
|
|
23
|
-
import
|
|
23
|
+
import { CustomResourceDefinition } from "../../../common/k8s-api/endpoints/crd.api";
|
|
24
24
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
|
25
25
|
interface Props extends KubeObjectDetailsProps<CustomResourceDefinition> {
|
|
26
26
|
}
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
import "./crd-resource-details.scss";
|
|
22
22
|
import React from "react";
|
|
23
23
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
|
24
|
-
import
|
|
25
|
-
import
|
|
24
|
+
import { AdditionalPrinterColumnsV1, CustomResourceDefinition } from "../../../common/k8s-api/endpoints/crd.api";
|
|
25
|
+
import { KubeObject, KubeObjectMetadata, KubeObjectStatus } from "../../../common/k8s-api/kube-object";
|
|
26
26
|
interface Props extends KubeObjectDetailsProps<KubeObject> {
|
|
27
27
|
crd: CustomResourceDefinition;
|
|
28
28
|
}
|
|
@@ -30,10 +30,9 @@ export declare class EntitySettings extends React.Component<Props> {
|
|
|
30
30
|
get entityId(): string;
|
|
31
31
|
get entity(): CatalogEntity;
|
|
32
32
|
get menuItems(): import("../../../extensions/registries").RegisteredEntitySetting[];
|
|
33
|
-
|
|
33
|
+
get activeSetting(): import("../../../extensions/registries").RegisteredEntitySetting;
|
|
34
34
|
onTabChange: (tabId: string) => void;
|
|
35
35
|
renderNavigation(): JSX.Element;
|
|
36
|
-
ensureActiveTab(): void;
|
|
37
36
|
render(): JSX.Element;
|
|
38
37
|
}
|
|
39
38
|
export {};
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import "./event-details.scss";
|
|
22
22
|
import React from "react";
|
|
23
23
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
|
24
|
-
import
|
|
24
|
+
import { KubeEvent } from "../../../common/k8s-api/endpoints/events.api";
|
|
25
25
|
interface Props extends KubeObjectDetailsProps<KubeEvent> {
|
|
26
26
|
}
|
|
27
27
|
export declare class EventDetails extends React.Component<Props> {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import "./kube-event-details.scss";
|
|
22
22
|
import React from "react";
|
|
23
|
-
import
|
|
23
|
+
import { KubeObject } from "../../../common/k8s-api/kube-object";
|
|
24
24
|
export interface KubeEventDetailsProps {
|
|
25
25
|
object: KubeObject;
|
|
26
26
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import "./endpoint-details.scss";
|
|
22
22
|
import React from "react";
|
|
23
23
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
|
24
|
-
import
|
|
24
|
+
import { Endpoint } from "../../../common/k8s-api/endpoints";
|
|
25
25
|
interface Props extends KubeObjectDetailsProps<Endpoint> {
|
|
26
26
|
}
|
|
27
27
|
export declare class EndpointDetails extends React.Component<Props> {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import "./ingress-details.scss";
|
|
22
22
|
import React from "react";
|
|
23
|
-
import
|
|
23
|
+
import { ILoadBalancerIngress, Ingress } from "../../../common/k8s-api/endpoints";
|
|
24
24
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
|
25
25
|
import { IIngressMetrics } from "../../../common/k8s-api/endpoints/ingress.api";
|
|
26
26
|
interface Props extends KubeObjectDetailsProps<Ingress> {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import "./network-policy-details.scss";
|
|
22
22
|
import React from "react";
|
|
23
|
-
import
|
|
23
|
+
import { IPolicyEgress, IPolicyIngress, NetworkPolicy } from "../../../common/k8s-api/endpoints/network-policy.api";
|
|
24
24
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
|
25
25
|
interface Props extends KubeObjectDetailsProps<NetworkPolicy> {
|
|
26
26
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import React from "react";
|
|
22
|
+
import { PortForwardItem } from "../../port-forward";
|
|
23
|
+
import { MenuActionsProps } from "../menu/menu-actions";
|
|
24
|
+
interface Props extends MenuActionsProps {
|
|
25
|
+
portForward: PortForwardItem;
|
|
26
|
+
hideDetails?(): void;
|
|
27
|
+
}
|
|
28
|
+
export declare class PortForwardMenu extends React.Component<Props> {
|
|
29
|
+
remove(): Promise<void>;
|
|
30
|
+
renderContent(): JSX.Element;
|
|
31
|
+
render(): JSX.Element;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import "./port-forwards.scss";
|
|
22
|
+
import React from "react";
|
|
23
|
+
import { PortForwardItem } from "../../port-forward";
|
|
24
|
+
export declare class PortForwards extends React.Component {
|
|
25
|
+
componentDidMount(): void;
|
|
26
|
+
renderRemoveDialogMessage(selectedItems: PortForwardItem[]): JSX.Element;
|
|
27
|
+
render(): JSX.Element;
|
|
28
|
+
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import "./service-details.scss";
|
|
22
22
|
import React from "react";
|
|
23
23
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
|
24
|
-
import
|
|
24
|
+
import { Service } from "../../../common/k8s-api/endpoints";
|
|
25
25
|
interface Props extends KubeObjectDetailsProps<Service> {
|
|
26
26
|
}
|
|
27
27
|
export declare class ServiceDetails extends React.Component<Props> {
|
|
@@ -27,8 +27,14 @@ interface Props {
|
|
|
27
27
|
}
|
|
28
28
|
export declare class ServicePortComponent extends React.Component<Props> {
|
|
29
29
|
waiting: boolean;
|
|
30
|
+
forwardPort: number;
|
|
31
|
+
isPortForwarded: boolean;
|
|
30
32
|
constructor(props: Props);
|
|
33
|
+
componentDidMount(): void;
|
|
34
|
+
init(): void;
|
|
35
|
+
checkExistingPortForwarding(): Promise<void>;
|
|
31
36
|
portForward(): Promise<void>;
|
|
37
|
+
stopPortForward(): Promise<void>;
|
|
32
38
|
render(): JSX.Element;
|
|
33
39
|
}
|
|
34
40
|
export {};
|
package/dist/src/renderer/components/+pod-security-policies/pod-security-policy-details.d.ts
CHANGED
|
@@ -21,17 +21,18 @@
|
|
|
21
21
|
import "./pod-security-policy-details.scss";
|
|
22
22
|
import React from "react";
|
|
23
23
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
|
24
|
-
import
|
|
24
|
+
import { PodSecurityPolicy } from "../../../common/k8s-api/endpoints";
|
|
25
25
|
interface Props extends KubeObjectDetailsProps<PodSecurityPolicy> {
|
|
26
26
|
}
|
|
27
|
+
interface RuleGroup {
|
|
28
|
+
rule: string;
|
|
29
|
+
ranges?: {
|
|
30
|
+
max: number;
|
|
31
|
+
min: number;
|
|
32
|
+
}[];
|
|
33
|
+
}
|
|
27
34
|
export declare class PodSecurityPolicyDetails extends React.Component<Props> {
|
|
28
|
-
renderRuleGroup(title: React.ReactNode, group:
|
|
29
|
-
rule: string;
|
|
30
|
-
ranges?: {
|
|
31
|
-
max: number;
|
|
32
|
-
min: number;
|
|
33
|
-
}[];
|
|
34
|
-
}): JSX.Element;
|
|
35
|
+
renderRuleGroup(title: React.ReactNode, group: RuleGroup): JSX.Element;
|
|
35
36
|
render(): JSX.Element;
|
|
36
37
|
}
|
|
37
38
|
export {};
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import "./storage-class-details.scss";
|
|
22
22
|
import React from "react";
|
|
23
23
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
|
24
|
-
import
|
|
24
|
+
import { StorageClass } from "../../../common/k8s-api/endpoints";
|
|
25
25
|
interface Props extends KubeObjectDetailsProps<StorageClass> {
|
|
26
26
|
}
|
|
27
27
|
export declare class StorageClassDetails extends React.Component<Props> {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import "./cronjob-details.scss";
|
|
22
22
|
import React from "react";
|
|
23
23
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
|
24
|
-
import
|
|
24
|
+
import { CronJob } from "../../../common/k8s-api/endpoints";
|
|
25
25
|
interface Props extends KubeObjectDetailsProps<CronJob> {
|
|
26
26
|
}
|
|
27
27
|
export declare class CronJobDetails extends React.Component<Props> {
|
|
@@ -31,8 +31,14 @@ interface Props {
|
|
|
31
31
|
}
|
|
32
32
|
export declare class PodContainerPort extends React.Component<Props> {
|
|
33
33
|
waiting: boolean;
|
|
34
|
+
forwardPort: number;
|
|
35
|
+
isPortForwarded: boolean;
|
|
34
36
|
constructor(props: Props);
|
|
37
|
+
componentDidMount(): void;
|
|
38
|
+
init(): void;
|
|
39
|
+
checkExistingPortForwarding(): Promise<void>;
|
|
35
40
|
portForward(): Promise<void>;
|
|
41
|
+
stopPortForward(): Promise<void>;
|
|
36
42
|
render(): JSX.Element;
|
|
37
43
|
}
|
|
38
44
|
export {};
|
|
@@ -30,6 +30,7 @@ interface Props {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
export declare class PodDetailsContainer extends React.Component<Props> {
|
|
33
|
+
componentDidMount(): void;
|
|
33
34
|
renderStatus(state: string, status: IPodContainerStatus): JSX.Element;
|
|
34
35
|
renderLastState(lastState: string, status: IPodContainerStatus): JSX.Element;
|
|
35
36
|
render(): JSX.Element;
|
package/dist/src/{common/custom-errors.d.ts → renderer/components/__tests__/nodes.api.test.d.ts}
RENAMED
|
@@ -18,6 +18,4 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
22
|
-
constructor(execPath: string, isAbsolute: boolean);
|
|
23
|
-
}
|
|
21
|
+
export {};
|
|
@@ -25,7 +25,10 @@ interface Props {
|
|
|
25
25
|
className?: string;
|
|
26
26
|
}
|
|
27
27
|
export declare class Dock extends React.Component<Props> {
|
|
28
|
-
|
|
28
|
+
private element;
|
|
29
|
+
componentDidMount(): void;
|
|
30
|
+
componentWillUnmount(): void;
|
|
31
|
+
onKeyDown: (evt: KeyboardEvent) => void;
|
|
29
32
|
onChangeTab: (tab: DockTab) => void;
|
|
30
33
|
renderTab(tab: DockTab): JSX.Element;
|
|
31
34
|
renderTabContent(): JSX.Element;
|
|
@@ -105,7 +105,7 @@ export declare class DockStore implements DockStorageState {
|
|
|
105
105
|
getTabIndex(tabId: TabId): number;
|
|
106
106
|
protected getNewTabNumber(kind: TabKind): number;
|
|
107
107
|
createTab(rawTabDesc: DockTabCreate, addNumber?: boolean): DockTab;
|
|
108
|
-
closeTab(tabId: TabId):
|
|
108
|
+
closeTab(tabId: TabId): void;
|
|
109
109
|
closeTabs(tabs: DockTab[]): void;
|
|
110
110
|
closeAllTabs(): void;
|
|
111
111
|
closeOtherTabs(tabId: TabId): void;
|
|
@@ -37,7 +37,7 @@ interface WorkloadLogsTabData {
|
|
|
37
37
|
}
|
|
38
38
|
export declare class LogTabStore extends DockTabStore<LogTabData> {
|
|
39
39
|
constructor();
|
|
40
|
-
createPodTab({ selectedPod, selectedContainer }: PodLogsTabData):
|
|
40
|
+
createPodTab({ selectedPod, selectedContainer }: PodLogsTabData): string;
|
|
41
41
|
createWorkloadTab({ workload }: WorkloadLogsTabData): void;
|
|
42
42
|
renameTab(tabId: string): void;
|
|
43
43
|
private createDockTab;
|
|
@@ -33,11 +33,9 @@ interface Props extends DOMAttributes<HTMLElement> {
|
|
|
33
33
|
export declare class HotbarEntityIcon extends React.Component<Props> {
|
|
34
34
|
private contextMenu;
|
|
35
35
|
constructor(props: Props);
|
|
36
|
-
componentDidMount(): void;
|
|
37
36
|
get kindIcon(): JSX.Element;
|
|
38
37
|
get ledIcon(): JSX.Element;
|
|
39
38
|
isActive(item: CatalogEntity): boolean;
|
|
40
|
-
isPersisted(entity: CatalogEntity): boolean;
|
|
41
39
|
render(): JSX.Element;
|
|
42
40
|
}
|
|
43
41
|
export {};
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import React from "react";
|
|
22
|
-
import
|
|
22
|
+
import { KubeMetaField, KubeObject } from "../../../common/k8s-api/kube-object";
|
|
23
23
|
export interface KubeObjectMetaProps {
|
|
24
24
|
object: KubeObject;
|
|
25
25
|
hideFields?: KubeMetaField[];
|
|
@@ -34,7 +34,6 @@ export interface SettingLayoutProps extends React.DOMAttributes<any> {
|
|
|
34
34
|
*/
|
|
35
35
|
export declare class SettingLayout extends React.Component<SettingLayoutProps> {
|
|
36
36
|
static defaultProps: object;
|
|
37
|
-
back(evt?: React.MouseEvent | KeyboardEvent): void;
|
|
38
37
|
componentDidMount(): Promise<void>;
|
|
39
38
|
componentWillUnmount(): void;
|
|
40
39
|
onEscapeKey: (evt: KeyboardEvent) => void;
|
|
@@ -26,13 +26,15 @@ interface Props {
|
|
|
26
26
|
}
|
|
27
27
|
export declare class Sidebar extends React.Component<Props> {
|
|
28
28
|
static displayName: string;
|
|
29
|
+
private contextMenu;
|
|
30
|
+
constructor(props: Props);
|
|
29
31
|
componentDidMount(): Promise<void>;
|
|
30
32
|
renderCustomResources(): JSX.Element | JSX.Element[];
|
|
31
33
|
renderTreeFromTabRoutes(tabRoutes?: TabLayoutRoute[]): React.ReactNode;
|
|
32
34
|
getTabLayoutRoutes(menu: ClusterPageMenuRegistration): TabLayoutRoute[];
|
|
33
35
|
renderRegisteredMenus(): JSX.Element[];
|
|
34
36
|
renderCluster(): JSX.Element;
|
|
35
|
-
get clusterEntity(): import("
|
|
37
|
+
get clusterEntity(): import("../../../common/catalog").CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>;
|
|
36
38
|
render(): JSX.Element;
|
|
37
39
|
}
|
|
38
40
|
export {};
|