mirror of
https://github.com/lensapp/lens.git
synced 2024-09-11 09:25:26 +03:00
chore: Move kubeApiInjectionToken into own package
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
711ad11bf1
commit
8fd0b5fab4
@ -190,6 +190,7 @@
|
||||
"@k8slens/event-emitter": "^1.0.0",
|
||||
"@k8slens/feature-core": "^6.5.0",
|
||||
"@k8slens/keyboard-shortcuts": "^1.0.0",
|
||||
"@k8slens/kube-api-specifics": "^1.0.0-alpha.1",
|
||||
"@k8slens/kube-object": "^1.0.0",
|
||||
"@k8slens/kubectl-versions": "^1.0.0",
|
||||
"@k8slens/legacy-extension-example": "^1.0.0",
|
||||
|
20
package-lock.json
generated
20
package-lock.json
generated
@ -3749,6 +3749,10 @@
|
||||
"resolved": "packages/utility-features/kube-api",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@k8slens/kube-api-specifics": {
|
||||
"resolved": "packages/utility-features/kube-api-specifics",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@k8slens/kube-object": {
|
||||
"resolved": "packages/kube-object",
|
||||
"link": true
|
||||
@ -33999,6 +34003,7 @@
|
||||
"@k8slens/event-emitter": "^1.0.0",
|
||||
"@k8slens/feature-core": "^6.5.0",
|
||||
"@k8slens/keyboard-shortcuts": "^1.0.0",
|
||||
"@k8slens/kube-api-specifics": "^1.0.0-alpha.1",
|
||||
"@k8slens/kube-object": "^1.0.0",
|
||||
"@k8slens/kubectl-versions": "^1.0.0",
|
||||
"@k8slens/legacy-extension-example": "^1.0.0",
|
||||
@ -34317,6 +34322,7 @@
|
||||
"@k8slens/error-boundary": "^1.0.0-alpha.5",
|
||||
"@k8slens/event-emitter": "^1.0.0-alpha.1",
|
||||
"@k8slens/kube-api": "^1.0.0-alpha.1",
|
||||
"@k8slens/kube-api-specifics": "^1.0.0-alpha.1",
|
||||
"@k8slens/kube-object": "^1.0.0-alpha.5",
|
||||
"@k8slens/kubectl-versions": "^1.0.0-alpha.0",
|
||||
"@k8slens/legacy-extensions": "^1.0.0-alpha.0",
|
||||
@ -35703,6 +35709,20 @@
|
||||
"rfc6902": "^5.0.1"
|
||||
}
|
||||
},
|
||||
"packages/utility-features/kube-api-specifics": {
|
||||
"name": "@k8slens/kube-api-specifics",
|
||||
"version": "1.0.0-alpha.1",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@k8slens/eslint-config": "^6.5.0-alpha.2",
|
||||
"@k8slens/jest": "^6.5.0-alpha.4",
|
||||
"@k8slens/typescript": "^6.5.0-alpha.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@k8slens/kube-api": "^1.0.0-alpha.1",
|
||||
"@ogre-tools/injectable": "^16.1.2"
|
||||
}
|
||||
},
|
||||
"packages/utility-features/react-testing-library-discovery": {
|
||||
"name": "@k8slens/react-testing-library-discovery",
|
||||
"version": "1.0.0",
|
||||
|
@ -215,6 +215,7 @@
|
||||
"@k8slens/error-boundary": "^1.0.0-alpha.5",
|
||||
"@k8slens/event-emitter": "^1.0.0-alpha.1",
|
||||
"@k8slens/kube-api": "^1.0.0-alpha.1",
|
||||
"@k8slens/kube-api-specifics": "^1.0.0-alpha.1",
|
||||
"@k8slens/kube-object": "^1.0.0-alpha.5",
|
||||
"@k8slens/kubectl-versions": "^1.0.0-alpha.0",
|
||||
"@k8slens/legacy-extensions": "^1.0.0-alpha.0",
|
||||
|
@ -7,7 +7,7 @@ import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-c
|
||||
import { ApiManager } from "./api-manager";
|
||||
import { computedInjectManyInjectable } from "@ogre-tools/injectable-extension-for-mobx";
|
||||
import { kubeObjectStoreInjectionToken } from "./kube-object-store-token";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { computed } from "mobx";
|
||||
import { customResourceDefinitionApiInjectionToken } from "./crd-api-token";
|
||||
import createCustomResourceStoreInjectable from "./create-custom-resource-store.injectable";
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, ClusterRoleBindingApi } from "@k8slens/kube-api";
|
||||
import { ClusterRoleBindingApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, ClusterRoleApi } from "@k8slens/kube-api";
|
||||
import { ClusterRoleApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, ClusterApi } from "@k8slens/kube-api";
|
||||
import { ClusterApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, ComponentStatusApi } from "@k8slens/kube-api";
|
||||
import { ComponentStatusApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, ConfigMapApi } from "@k8slens/kube-api";
|
||||
import { ConfigMapApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, CronJobApi } from "@k8slens/kube-api";
|
||||
import { CronJobApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, CustomResourceDefinitionApi } from "@k8slens/kube-api";
|
||||
import { CustomResourceDefinitionApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, DaemonSetApi } from "@k8slens/kube-api";
|
||||
import { DaemonSetApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, DeploymentApi } from "@k8slens/kube-api";
|
||||
import { DeploymentApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, EndpointsApi } from "@k8slens/kube-api";
|
||||
import { EndpointsApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, KubeEventApi } from "@k8slens/kube-api";
|
||||
import { KubeEventApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, HorizontalPodAutoscalerApi } from "@k8slens/kube-api";
|
||||
import { HorizontalPodAutoscalerApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -3,7 +3,8 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { kubeApiInjectionToken, IngressClassApi } from "@k8slens/kube-api";
|
||||
import { IngressClassApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, IngressApi } from "@k8slens/kube-api";
|
||||
import { IngressApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, JobApi } from "@k8slens/kube-api";
|
||||
import { JobApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, LeaseApi } from "@k8slens/kube-api";
|
||||
import { LeaseApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, LimitRangeApi } from "@k8slens/kube-api";
|
||||
import { LimitRangeApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, MutatingWebhookConfigurationApi } from "@k8slens/kube-api";
|
||||
import { MutatingWebhookConfigurationApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, NamespaceApi } from "@k8slens/kube-api";
|
||||
import { NamespaceApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, NetworkPolicyApi } from "@k8slens/kube-api";
|
||||
import { NetworkPolicyApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, NodeApi } from "@k8slens/kube-api";
|
||||
import { NodeApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, PersistentVolumeClaimApi } from "@k8slens/kube-api";
|
||||
import { PersistentVolumeClaimApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, PersistentVolumeApi } from "@k8slens/kube-api";
|
||||
import { PersistentVolumeApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, PodDisruptionBudgetApi } from "@k8slens/kube-api";
|
||||
import { PodDisruptionBudgetApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, PodMetricsApi } from "@k8slens/kube-api";
|
||||
import { PodMetricsApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, PodSecurityPolicyApi } from "@k8slens/kube-api";
|
||||
import { PodSecurityPolicyApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, PodApi } from "@k8slens/kube-api";
|
||||
import { PodApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, PriorityClassApi } from "@k8slens/kube-api";
|
||||
import { PriorityClassApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, ReplicaSetApi } from "@k8slens/kube-api";
|
||||
import { ReplicaSetApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -3,7 +3,8 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { kubeApiInjectionToken, ReplicationControllerApi } from "@k8slens/kube-api";
|
||||
import { ReplicationControllerApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, ResourceQuotaApi } from "@k8slens/kube-api";
|
||||
import { ResourceQuotaApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, RoleBindingApi } from "@k8slens/kube-api";
|
||||
import { RoleBindingApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, RoleApi } from "@k8slens/kube-api";
|
||||
import { RoleApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, RuntimeClassApi } from "@k8slens/kube-api";
|
||||
import { RuntimeClassApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, SecretApi } from "@k8slens/kube-api";
|
||||
import { SecretApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, SelfSubjectRulesReviewApi } from "@k8slens/kube-api";
|
||||
import { SelfSubjectRulesReviewApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, ServiceAccountApi } from "@k8slens/kube-api";
|
||||
import { ServiceAccountApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, ServiceApi } from "@k8slens/kube-api";
|
||||
import { ServiceApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, StatefulSetApi } from "@k8slens/kube-api";
|
||||
import { StatefulSetApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, StorageClassApi } from "@k8slens/kube-api";
|
||||
import { StorageClassApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, ValidatingWebhookConfigurationApi } from "@k8slens/kube-api";
|
||||
import { ValidatingWebhookConfigurationApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -5,7 +5,8 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import assert from "assert";
|
||||
import { storesAndApisCanBeCreatedInjectionToken } from "../stores-apis-can-be-created.token";
|
||||
import { kubeApiInjectionToken, VerticalPodAutoscalerApi } from "@k8slens/kube-api";
|
||||
import { VerticalPodAutoscalerApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import { loggerInjectionToken } from "@k8slens/logger";
|
||||
import maybeKubeApiInjectable from "../maybe-kube-api.injectable";
|
||||
|
||||
|
@ -3,7 +3,8 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { kubeApiInjectionToken, parseKubeApi } from "@k8slens/kube-api";
|
||||
import { parseKubeApi } from "@k8slens/kube-api";
|
||||
import { kubeApiInjectionToken } from "@k8slens/kube-api-specifics";
|
||||
import type { KubeApi } from "@k8slens/kube-api";
|
||||
|
||||
export type GetKubeApiFromPath = (apiPath: string) => KubeApi | undefined;
|
||||
|
@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
extends: "@k8slens/eslint-config/eslint",
|
||||
parserOptions: {
|
||||
project: "./tsconfig.json",
|
||||
},
|
||||
};
|
1
packages/utility-features/kube-api-specifics/.prettierrc
Normal file
1
packages/utility-features/kube-api-specifics/.prettierrc
Normal file
@ -0,0 +1 @@
|
||||
"@k8slens/eslint-config/prettier"
|
18
packages/utility-features/kube-api-specifics/.swcrc
Normal file
18
packages/utility-features/kube-api-specifics/.swcrc
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"module": {
|
||||
"type": "commonjs"
|
||||
},
|
||||
"jsc": {
|
||||
"parser": {
|
||||
"syntax": "typescript",
|
||||
"tsx": true,
|
||||
"decorators": true,
|
||||
"dynamicImport": false
|
||||
},
|
||||
"transform": {
|
||||
"legacyDecorator": true,
|
||||
"decoratorMetadata": true
|
||||
},
|
||||
"target": "es2019"
|
||||
}
|
||||
}
|
1
packages/utility-features/kube-api-specifics/index.ts
Normal file
1
packages/utility-features/kube-api-specifics/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from "./src/token";
|
@ -0,0 +1 @@
|
||||
module.exports = require("@k8slens/jest").monorepoPackageConfig(__dirname).configForNode;
|
43
packages/utility-features/kube-api-specifics/package.json
Normal file
43
packages/utility-features/kube-api-specifics/package.json
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"name": "@k8slens/kube-api-specifics",
|
||||
"private": false,
|
||||
"version": "1.0.0-alpha.1",
|
||||
"description": "Kube api",
|
||||
"type": "commonjs",
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/lensapp/lens.git"
|
||||
},
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"author": {
|
||||
"name": "OpenLens Authors",
|
||||
"email": "info@k8slens.dev"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/lensapp/lens",
|
||||
"scripts": {
|
||||
"build": "lens-webpack-build",
|
||||
"clean": "rimraf dist/",
|
||||
"dev": "webpack --mode=development --watch",
|
||||
"test": "jest --coverage --runInBand",
|
||||
"lint": "lens-lint",
|
||||
"lint:fix": "lens-lint --fix"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@k8slens/kube-api": "^1.0.0-alpha.1",
|
||||
"@ogre-tools/injectable": "^16.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@k8slens/eslint-config": "^6.5.0-alpha.2",
|
||||
"@k8slens/jest": "^6.5.0-alpha.4",
|
||||
"@k8slens/typescript": "^6.5.0-alpha.2"
|
||||
}
|
||||
}
|
@ -3,7 +3,7 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
import { getInjectionToken } from "@ogre-tools/injectable";
|
||||
import type { KubeApi } from "./kube-api";
|
||||
import type { KubeApi } from "@k8slens/kube-api";
|
||||
|
||||
export const kubeApiInjectionToken = getInjectionToken<KubeApi<any, any>>({
|
||||
id: "kube-api-injection-token",
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"extends": "@k8slens/typescript/config/base.json",
|
||||
"include": ["**/*.ts"],
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node"
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
module.exports = require("@k8slens/webpack").configForReact;
|
@ -1,4 +1,3 @@
|
||||
export * from "./src/kube-api-injection-token";
|
||||
export * from "./src/api-kube";
|
||||
export * from "./src/kube-api";
|
||||
export * from "./src/kube-api-parse";
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "@k8slens/typescript/config/base.json",
|
||||
"include": ["**/*.ts"],
|
||||
"include": ["**/*.ts", "../kube-api-specifics/src/token.ts"],
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user