@k8slens/extensions 6.4.0-git.5c9dc034b7.0 → 6.4.0-git.5eefa8f03a.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/common/cluster/cluster.d.ts +4 -4
- package/dist/src/common/fetch/lens-fetch.global-override-for-injectable.d.ts +9 -0
- package/dist/src/common/fetch/lens-fetch.injectable.d.ts +5 -0
- package/dist/src/common/ipc/ipc-main-injection-token.d.ts +2 -0
- package/dist/src/{renderer/navigation/events.d.ts → common/ipc/navigation-events.d.ts} +0 -0
- package/dist/src/common/utils/type-narrowing.d.ts +1 -1
- package/dist/src/common/vars/extension-api-version.global-override-for-injectable.d.ts +9 -0
- package/dist/src/extensions/common-api/k8s-api.d.ts +8 -1
- package/dist/src/extensions/extension-api.js +154 -143
- package/dist/src/features/preferences/renderer/preference-items/terminal/terminal-font-family/terminal-font-options.injectable.d.ts +10 -0
- package/dist/src/features/terminal/renderer/fonts/anonymous-pro.injectable.d.ts +5 -0
- package/dist/src/features/terminal/renderer/fonts/fonts.injectable.d.ts +2 -0
- package/dist/src/features/terminal/renderer/fonts/ibm-plex-mono.injectable.d.ts +5 -0
- package/dist/src/features/terminal/renderer/fonts/jetbrains-mono.injectable.d.ts +5 -0
- package/dist/src/features/terminal/renderer/fonts/load-font.global-override-for-injectable.d.ts +9 -0
- package/dist/src/features/terminal/renderer/fonts/load-font.injectable.d.ts +4 -0
- package/dist/src/features/terminal/renderer/fonts/preload-fonts.injectable.d.ts +5 -0
- package/dist/src/features/terminal/renderer/fonts/red-hat-mono.injectable.d.ts +5 -0
- package/dist/src/features/terminal/renderer/fonts/roboto-mono.injectable.d.ts +5 -0
- package/dist/src/features/terminal/renderer/fonts/source-code-pro.injectable.d.ts +5 -0
- package/dist/src/features/terminal/renderer/fonts/space-mono.injectable.d.ts +5 -0
- package/dist/src/features/terminal/renderer/fonts/token.d.ts +9 -0
- package/dist/src/features/terminal/renderer/fonts/ubuntu-mono.injectable.d.ts +5 -0
- package/dist/src/main/cluster-detectors/cluster-distribution-detector.injectable.d.ts +14 -0
- package/dist/src/main/cluster-detectors/cluster-id-detector.injectable.d.ts +14 -0
- package/dist/src/main/cluster-detectors/{last-seen-detector.d.ts → cluster-last-seen-detector.injectable.d.ts} +4 -4
- package/dist/src/main/cluster-detectors/{nodes-count-detector.d.ts → cluster-nodes-count-detector.injectable.d.ts} +5 -5
- package/dist/src/main/cluster-detectors/{cluster-id-detector.d.ts → cluster-version-detector.injectable.d.ts} +4 -5
- package/dist/src/main/cluster-detectors/detect-cluster-metadata.injectable.d.ts +5 -0
- package/dist/src/main/cluster-detectors/request-cluster-version.injectable.d.ts +3 -0
- package/dist/src/main/cluster-detectors/token.d.ts +18 -0
- package/dist/src/main/get-metrics.injectable.d.ts +1 -1
- package/dist/src/main/k8s-request.injectable.d.ts +6 -3
- package/dist/src/main/utils/channel/ipc-main/ipc-main.global-override-for-injectable.d.ts +1 -1
- package/dist/src/main/utils/channel/ipc-main/ipc-main.injectable.d.ts +1 -1
- package/dist/src/renderer/components/+events/kube-event-details.d.ts +0 -1
- package/dist/src/renderer/components/+namespaces/namespace-select-badge.d.ts +15 -0
- package/dist/src/renderer/components/table/table-head.d.ts +1 -0
- package/package.json +1 -1
- package/dist/src/main/cluster-detectors/base-cluster-detector.d.ts +0 -19
- package/dist/src/main/cluster-detectors/create-version-detector.injectable.d.ts +0 -4
- package/dist/src/main/cluster-detectors/detector-registry.d.ts +0 -20
- package/dist/src/main/cluster-detectors/detector-registry.injectable.d.ts +0 -3
- package/dist/src/main/cluster-detectors/distribution-detector.d.ts +0 -34
- package/dist/src/main/cluster-detectors/version-detector.d.ts +0 -14
- package/dist/src/main/start-main-application/runnables/setup-detector-registry.injectable.d.ts +0 -5
- package/dist/src/renderer/components/dock/terminal/terminal-fonts.global-override-for-injectable.d.ts +0 -11
- package/dist/src/renderer/components/dock/terminal/terminal-fonts.injectable.d.ts +0 -10
@@ -7,8 +7,6 @@ import type { KubeConfig } from "@kubernetes/client-node";
|
|
7
7
|
import type { Kubectl } from "../../main/kubectl/kubectl";
|
8
8
|
import type { KubeconfigManager } from "../../main/kubeconfig-manager/kubeconfig-manager";
|
9
9
|
import type { KubeApiResourceDescriptor } from "../rbac";
|
10
|
-
import type { VersionDetector } from "../../main/cluster-detectors/version-detector";
|
11
|
-
import type { DetectorRegistry } from "../../main/cluster-detectors/detector-registry";
|
12
10
|
import type { ClusterState, ClusterMetricsResourceType, ClusterId, ClusterMetadata, ClusterModel, ClusterPreferences, ClusterPrometheusPreferences, UpdateClusterModel, ClusterConfigData } from "../cluster-types";
|
13
11
|
import { ClusterStatus } from "../cluster-types";
|
14
12
|
import type { CanI } from "./authorization-review.injectable";
|
@@ -18,10 +16,13 @@ import type { BroadcastMessage } from "../ipc/broadcast-message.injectable";
|
|
18
16
|
import type { LoadConfigfromFile } from "../kube-helpers/load-config-from-file.injectable";
|
19
17
|
import type { RequestNamespaceListPermissions, RequestNamespaceListPermissionsFor } from "./request-namespace-list-permissions.injectable";
|
20
18
|
import type { RequestApiResources } from "../../main/cluster/request-api-resources.injectable";
|
19
|
+
import type { DetectClusterMetadata } from "../../main/cluster-detectors/detect-cluster-metadata.injectable";
|
20
|
+
import type { FalibleOnlyClusterMetadataDetector } from "../../main/cluster-detectors/token";
|
21
21
|
export interface ClusterDependencies {
|
22
22
|
readonly directoryForKubeConfigs: string;
|
23
23
|
readonly logger: Logger;
|
24
|
-
readonly
|
24
|
+
readonly clusterVersionDetector: FalibleOnlyClusterMetadataDetector;
|
25
|
+
detectClusterMetadata: DetectClusterMetadata;
|
25
26
|
createKubeconfigManager: (cluster: Cluster) => KubeconfigManager;
|
26
27
|
createContextHandler: (cluster: Cluster) => ClusterContextHandler;
|
27
28
|
createKubectl: (clusterVersion: string) => Kubectl;
|
@@ -29,7 +30,6 @@ export interface ClusterDependencies {
|
|
29
30
|
requestApiResources: RequestApiResources;
|
30
31
|
requestNamespaceListPermissionsFor: RequestNamespaceListPermissionsFor;
|
31
32
|
createListNamespaces: (config: KubeConfig) => ListNamespaces;
|
32
|
-
createVersionDetector: (cluster: Cluster) => VersionDetector;
|
33
33
|
broadcastMessage: BroadcastMessage;
|
34
34
|
loadConfigfromFile: LoadConfigfromFile;
|
35
35
|
}
|
@@ -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<Function, any, any>;
|
7
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<Function, any>;
|
8
|
+
};
|
9
|
+
export default _default;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { RequestInit, Response } from "node-fetch";
|
2
|
+
export type LensRequestInit = Omit<RequestInit, "agent">;
|
3
|
+
export type LensFetch = (pathnameAndQuery: string, init?: LensRequestInit) => Promise<Response>;
|
4
|
+
declare const lensFetchInjectable: import("@ogre-tools/injectable").Injectable<LensFetch, unknown, void>;
|
5
|
+
export default lensFetchInjectable;
|
File without changes
|
@@ -95,7 +95,7 @@ export declare function isFunction(val: unknown): val is (...args: unknown[]) =>
|
|
95
95
|
/**
|
96
96
|
* Checks if the value in the second position is non-nullable
|
97
97
|
*/
|
98
|
-
export declare function hasDefinedTupleValue<K, V>(pair: [K, V | undefined | null]): pair is [K, V];
|
98
|
+
export declare function hasDefinedTupleValue<K, V>(pair: readonly [K, V | undefined | null]): pair is [K, V];
|
99
99
|
/**
|
100
100
|
* Creates a new predicate function (with the same predicate) from `fn`. Such
|
101
101
|
* that it can be called with just the value to be tested.
|
@@ -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<string, unknown, void>;
|
7
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<string, void>;
|
8
|
+
};
|
9
|
+
export default _default;
|
@@ -18,6 +18,7 @@ export declare const apiManager: import("../../common/k8s-api/api-manager").ApiM
|
|
18
18
|
export declare const forCluster: import("../../common/k8s-api/create-kube-api-for-cluster.injectable").CreateKubeApiForCluster;
|
19
19
|
export declare const forRemoteCluster: import("../../common/k8s-api/create-kube-api-for-remote-cluster.injectable").CreateKubeApiForRemoteCluster;
|
20
20
|
export declare const createResourceStack: import("../../common/k8s/create-resource-stack.injectable").CreateResourceStack;
|
21
|
+
export type KubeApi<Object extends KubeObject = KubeObject, Data extends KubeJsonApiDataFor<Object> = KubeJsonApiDataFor<Object>> = InternalKubeApi<Object, Data>;
|
21
22
|
export declare const KubeApi: new <Object_1 extends KubeObject<import("../../common/k8s-api/kube-object").KubeObjectMetadata<import("../../common/k8s-api/kube-object").KubeObjectScope>, unknown, unknown> = KubeObject<import("../../common/k8s-api/kube-object").KubeObjectMetadata<import("../../common/k8s-api/kube-object").KubeObjectScope>, unknown, unknown>, Data extends KubeJsonApiDataFor<Object_1> = KubeJsonApiDataFor<Object_1>>(opts: KubeApiOptions<Object_1, Data>) => InternalKubeApi<Object_1, Data>;
|
22
23
|
/**
|
23
24
|
* @deprecated Switch to using `Common.createResourceStack` instead
|
@@ -40,8 +41,9 @@ export type { CreateKubeApiForRemoteClusterConfig as IRemoteKubeApiConfig } from
|
|
40
41
|
export type { CreateKubeApiForLocalClusterConfig as ILocalKubeApiConfig } from "../../common/k8s-api/create-kube-api-for-cluster.injectable";
|
41
42
|
export { KubeObject, KubeStatus, type OwnerReference, type KubeObjectMetadata, type NamespaceScopedMetadata, type ClusterScopedMetadata, type BaseKubeJsonApiObjectMetadata, type KubeJsonApiObjectMetadata, type KubeStatusData, } from "../../common/k8s-api/kube-object";
|
42
43
|
export type { KubeJsonApiData, } from "../../common/k8s-api/kube-json-api";
|
44
|
+
export type KubeJsonApi = InternalKubeJsonApi;
|
43
45
|
export declare const KubeJsonApi: (new (config: JsonApiConfig, reqInit?: RequestInit) => InternalKubeJsonApi) & {
|
44
|
-
forCluster: import("../../common/k8s-api/create-kube-api-for-cluster.injectable").
|
46
|
+
forCluster: import("../../common/k8s-api/create-kube-json-api-for-cluster.injectable").CreateKubeJsonApiForCluster;
|
45
47
|
};
|
46
48
|
export declare abstract class KubeObjectStore<K extends KubeObject = KubeObject, A extends InternalKubeApi<K, D> = InternalKubeApi<K, KubeJsonApiDataFor<K>>, D extends KubeJsonApiDataFor<K> = KubeApiDataFrom<K, A>> extends InternalKubeObjectStore<K, A, D> {
|
47
49
|
/**
|
@@ -80,9 +82,14 @@ export interface IgnoredKubeApiOptions {
|
|
80
82
|
*/
|
81
83
|
apiBase?: any;
|
82
84
|
}
|
85
|
+
export type PodsApi = PodApi;
|
83
86
|
export declare const PodsApi: new (opts?: DerivedKubeApiOptions & IgnoredKubeApiOptions) => PodApi;
|
87
|
+
export type NodesApi = NodeApi;
|
84
88
|
export declare const NodesApi: new (opts?: DerivedKubeApiOptions & IgnoredKubeApiOptions) => NodeApi;
|
89
|
+
export type DeploymentApi = InternalDeploymentApi;
|
85
90
|
export declare const DeploymentApi: new (opts?: DerivedKubeApiOptions) => InternalDeploymentApi;
|
91
|
+
export type IngressApi = InternalIngressApi;
|
86
92
|
export declare const IngressApi: new (opts?: DerivedKubeApiOptions & IgnoredKubeApiOptions) => InternalIngressApi;
|
93
|
+
export type PersistentVolumeClaimsApi = PersistentVolumeClaimApi;
|
87
94
|
export declare const PersistentVolumeClaimsApi: new (opts?: DerivedKubeApiOptions & IgnoredKubeApiOptions) => PersistentVolumeClaimApi;
|
88
95
|
export { type Container as IPodContainer, type PodContainerStatus as IPodContainerStatus, Pod, Node, Deployment, DaemonSet, StatefulSet, Job, CronJob, ConfigMap, type SecretReference as ISecretRef, Secret, ReplicaSet, ResourceQuota, LimitRange, HorizontalPodAutoscaler, PodDisruptionBudget, PriorityClass, Service, Endpoints as Endpoint, Ingress, NetworkPolicy, PersistentVolume, PersistentVolumeClaim, StorageClass, Namespace, KubeEvent, ServiceAccount, Role, RoleBinding, ClusterRole, ClusterRoleBinding, CustomResourceDefinition, } from "../../common/k8s-api/endpoints";
|