mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Extract @k8slens/kube-object package
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
576373b16b
commit
1bf24db797
466 files changed
+6838
-6375
No files matched your search
@@ -16,7 +16,7 @@ import { asLegacyGlobalFunctionForExtensionApi, asLegacyGlobalForExtensionApi, g
|
||||
import type { KubernetesCluster } from "./catalog";
|
||||
import type { KubeApiDataFrom, KubeObjectStoreOptions } from "../../common/k8s-api/kube-object.store";
|
||||
import { KubeObjectStore as InternalKubeObjectStore } from "../../common/k8s-api/kube-object.store";
|
||||
import type { KubeJsonApiDataFor, KubeObject } from "../../common/k8s-api/kube-object";
|
||||
import type { KubeJsonApiDataFor, KubeObject } from "@k8slens/kube-object";
|
||||
import type { DerivedKubeApiOptions, KubeApiDependencies, KubeApiOptions } from "../../common/k8s-api/kube-api";
|
||||
import { KubeApi as InternalKubeApi } from "../../common/k8s-api/kube-api";
|
||||
import clusterFrameContextForNamespacedResourcesInjectable from "../../renderer/cluster-frame-context/for-namespaced-resources.injectable";
|
||||
@@ -120,7 +120,17 @@ export type { CreateKubeApiForLocalClusterConfig as ILocalKubeApiConfig } from "
|
||||
export {
|
||||
KubeObject,
|
||||
KubeStatus,
|
||||
} from "../../common/k8s-api/kube-object";
|
||||
isJsonApiData,
|
||||
isJsonApiDataList,
|
||||
isKubeJsonApiListMetadata,
|
||||
isKubeJsonApiMetadata,
|
||||
isKubeObjectNonSystem,
|
||||
isKubeStatusData,
|
||||
isPartialJsonApiData,
|
||||
isPartialJsonApiMetadata,
|
||||
createKubeObject,
|
||||
stringifyLabels,
|
||||
} from "@k8slens/kube-object";
|
||||
export type {
|
||||
OwnerReference,
|
||||
KubeObjectMetadata,
|
||||
@@ -130,11 +140,8 @@ export type {
|
||||
KubeJsonApiObjectMetadata,
|
||||
KubeStatusData,
|
||||
KubeJsonApiDataFor,
|
||||
} from "../../common/k8s-api/kube-object";
|
||||
|
||||
export type {
|
||||
KubeJsonApiData,
|
||||
} from "../../common/k8s-api/kube-json-api";
|
||||
} from "@k8slens/kube-object";
|
||||
|
||||
function KubeJsonApiCstr(config: JsonApiConfig, reqInit?: RequestInit) {
|
||||
const di = getLegacyGlobalDiForExtensionApi();
|
||||
@@ -291,4 +298,4 @@ export {
|
||||
ClusterRole,
|
||||
ClusterRoleBinding,
|
||||
CustomResourceDefinition,
|
||||
} from "../../common/k8s-api/endpoints";
|
||||
} from "@k8slens/kube-object";
|
||||
Reference in new issue
Block a user