mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Improve Table typing and remove annotations on callbacks (#2981)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
c6a4d55d86
commit
64ac04186b
59 files changed
+487
-482
No files matched your search
@@ -29,7 +29,7 @@ import { ConfigMapDetails } from "../components/+config-maps";
|
||||
import { PodDisruptionBudgetDetails } from "../components/+config-pod-disruption-budgets";
|
||||
import { ResourceQuotaDetails } from "../components/+config-resource-quotas";
|
||||
import { SecretDetails } from "../components/+config-secrets";
|
||||
import { CRDDetails } from "../components/+custom-resources";
|
||||
import { CRDDetails, CrdResourceDetails } from "../components/+custom-resources";
|
||||
import { EventDetails } from "../components/+events";
|
||||
import { KubeEventDetails } from "../components/+events/kube-event-details";
|
||||
import { NamespaceDetails } from "../components/+namespaces";
|
||||
@@ -55,6 +55,7 @@ import { PodDetails } from "../components/+workloads-pods";
|
||||
import { ReplicaSetDetails } from "../components/+workloads-replicasets";
|
||||
import { StatefulSetDetails } from "../components/+workloads-statefulsets";
|
||||
import type { KubeObjectDetailsProps } from "../components/kube-object";
|
||||
import type { CustomResourceDefinition } from "../api/endpoints";
|
||||
|
||||
export function intiKubeObjectDetailRegistry() {
|
||||
KubeObjectDetailRegistry.getInstance()
|
||||
@@ -444,6 +445,13 @@ export function intiKubeObjectDetailRegistry() {
|
||||
components: {
|
||||
Details: (props: KubeObjectDetailsProps<KubeObject>) => <KubeEventDetails {...props}/>,
|
||||
}
|
||||
},
|
||||
{
|
||||
kind: "CustomResourceDefinition",
|
||||
apiVersions: ["apiextensions.k8s.io/v1"],
|
||||
components: {
|
||||
Details: (props: KubeObjectDetailsProps<CustomResourceDefinition>) => <CrdResourceDetails {...props}/>,
|
||||
}
|
||||
}
|
||||
]);
|
||||
}
|
||||
Reference in new issue
Block a user