@k8slens/extensions 6.0.1-git.af4b74d9bd.0 → 6.0.1-git.b421e254db.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/cluster/cluster.d.ts +2 -0
- package/dist/src/common/cluster-store/cluster-store.global-override-for-injectable.d.ts +6 -0
- package/dist/src/common/fs/stat/stat.global-override-for-injectable.d.ts +5 -0
- package/dist/src/common/fs/stat/stat.injectable.d.ts +2 -0
- package/dist/src/common/fs/validate-directory.injectable.d.ts +4 -0
- package/dist/src/common/fs/watch/watch.global-override-for-injectable.d.ts +5 -0
- package/dist/src/common/fs/watch/watch.injectable.d.ts +4 -0
- package/dist/src/common/ipc/broadcast-message.injectable.d.ts +2 -2
- package/dist/src/common/k8s-api/endpoints/horizontal-pod-autoscaler.api.d.ts +42 -17
- package/dist/src/common/k8s-api/endpoints/node.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/pod.api.d.ts +1 -0
- package/dist/src/common/k8s-api/kube-api.d.ts +1 -1
- package/dist/src/common/k8s-api/kube-object.store.d.ts +1 -1
- package/dist/src/common/protocol-handler/router.d.ts +2 -0
- package/dist/src/common/test-utils/get-global-override.d.ts +4 -0
- package/dist/src/{behaviours/add-cluster/navigation-using-application-menu.test.d.ts → common/utils/__tests__/union-env-path.test.d.ts} +0 -0
- package/dist/src/common/utils/abort-controller.d.ts +5 -1
- package/dist/src/common/utils/convertCpu.d.ts +1 -1
- package/dist/src/common/utils/delay.d.ts +1 -1
- package/dist/src/common/utils/index.d.ts +0 -1
- package/dist/src/common/utils/open-link-in-browser.global-override-for-injectable.d.ts +9 -0
- package/dist/src/common/utils/open-link-in-browser.injectable.d.ts +3 -0
- package/dist/src/common/utils/tuple.d.ts +3 -2
- package/dist/src/common/utils/union-env-path.d.ts +12 -0
- package/dist/src/common/vars/package-json.injectable.d.ts +9 -0
- package/dist/src/extensions/common-api/utils.d.ts +6 -1
- package/dist/src/extensions/extension-api.js +1950 -354
- package/dist/src/extensions/extension-discovery/extension-discovery.d.ts +8 -0
- package/dist/src/{behaviours/extensions → features/add-cluster}/navigation-using-application-menu.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/application-update/analytics-for-installing-update.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/application-update/downgrading-version-update.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/application-update/force-user-to-update-when-too-long-time-since-update-was-downloaded.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/application-update/installing-update-using-topbar-button.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/application-update/installing-update-using-tray.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/application-update/installing-update.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/application-update/periodical-checking-of-updates.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/application-update/selection-of-update-stability.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/extension-api/disable-cluster-pages-when-cluster-is-not-relevant.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/extension-api/disable-sidebar-items-when-cluster-is-not-relevant.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/extension-api/reactively-disable-cluster-pages.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/kube-object-details/extension-api/disable-kube-object-detail-items-when-cluster-is-not-relevant.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/kube-object-details/extension-api/reactively-hide-kube-object-detail-item.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/kube-object-menu/extension-api/disable-kube-object-menu-items-when-cluster-is-not-relevant.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/kube-object-menu/extension-api/reactively-hide-kube-object-menu-item.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/kube-object-status-icon/extension-api/disable-kube-object-statuses-when-cluster-is-not-relevant.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/kube-object-status-icon/extension-api/reactively-hide-kube-object-status.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/kube-object-status-icon/show-status-for-a-kube-object.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/namespaces/edit-namespace-from-new-tab.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/namespaces/edit-namespace-from-previously-opened-tab.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/order-of-sidebar-items.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/sidebar-and-tab-navigation-for-core.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/sidebar-and-tab-navigation-for-extensions.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/visibility-of-sidebar-items.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/workloads/overview/extension-api/disable-workloads-overview-details-when-cluster-is-not-relevant.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/workloads/overview/extension-api/order-of-workload-overview-details.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/workloads/overview/extension-api/reactively-hide-workloads-overview-details-item.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/command-pallet/keyboard-shortcuts.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/extension-special-characters-in-page-registrations.test.d.ts +0 -0
- package/dist/src/{behaviours/preferences → features/extensions}/navigation-using-application-menu.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/helm-charts/add-custom-helm-repository-in-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/helm-charts/add-helm-repository-from-list-in-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/helm-charts/installing-chart/installing-helm-chart-from-new-tab.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/helm-charts/installing-chart/installing-helm-chart-from-previously-opened-tab.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/helm-charts/installing-chart/opening-dock-tab-for-installing-helm-chart.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/helm-charts/listing-active-helm-repositories-in-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/helm-charts/remove-helm-repository-from-list-of-active-repository-in-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/helm-releases/showing-details-for-helm-release.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/navigate-to-extension-page.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/navigating-between-routes.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/closing-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/extension-adding-preference-tabs.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/navigation-to-application-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/navigation-to-editor-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/navigation-to-extension-specific-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/navigation-to-kubernetes-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/navigation-to-proxy-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/navigation-to-telemetry-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/navigation-to-terminal-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours/welcome → features/preferences}/navigation-using-application-menu.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/navigation-using-tray.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/quitting-and-restarting-the-app/opening-application-window-using-tray.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/quitting-and-restarting-the-app/quitting-the-app-using-application-menu.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/resolve-system-proxy/resolve-system-proxy.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/routes/extension-api/reactively-disable-global-pages.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/status-bar/status-bar-items-originating-from-extensions.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/tray/clicking-tray-menu-item-originating-from-extension.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/tray/extension-adding-tray-items.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/tray/multiple-separators-originating-from-extension.test.d.ts +0 -0
- package/dist/src/features/welcome/navigation-using-application-menu.test.d.ts +5 -0
- package/dist/src/main/__test__/cluster.test.d.ts +0 -4
- package/dist/src/main/helm/helm-chart-manager-cache.injectable.d.ts +7 -0
- package/dist/src/main/helm/helm-chart-manager.d.ts +9 -3
- package/dist/src/main/helm/helm-chart-manager.injectable.d.ts +4 -0
- package/dist/src/main/kube-auth-proxy/kube-auth-proxy.d.ts +3 -1
- package/dist/src/main/kube-auth-proxy/wait-until-port-is-used/wait-until-port-is-used.global-override-for-injectable.d.ts +5 -0
- package/dist/src/main/kube-auth-proxy/wait-until-port-is-used/wait-until-port-is-used.injectable.d.ts +3 -0
- package/dist/src/main/menu/build-version.global-override-for-injectable.d.ts +9 -0
- package/dist/src/main/menu/build-version.injectable.d.ts +2 -0
- package/dist/src/main/menu/menu.d.ts +3 -1
- package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.d.ts +2 -0
- package/dist/src/main/start-main-application/lens-window/application-window/application-window-injection-token.d.ts +2 -0
- package/dist/src/main/start-main-application/lens-window/application-window/create-application-window.injectable.d.ts +2 -0
- package/dist/src/main/start-main-application/lens-window/application-window/create-electron-window.global-override-for-injectable.d.ts +5 -0
- package/dist/src/main/start-main-application/lens-window/application-window/create-first-application-window.injectable.d.ts +2 -0
- package/dist/src/main/start-main-application/lens-window/application-window/create-lens-window.injectable.d.ts +18 -1
- package/dist/src/main/start-main-application/lens-window/application-window/get-current-application-window.injectable.d.ts +2 -0
- package/dist/src/main/start-main-application/lens-window/application-window/send-to-channel-in-electron-browser-window.injectable.d.ts +2 -2
- package/dist/src/main/start-main-application/lens-window/get-visible-windows.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/lens-window/reload-current-application-window.injectable.d.ts +2 -0
- package/dist/src/main/start-main-application/lens-window/splash-window/splash-window.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/start-main-application.injectable.d.ts +1 -1
- package/dist/src/main/tray/tray-menu-registration.d.ts +1 -1
- package/dist/src/main/utils/channel/ipc-main/ipc-main.global-override-for-injectable.d.ts +5 -0
- package/dist/src/main/utils/shell-env.d.ts +1 -1
- package/dist/src/renderer/api/catalog/entity/registry.d.ts +2 -0
- package/dist/src/renderer/components/cluster-settings/components/cluster-local-terminal-settings.d.ts +2 -1
- package/dist/src/renderer/components/dock/create-resource/view.d.ts +1 -2
- package/dist/src/renderer/components/dock/edit-resource/view.d.ts +1 -2
- package/dist/src/renderer/components/dock/install-chart/view.d.ts +3 -4
- package/dist/src/renderer/components/dock/terminal/terminal.d.ts +3 -1
- package/dist/src/renderer/components/drawer/drawer-param-toggler.test.d.ts +5 -0
- package/dist/src/renderer/components/switch/form-switcher.d.ts +9 -2
- package/dist/src/renderer/components/switch/switcher.d.ts +7 -8
- package/dist/src/renderer/components/table/sorting.d.ts +2 -2
- package/dist/src/renderer/components/test-utils/get-application-builder.d.ts +29 -27
- package/dist/src/renderer/components/test-utils/get-extension-fake.d.ts +3 -6
- package/dist/src/renderer/components/tooltip/__mocks__/withTooltip.d.ts +1 -0
- package/dist/src/renderer/kube-watch-api/subscribe-stores.global-override-for-injectable.d.ts +5 -0
- package/dist/src/renderer/port-forward/open-port-forward.injectable.d.ts +4 -0
- package/dist/src/renderer/port-forward/port-forward-utils.d.ts +0 -1
- package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.d.ts +2 -5
- package/dist/src/renderer/utils/channel/ipc-renderer.global-override-for-injectable.d.ts +5 -0
- package/dist/src/test-utils/channel-fakes/override-channels.d.ts +1 -1
- package/dist/src/test-utils/channel-fakes/override-messaging-from-main-to-window.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/common/utils/openBrowser.d.ts +0 -17
- package/dist/src/main/helm/__mocks__/helm-chart-manager.d.ts +0 -11
- package/dist/src/main/start-main-application/lens-window/application-window/application-window.injectable.d.ts +0 -2
- package/dist/src/main/start-main-application/lens-window/application-window/lens-window-injection-token.d.ts +0 -16
- package/dist/src/main/start-main-application/lens-window/reload-all-windows.injectable.d.ts +0 -2
- package/dist/src/main/start-main-application/lens-window/reload-window.injectable.d.ts +0 -3
- package/dist/src/renderer/components/test-utils/get-renderer-extension-fake.d.ts +0 -12
@@ -14,6 +14,7 @@ import { ClusterStatus } from "../cluster-types";
|
|
14
14
|
import type { CanI } from "./authorization-review.injectable";
|
15
15
|
import type { ListNamespaces } from "./list-namespaces.injectable";
|
16
16
|
import type { Logger } from "../logger";
|
17
|
+
import type { BroadcastMessage } from "../ipc/broadcast-message.injectable";
|
17
18
|
export interface ClusterDependencies {
|
18
19
|
readonly directoryForKubeConfigs: string;
|
19
20
|
readonly logger: Logger;
|
@@ -24,6 +25,7 @@ export interface ClusterDependencies {
|
|
24
25
|
createAuthorizationReview: (config: KubeConfig) => CanI;
|
25
26
|
createListNamespaces: (config: KubeConfig) => ListNamespaces;
|
26
27
|
createVersionDetector: (cluster: Cluster) => VersionDetector;
|
28
|
+
broadcastMessage: BroadcastMessage;
|
27
29
|
}
|
28
30
|
/**
|
29
31
|
* Cluster
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { ClusterStore } from "./cluster-store";
|
2
|
+
declare const _default: {
|
3
|
+
injectable: import("@ogre-tools/injectable").Injectable<ClusterStore, unknown, void>;
|
4
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<ClusterStore, void>;
|
5
|
+
};
|
6
|
+
export default _default;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
injectable: import("@ogre-tools/injectable").Injectable<typeof import("fs-extra").stat, unknown, void>;
|
3
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<typeof import("fs-extra").stat, void>;
|
4
|
+
};
|
5
|
+
export default _default;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { AsyncResult } from "../utils/async-result";
|
2
|
+
export declare type ValidateDirectory = (path: string) => Promise<AsyncResult<undefined>>;
|
3
|
+
declare const validateDirectoryInjectable: import("@ogre-tools/injectable").Injectable<ValidateDirectory, unknown, void>;
|
4
|
+
export default validateDirectoryInjectable;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
injectable: import("@ogre-tools/injectable").Injectable<import("./watch.injectable").Watch, unknown, void>;
|
3
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./watch.injectable").Watch, void>;
|
4
|
+
};
|
5
|
+
export default _default;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
declare const broadcastMessageInjectable: import("@ogre-tools/injectable").Injectable<
|
1
|
+
export declare type BroadcastMessage = (channel: string, ...args: any[]) => Promise<void>;
|
2
|
+
declare const broadcastMessageInjectable: import("@ogre-tools/injectable").Injectable<BroadcastMessage, unknown, void>;
|
3
3
|
export default broadcastMessageInjectable;
|
@@ -49,13 +49,50 @@ export interface ResourceMetricSource {
|
|
49
49
|
targetAverageValue?: string;
|
50
50
|
}
|
51
51
|
export interface BaseHorizontalPodAutoscalerMetricSpec {
|
52
|
-
|
53
|
-
object: ObjectMetricSource;
|
52
|
+
containerResource: ContainerResourceMetricSource;
|
54
53
|
external: ExternalMetricSource;
|
54
|
+
object: ObjectMetricSource;
|
55
55
|
pods: PodsMetricSource;
|
56
|
-
|
56
|
+
resource: ResourceMetricSource;
|
57
57
|
}
|
58
58
|
export declare type HorizontalPodAutoscalerMetricSpec = OptionVarient<HpaMetricType.Resource, BaseHorizontalPodAutoscalerMetricSpec, "resource"> | OptionVarient<HpaMetricType.External, BaseHorizontalPodAutoscalerMetricSpec, "external"> | OptionVarient<HpaMetricType.Object, BaseHorizontalPodAutoscalerMetricSpec, "object"> | OptionVarient<HpaMetricType.Pods, BaseHorizontalPodAutoscalerMetricSpec, "pods"> | OptionVarient<HpaMetricType.ContainerResource, BaseHorizontalPodAutoscalerMetricSpec, "containerResource">;
|
59
|
+
export interface ContainerResourceMetricStatus {
|
60
|
+
container: string;
|
61
|
+
currentAverageUtilization?: number;
|
62
|
+
currentAverageValue: string;
|
63
|
+
name: string;
|
64
|
+
}
|
65
|
+
export interface ExternalMetricStatus {
|
66
|
+
currentAverageValue?: string;
|
67
|
+
currentValue: string;
|
68
|
+
metricName: string;
|
69
|
+
metricSelector?: LabelSelector;
|
70
|
+
}
|
71
|
+
export interface ObjectMetricStatus {
|
72
|
+
averageValue?: string;
|
73
|
+
currentValue?: string;
|
74
|
+
metricName: string;
|
75
|
+
selector?: LabelSelector;
|
76
|
+
target: CrossVersionObjectReference;
|
77
|
+
}
|
78
|
+
export interface PodsMetricStatus {
|
79
|
+
currentAverageValue: string;
|
80
|
+
metricName: string;
|
81
|
+
selector?: LabelSelector;
|
82
|
+
}
|
83
|
+
export interface ResourceMetricStatus {
|
84
|
+
currentAverageUtilization?: number;
|
85
|
+
currentAverageValue: string;
|
86
|
+
name: string;
|
87
|
+
}
|
88
|
+
export interface BaseHorizontalPodAutoscalerMetricStatus {
|
89
|
+
containerResource: ContainerResourceMetricStatus;
|
90
|
+
external: ExternalMetricStatus;
|
91
|
+
object: ObjectMetricStatus;
|
92
|
+
pods: PodsMetricStatus;
|
93
|
+
resource: ResourceMetricStatus;
|
94
|
+
}
|
95
|
+
export declare type HorizontalPodAutoscalerMetricStatus = OptionVarient<HpaMetricType.Resource, BaseHorizontalPodAutoscalerMetricStatus, "resource"> | OptionVarient<HpaMetricType.External, BaseHorizontalPodAutoscalerMetricStatus, "external"> | OptionVarient<HpaMetricType.Object, BaseHorizontalPodAutoscalerMetricStatus, "object"> | OptionVarient<HpaMetricType.Pods, BaseHorizontalPodAutoscalerMetricStatus, "pods"> | OptionVarient<HpaMetricType.ContainerResource, BaseHorizontalPodAutoscalerMetricStatus, "containerResource">;
|
59
96
|
export interface CrossVersionObjectReference {
|
60
97
|
kind: string;
|
61
98
|
name: string;
|
@@ -71,11 +108,7 @@ export interface HorizontalPodAutoscalerStatus {
|
|
71
108
|
conditions?: BaseKubeObjectCondition[];
|
72
109
|
currentReplicas: number;
|
73
110
|
desiredReplicas: number;
|
74
|
-
currentMetrics
|
75
|
-
}
|
76
|
-
interface MetricCurrentTarget {
|
77
|
-
current?: string;
|
78
|
-
target?: string;
|
111
|
+
currentMetrics?: HorizontalPodAutoscalerMetricStatus[];
|
79
112
|
}
|
80
113
|
export declare class HorizontalPodAutoscaler extends KubeObject<NamespaceScopedMetadata, HorizontalPodAutoscalerStatus, HorizontalPodAutoscalerSpec> {
|
81
114
|
static readonly kind = "HorizontalPodAutoscaler";
|
@@ -103,17 +136,9 @@ export declare class HorizontalPodAutoscaler extends KubeObject<NamespaceScopedM
|
|
103
136
|
type: string;
|
104
137
|
}[];
|
105
138
|
getMetrics(): HorizontalPodAutoscalerMetricSpec[];
|
106
|
-
getCurrentMetrics():
|
107
|
-
protected getMetricName(metric: HorizontalPodAutoscalerMetricSpec): string;
|
108
|
-
protected getResourceMetricValue(currentMetric: ResourceMetricSource | undefined, targetMetric: ResourceMetricSource): MetricCurrentTarget;
|
109
|
-
protected getPodsMetricValue(currentMetric: PodsMetricSource | undefined, targetMetric: PodsMetricSource): MetricCurrentTarget;
|
110
|
-
protected getObjectMetricValue(currentMetric: ObjectMetricSource | undefined, targetMetric: ObjectMetricSource): MetricCurrentTarget;
|
111
|
-
protected getExternalMetricValue(currentMetric: ExternalMetricSource | undefined, targetMetric: ExternalMetricSource): MetricCurrentTarget;
|
112
|
-
protected getContainerResourceMetricValue(currentMetric: ContainerResourceMetricSource | undefined, targetMetric: ContainerResourceMetricSource): MetricCurrentTarget;
|
113
|
-
protected getMetricCurrentTarget(metric: HorizontalPodAutoscalerMetricSpec): MetricCurrentTarget;
|
139
|
+
getCurrentMetrics(): HorizontalPodAutoscalerMetricStatus[];
|
114
140
|
getMetricValues(metric: HorizontalPodAutoscalerMetricSpec): string;
|
115
141
|
}
|
116
142
|
export declare class HorizontalPodAutoscalerApi extends KubeApi<HorizontalPodAutoscaler> {
|
117
143
|
constructor(opts?: DerivedKubeApiOptions);
|
118
144
|
}
|
119
|
-
export {};
|
@@ -125,7 +125,7 @@ export declare class Node extends KubeObject<ClusterScopedMetadata, NodeStatus,
|
|
125
125
|
isMasterNode(): boolean;
|
126
126
|
getRoleLabelItems(): string[];
|
127
127
|
getRoleLabels(): string;
|
128
|
-
getCpuCapacity(): number;
|
128
|
+
getCpuCapacity(): number | undefined;
|
129
129
|
getMemoryCapacity(): number;
|
130
130
|
getConditions(): NodeCondition[];
|
131
131
|
getActiveConditions(): NodeCondition[];
|
@@ -686,6 +686,7 @@ export declare class Pod extends KubeObject<NamespaceScopedMetadata, PodStatus,
|
|
686
686
|
getQosClass(): string;
|
687
687
|
getReason(): string;
|
688
688
|
getPriorityClassName(): string;
|
689
|
+
getServiceAccountName(): string;
|
689
690
|
getStatus(): PodStatusPhase;
|
690
691
|
getStatusMessage(): string;
|
691
692
|
getStatusPhase(): string | undefined;
|
@@ -10,10 +10,10 @@ import type { KubeJsonApiData } from "./kube-json-api";
|
|
10
10
|
import { KubeJsonApi } from "./kube-json-api";
|
11
11
|
import type { Disposer } from "../utils";
|
12
12
|
import type { RequestInit } from "node-fetch";
|
13
|
-
import type AbortController from "abort-controller";
|
14
13
|
import { Agent } from "https";
|
15
14
|
import type { Patch } from "rfc6902";
|
16
15
|
import type { PartialDeep } from "type-fest";
|
16
|
+
import type AbortController from "abort-controller";
|
17
17
|
/**
|
18
18
|
* The options used for creating a `KubeApi`
|
19
19
|
*/
|
@@ -9,9 +9,9 @@ import type { IKubeWatchEvent } from "./kube-watch-event";
|
|
9
9
|
import { ItemStore } from "../item.store";
|
10
10
|
import type { KubeApiQueryParams, KubeApi } from "./kube-api";
|
11
11
|
import type { RequestInit } from "node-fetch";
|
12
|
-
import AbortController from "abort-controller";
|
13
12
|
import type { Patch } from "rfc6902";
|
14
13
|
import type { PartialDeep } from "type-fest";
|
14
|
+
import AbortController from "abort-controller";
|
15
15
|
export declare type OnLoadFailure = (error: unknown) => void;
|
16
16
|
export interface KubeObjectStoreLoadingParams {
|
17
17
|
namespaces: string[];
|
@@ -8,6 +8,7 @@ import type { ExtensionsStore } from "../../extensions/extensions-store/extensio
|
|
8
8
|
import type { ExtensionLoader } from "../../extensions/extension-loader";
|
9
9
|
import type { LensExtension } from "../../extensions/lens-extension";
|
10
10
|
import type { RouteHandler } from "../../extensions/registries/protocol-handler";
|
11
|
+
import type { Logger } from "../logger";
|
11
12
|
export declare const ProtocolHandlerIpcPrefix = "protocol-handler";
|
12
13
|
export declare const ProtocolHandlerInternal: string;
|
13
14
|
export declare const ProtocolHandlerExtension: string;
|
@@ -42,6 +43,7 @@ export declare function foldAttemptResults(mainAttempt: RouteAttempt, rendererAt
|
|
42
43
|
export interface LensProtocolRouterDependencies {
|
43
44
|
readonly extensionLoader: ExtensionLoader;
|
44
45
|
readonly extensionsStore: ExtensionsStore;
|
46
|
+
readonly logger: Logger;
|
45
47
|
}
|
46
48
|
export declare abstract class LensProtocolRouter {
|
47
49
|
protected readonly dependencies: LensProtocolRouterDependencies;
|
@@ -3,6 +3,10 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import type { Injectable } from "@ogre-tools/injectable";
|
6
|
+
export interface GlobalOverride {
|
7
|
+
injectable: Injectable<any, any, any>;
|
8
|
+
overridingInstantiate: any;
|
9
|
+
}
|
6
10
|
export declare const getGlobalOverride: <T extends Injectable<any, any, any>>(injectable: T, overridingInstantiate: T["instantiate"]) => {
|
7
11
|
injectable: T;
|
8
12
|
overridingInstantiate: T["instantiate"];
|
File without changes
|
@@ -3,6 +3,10 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import AbortController from "abort-controller";
|
6
|
+
/**
|
7
|
+
* This is like an `AbortController` but will also abort if the parent aborts,
|
8
|
+
* but won't make the parent abort if this aborts (single direction)
|
9
|
+
*/
|
6
10
|
export declare class WrappedAbortController extends AbortController {
|
7
|
-
constructor(parent?: AbortController);
|
11
|
+
constructor(parent?: AbortController | undefined);
|
8
12
|
}
|
@@ -2,4 +2,4 @@
|
|
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
|
-
export declare function cpuUnitsToNumber(
|
5
|
+
export declare function cpuUnitsToNumber(value: string): number | undefined;
|
@@ -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 AbortController from "abort-controller";
|
6
6
|
/**
|
7
7
|
* Return a promise that will be resolved after at least `timeout` ms have
|
8
8
|
* passed. If `failFast` is provided then the promise is also resolved if it has
|
@@ -0,0 +1,9 @@
|
|
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 _default: {
|
6
|
+
injectable: import("@ogre-tools/injectable").Injectable<import("./open-link-in-browser.injectable").OpenLinkInBrowser, unknown, void>;
|
7
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./open-link-in-browser.injectable").OpenLinkInBrowser, void>;
|
8
|
+
};
|
9
|
+
export default _default;
|
@@ -14,8 +14,9 @@ declare type TupleOfImpl<T, N extends number, R extends unknown[]> = R["length"]
|
|
14
14
|
* @yields A tuple of the next element from each of the sources
|
15
15
|
* @returns The tuple of all the sources as soon as at least one of the sources is exausted
|
16
16
|
*/
|
17
|
-
export declare function zip<T>(
|
18
|
-
export declare function zip<T>(
|
17
|
+
export declare function zip<T>(...sources: Tuple<T[], 0>): Iterator<Tuple<T, 0>, Tuple<T[], 0>>;
|
18
|
+
export declare function zip<T>(...sources: Tuple<T[], 1>): Iterator<Tuple<T, 1>, Tuple<T[], 1>>;
|
19
|
+
export declare function zip<T>(...sources: Tuple<T[], 2>): Iterator<Tuple<T, 2>, Tuple<T[], 2>>;
|
19
20
|
/**
|
20
21
|
* Returns a `length` tuple filled with copies of `value`
|
21
22
|
* @param length The size of the tuple
|
@@ -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
|
+
/**
|
6
|
+
* Join all entires with a PATH env var delimated string together
|
7
|
+
* @param PATHs Any number of PATH env variables
|
8
|
+
*
|
9
|
+
* NOTE: This function does not attempt to handle any sort of escape sequences since after testing
|
10
|
+
* it was found that `zsh` (at least on `macOS`) does not when trying to find programs
|
11
|
+
*/
|
12
|
+
export declare function unionPATHs(...PATHs: string[]): string;
|
@@ -12,6 +12,10 @@ declare const packageJsonInjectable: import("@ogre-tools/injectable").Injectable
|
|
12
12
|
email: string;
|
13
13
|
};
|
14
14
|
scripts: {
|
15
|
+
"adr:create": string;
|
16
|
+
"adr:change-status": string;
|
17
|
+
"adr:update-readme": string;
|
18
|
+
"adr:list": string;
|
15
19
|
dev: string;
|
16
20
|
"dev-build": string;
|
17
21
|
"debug-build": string;
|
@@ -128,6 +132,9 @@ declare const packageJsonInjectable: import("@ogre-tools/injectable").Injectable
|
|
128
132
|
role: string;
|
129
133
|
};
|
130
134
|
};
|
135
|
+
resolutions: {
|
136
|
+
"@astronautlabs/jsonpath/underscore": string;
|
137
|
+
};
|
131
138
|
dependencies: {
|
132
139
|
"@astronautlabs/jsonpath": string;
|
133
140
|
"@hapi/call": string;
|
@@ -208,6 +215,7 @@ declare const packageJsonInjectable: import("@ogre-tools/injectable").Injectable
|
|
208
215
|
"winston-console-format": string;
|
209
216
|
"winston-transport-browserconsole": string;
|
210
217
|
ws: string;
|
218
|
+
"xterm-link-provider": string;
|
211
219
|
};
|
212
220
|
devDependencies: {
|
213
221
|
"@async-fn/jest": string;
|
@@ -278,6 +286,7 @@ declare const packageJsonInjectable: import("@ogre-tools/injectable").Injectable
|
|
278
286
|
"@types/webpack-node-externals": string;
|
279
287
|
"@typescript-eslint/eslint-plugin": string;
|
280
288
|
"@typescript-eslint/parser": string;
|
289
|
+
adr: string;
|
281
290
|
ansi_up: string;
|
282
291
|
"chart.js": string;
|
283
292
|
"circular-dependency-plugin": string;
|
@@ -2,6 +2,11 @@
|
|
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
|
-
export { Singleton,
|
5
|
+
export { Singleton, getAppVersion } from "../../common/utils";
|
6
6
|
export { prevDefault, stopPropagation } from "../../renderer/utils/prevDefault";
|
7
7
|
export { cssNames } from "../../renderer/utils/cssNames";
|
8
|
+
/**
|
9
|
+
* @deprecated Use {@link openBrowser} instead
|
10
|
+
*/
|
11
|
+
export declare const openExternal: import("../../common/utils/open-link-in-browser.injectable").OpenLinkInBrowser;
|
12
|
+
export declare const openBrowser: import("../../common/utils/open-link-in-browser.injectable").OpenLinkInBrowser;
|