mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Extract pod container metrics to its own injection token.
Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
This commit is contained in:
1 parent
be0028cc5e
commit
03a87f9549
8 files changed
+177
-63
No files matched your search
@@ -16,11 +16,22 @@ export const clusterOverviewUIBlockInjectionToken = getInjectionToken<ClusterOve
|
||||
id: "cluster-overview-ui-block-injection-token",
|
||||
});
|
||||
|
||||
export type KubeObjectDetailMetrics = {
|
||||
id: string;
|
||||
Component: React.ElementType;
|
||||
};
|
||||
export type KubeObjectDetailMetrics = React.ElementType;
|
||||
|
||||
export const podDetailsMetricsInjectionToken = getInjectionToken<KubeObjectDetailMetrics>({
|
||||
id: "pod-details-metrics-injection-token",
|
||||
});
|
||||
|
||||
export interface PodDetailsContainerMetricsComponentProps {
|
||||
container: any;
|
||||
pod: any;
|
||||
}
|
||||
export interface PodDetailsContainerMetricsComponent {
|
||||
id: string;
|
||||
Component: React.ComponentType<PodDetailsContainerMetricsComponentProps>;
|
||||
}
|
||||
|
||||
export const podDetailsContainerMetricsInjectionToken =
|
||||
getInjectionToken<PodDetailsContainerMetricsComponent>({
|
||||
id: "pod-details-container-metrics-injection-token",
|
||||
});
|
||||
Reference in new issue
Block a user