@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.
@@ -49,13 +49,50 @@ export interface ResourceMetricSource {
49
49
  targetAverageValue?: string;
50
50
  }
51
51
  export interface BaseHorizontalPodAutoscalerMetricSpec {
52
- resource: ResourceMetricSource;
53
- object: ObjectMetricSource;
52
+ containerResource: ContainerResourceMetricSource;
54
53
  external: ExternalMetricSource;
54
+ object: ObjectMetricSource;
55
55
  pods: PodsMetricSource;
56
- containerResource: ContainerResourceMetricSource;
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: HorizontalPodAutoscalerMetricSpec[];
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(): HorizontalPodAutoscalerMetricSpec[];
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[];
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ export {};
@@ -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(cpu: string): number;
5
+ export declare function cpuUnitsToNumber(value: string): number | undefined;
@@ -21,7 +21,6 @@ export * from "./hash-set";
21
21
  export * from "./n-fircate";
22
22
  export * from "./noop";
23
23
  export * from "./observable-crate/impl";
24
- export * from "./openBrowser";
25
24
  export * from "./paths";
26
25
  export * from "./promise-exec";
27
26
  export * from "./readonly";
@@ -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;
@@ -0,0 +1,3 @@
1
+ export declare type OpenLinkInBrowser = (url: string) => Promise<void>;
2
+ declare const openLinkInBrowserInjectable: import("@ogre-tools/injectable").Injectable<OpenLinkInBrowser, unknown, void>;
3
+ export default openLinkInBrowserInjectable;
@@ -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>(src1: T[]): Iterator<[T], Tuple<T[], 1>>;
18
- export declare function zip<T>(src1: T[], src2: T[]): Iterator<[T, T], Tuple<T[], 2>>;
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, openExternal, openBrowser, getAppVersion } from "../../common/utils";
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;