@k8slens/extensions 6.0.1-git.af4b74d9bd.0 → 6.0.1-git.bd3f123aef.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/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/utils/__tests__/union-env-path.test.d.ts +5 -0
- package/dist/src/common/utils/convertCpu.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 +6 -0
- package/dist/src/extensions/common-api/utils.d.ts +6 -1
- package/dist/src/extensions/extension-api.js +126 -115
- package/dist/src/main/utils/shell-env.d.ts +1 -1
- 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/table/sorting.d.ts +2 -2
- package/dist/src/renderer/components/tooltip/__mocks__/withTooltip.d.ts +1 -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/package.json +1 -1
- package/dist/src/common/utils/openBrowser.d.ts +0 -17
@@ -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[];
|
@@ -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;
|
@@ -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;
|
@@ -208,6 +212,7 @@ declare const packageJsonInjectable: import("@ogre-tools/injectable").Injectable
|
|
208
212
|
"winston-console-format": string;
|
209
213
|
"winston-transport-browserconsole": string;
|
210
214
|
ws: string;
|
215
|
+
"xterm-link-provider": string;
|
211
216
|
};
|
212
217
|
devDependencies: {
|
213
218
|
"@async-fn/jest": string;
|
@@ -278,6 +283,7 @@ declare const packageJsonInjectable: import("@ogre-tools/injectable").Injectable
|
|
278
283
|
"@types/webpack-node-externals": string;
|
279
284
|
"@typescript-eslint/eslint-plugin": string;
|
280
285
|
"@typescript-eslint/parser": string;
|
286
|
+
adr: string;
|
281
287
|
ansi_up: string;
|
282
288
|
"chart.js": string;
|
283
289
|
"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;
|