@k8slens/extensions 6.0.1-git.feb2859b5d.0 → 6.0.2-alpha.1
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/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/utils/abort-controller.d.ts +4 -0
- 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/tuple.d.ts +3 -2
- package/dist/src/common/vars/package-json.injectable.d.ts +6 -0
- package/dist/src/extensions/extension-api.js +1793 -32
- package/dist/src/main/application-update/check-for-updates/process-checking-for-updates.injectable.d.ts +3 -1
- package/dist/src/main/tray/tray-menu-registration.d.ts +1 -1
- package/dist/src/renderer/components/+extensions/extensions.d.ts +0 -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/drawer/drawer-param-toggler.test.d.ts +5 -0
- package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
- package/dist/src/renderer/components/table/sorting.d.ts +2 -2
- package/package.json +1 -1
@@ -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[];
|
@@ -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[];
|
@@ -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
11
|
constructor(parent?: AbortController);
|
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
|
@@ -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
|
@@ -44,6 +44,8 @@ declare const packageJsonInjectable: import("@ogre-tools/injectable").Injectable
|
|
44
44
|
"version-commit": string;
|
45
45
|
version: string;
|
46
46
|
postversion: string;
|
47
|
+
"precreate-release-pr": string;
|
48
|
+
"create-release-pr": string;
|
47
49
|
};
|
48
50
|
config: {
|
49
51
|
k8sProxyVersion: string;
|
@@ -128,6 +130,9 @@ declare const packageJsonInjectable: import("@ogre-tools/injectable").Injectable
|
|
128
130
|
role: string;
|
129
131
|
};
|
130
132
|
};
|
133
|
+
resolutions: {
|
134
|
+
"@astronautlabs/jsonpath/underscore": string;
|
135
|
+
};
|
131
136
|
dependencies: {
|
132
137
|
"@astronautlabs/jsonpath": string;
|
133
138
|
"@hapi/call": string;
|
@@ -216,6 +221,7 @@ declare const packageJsonInjectable: import("@ogre-tools/injectable").Injectable
|
|
216
221
|
"@material-ui/lab": string;
|
217
222
|
"@pmmmwh/react-refresh-webpack-plugin": string;
|
218
223
|
"@sentry/types": string;
|
224
|
+
"@swc/cli": string;
|
219
225
|
"@swc/core": string;
|
220
226
|
"@swc/jest": string;
|
221
227
|
"@testing-library/dom": string;
|