@backstage/plugin-kubernetes-react 0.0.0-nightly-20230927021302

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,770 @@
1
+ import { Entity } from '@backstage/catalog-model';
2
+ import { ObjectsByEntityResponse, CustomResourceMatcher, ClientPodStatus, GroupedResponses, ClusterAttributes, DetectedError, KubernetesRequestBody, WorkloadsByEntityRequest, CustomObjectsByEntityRequest, ClusterObjects, DetectedErrorsByCluster, ClientContainerStatus } from '@backstage/plugin-kubernetes-common';
3
+ import * as React from 'react';
4
+ import React__default from 'react';
5
+ import { IObjectMeta, IIoK8sApimachineryPkgApisMetaV1ObjectMeta } from '@kubernetes-models/apimachinery/apis/meta/v1/ObjectMeta';
6
+ import { TypeMeta } from '@kubernetes-models/base';
7
+ import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
8
+ import { OAuthApi, OpenIdConnectApi, DiscoveryApi, IdentityApi } from '@backstage/core-plugin-api';
9
+ import * as kubernetes_models_v1 from 'kubernetes-models/v1';
10
+ import { Event, Pod, IContainer, IContainerStatus } from 'kubernetes-models/v1';
11
+ import { V1HorizontalPodAutoscaler, V1Job, V1ObjectMeta, V1Pod } from '@kubernetes/client-node';
12
+ import * as react_use_lib_useAsyncFn from 'react-use/lib/useAsyncFn';
13
+ import { Pod as Pod$1 } from 'kubernetes-models/v1/Pod';
14
+
15
+ /**
16
+ *
17
+ * @public
18
+ */
19
+ interface KubernetesObjects {
20
+ kubernetesObjects?: ObjectsByEntityResponse;
21
+ loading: boolean;
22
+ error?: string;
23
+ }
24
+ /**
25
+ *
26
+ * @public
27
+ */
28
+ declare const useKubernetesObjects: (entity: Entity, intervalMs?: number) => KubernetesObjects;
29
+
30
+ /**
31
+ * Retrieves the provided custom resources related to the provided entity, refreshes at an interval.
32
+ *
33
+ * @public
34
+ */
35
+ declare const useCustomResources: (entity: Entity, customResourceMatchers: CustomResourceMatcher[], intervalMs?: number) => KubernetesObjects;
36
+
37
+ /**
38
+ * @public
39
+ */
40
+ declare const PodNamesWithErrorsContext: React__default.Context<Set<string>>;
41
+
42
+ /**
43
+ * @public
44
+ */
45
+ declare const PodNamesWithMetricsContext: React__default.Context<Map<string, ClientPodStatus>>;
46
+
47
+ /**
48
+ *
49
+ *
50
+ * @public
51
+ */
52
+ declare const GroupedResponsesContext: React__default.Context<GroupedResponses>;
53
+
54
+ /**
55
+ * @public
56
+ */
57
+ declare const ClusterContext: React__default.Context<ClusterAttributes>;
58
+
59
+ /**
60
+ * Context for Pod Metrics
61
+ *
62
+ * @public
63
+ */
64
+ declare const PodMetricsContext: React__default.Context<Map<string, ClientPodStatus[]>>;
65
+ /**
66
+ * @public
67
+ */
68
+ type PodMetricsMatcher = {
69
+ metadata?: IObjectMeta;
70
+ };
71
+ /**
72
+ * Find metrics matching the provided pod
73
+ *
74
+ * @public
75
+ */
76
+ declare const usePodMetrics: (clusterName: string, matcher: PodMetricsMatcher) => ClientPodStatus | undefined;
77
+
78
+ /**
79
+ * Context for detected errors
80
+ *
81
+ * @public
82
+ */
83
+ declare const DetectedErrorsContext: React__default.Context<DetectedError[]>;
84
+ /**
85
+ *
86
+ * @public
87
+ */
88
+ type ErrorMatcher = {
89
+ metadata?: IIoK8sApimachineryPkgApisMetaV1ObjectMeta;
90
+ } & TypeMeta;
91
+ /**
92
+ * Find errors which match the resource
93
+ *
94
+ * @public
95
+ */
96
+ declare const useMatchingErrors: (matcher: ErrorMatcher) => DetectedError[];
97
+
98
+ /** @public */
99
+ declare const kubernetesApiRef: _backstage_core_plugin_api.ApiRef<KubernetesApi>;
100
+ /** @public */
101
+ declare const kubernetesProxyApiRef: _backstage_core_plugin_api.ApiRef<KubernetesProxyApi>;
102
+ /** @public */
103
+ interface KubernetesApi {
104
+ getObjectsByEntity(requestBody: KubernetesRequestBody): Promise<ObjectsByEntityResponse>;
105
+ getClusters(): Promise<{
106
+ name: string;
107
+ authProvider: string;
108
+ oidcTokenProvider?: string | undefined;
109
+ }[]>;
110
+ getWorkloadsByEntity(request: WorkloadsByEntityRequest): Promise<ObjectsByEntityResponse>;
111
+ getCustomObjectsByEntity(request: CustomObjectsByEntityRequest): Promise<ObjectsByEntityResponse>;
112
+ proxy(options: {
113
+ clusterName: string;
114
+ path: string;
115
+ init?: RequestInit;
116
+ }): Promise<Response>;
117
+ }
118
+ /** @public */
119
+ interface KubernetesProxyApi {
120
+ getPodLogs(request: {
121
+ podName: string;
122
+ namespace: string;
123
+ clusterName: string;
124
+ containerName: string;
125
+ previous?: boolean;
126
+ }): Promise<{
127
+ text: string;
128
+ }>;
129
+ getEventsByInvolvedObjectName(request: {
130
+ clusterName: string;
131
+ involvedObjectName: string;
132
+ namespace: string;
133
+ }): Promise<Event[]>;
134
+ }
135
+
136
+ /** @public */
137
+ interface KubernetesAuthProvider {
138
+ decorateRequestBodyForAuth(requestBody: KubernetesRequestBody): Promise<KubernetesRequestBody>;
139
+ getCredentials(): Promise<{
140
+ token?: string;
141
+ }>;
142
+ }
143
+ /** @public */
144
+ declare const kubernetesAuthProvidersApiRef: _backstage_core_plugin_api.ApiRef<KubernetesAuthProvidersApi>;
145
+ /** @public */
146
+ interface KubernetesAuthProvidersApi {
147
+ decorateRequestBodyForAuth(authProvider: string, requestBody: KubernetesRequestBody): Promise<KubernetesRequestBody>;
148
+ getCredentials(authProvider: string): Promise<{
149
+ token?: string;
150
+ }>;
151
+ }
152
+
153
+ /** @public */
154
+ declare class KubernetesAuthProviders implements KubernetesAuthProvidersApi {
155
+ private readonly kubernetesAuthProviderMap;
156
+ constructor(options: {
157
+ microsoftAuthApi: OAuthApi;
158
+ googleAuthApi: OAuthApi;
159
+ oidcProviders?: {
160
+ [key: string]: OpenIdConnectApi;
161
+ };
162
+ });
163
+ decorateRequestBodyForAuth(authProvider: string, requestBody: KubernetesRequestBody): Promise<KubernetesRequestBody>;
164
+ getCredentials(authProvider: string): Promise<{
165
+ token?: string;
166
+ }>;
167
+ }
168
+
169
+ /** @public */
170
+ declare class GoogleKubernetesAuthProvider implements KubernetesAuthProvider {
171
+ authProvider: OAuthApi;
172
+ constructor(authProvider: OAuthApi);
173
+ decorateRequestBodyForAuth(requestBody: KubernetesRequestBody): Promise<KubernetesRequestBody>;
174
+ getCredentials(): Promise<{
175
+ token: string;
176
+ }>;
177
+ }
178
+
179
+ /**
180
+ * No-op KubernetesAuthProvider, authorization will be handled in the kubernetes-backend plugin
181
+ *
182
+ * @public
183
+ */
184
+ declare class ServerSideKubernetesAuthProvider implements KubernetesAuthProvider {
185
+ decorateRequestBodyForAuth(requestBody: KubernetesRequestBody): Promise<KubernetesRequestBody>;
186
+ getCredentials(): Promise<{}>;
187
+ }
188
+
189
+ /** @public */
190
+ declare class OidcKubernetesAuthProvider implements KubernetesAuthProvider {
191
+ providerName: string;
192
+ authProvider: OpenIdConnectApi;
193
+ constructor(providerName: string, authProvider: OpenIdConnectApi);
194
+ decorateRequestBodyForAuth(requestBody: KubernetesRequestBody): Promise<KubernetesRequestBody>;
195
+ getCredentials(): Promise<{
196
+ token: string;
197
+ }>;
198
+ }
199
+
200
+ /** @public */
201
+ declare class AksKubernetesAuthProvider implements KubernetesAuthProvider {
202
+ private readonly microsoftAuthApi;
203
+ constructor(microsoftAuthApi: OAuthApi);
204
+ decorateRequestBodyForAuth(requestBody: KubernetesRequestBody): Promise<KubernetesRequestBody>;
205
+ getCredentials(): Promise<{
206
+ token?: string;
207
+ }>;
208
+ }
209
+
210
+ /** @public */
211
+ declare class KubernetesBackendClient implements KubernetesApi {
212
+ private readonly discoveryApi;
213
+ private readonly identityApi;
214
+ private readonly kubernetesAuthProvidersApi;
215
+ constructor(options: {
216
+ discoveryApi: DiscoveryApi;
217
+ identityApi: IdentityApi;
218
+ kubernetesAuthProvidersApi: KubernetesAuthProvidersApi;
219
+ });
220
+ private handleResponse;
221
+ private postRequired;
222
+ private getCluster;
223
+ private getCredentials;
224
+ getObjectsByEntity(requestBody: KubernetesRequestBody): Promise<ObjectsByEntityResponse>;
225
+ getWorkloadsByEntity(request: WorkloadsByEntityRequest): Promise<ObjectsByEntityResponse>;
226
+ getCustomObjectsByEntity(request: CustomObjectsByEntityRequest): Promise<ObjectsByEntityResponse>;
227
+ getClusters(): Promise<{
228
+ name: string;
229
+ authProvider: string;
230
+ }[]>;
231
+ proxy(options: {
232
+ clusterName: string;
233
+ path: string;
234
+ init?: RequestInit;
235
+ }): Promise<Response>;
236
+ }
237
+
238
+ /**
239
+ * A client for common requests through the proxy endpoint of the kubernetes backend plugin.
240
+ *
241
+ * @public
242
+ */
243
+ declare class KubernetesProxyClient {
244
+ private readonly kubernetesApi;
245
+ constructor(options: {
246
+ kubernetesApi: KubernetesApi;
247
+ });
248
+ private handleText;
249
+ private handleJson;
250
+ getEventsByInvolvedObjectName({ clusterName, involvedObjectName, namespace, }: {
251
+ clusterName: string;
252
+ involvedObjectName: string;
253
+ namespace: string;
254
+ }): Promise<Event[]>;
255
+ getPodLogs({ podName, namespace, clusterName, containerName, previous, }: {
256
+ podName: string;
257
+ namespace: string;
258
+ clusterName: string;
259
+ containerName: string;
260
+ previous?: boolean;
261
+ }): Promise<{
262
+ text: string;
263
+ }>;
264
+ }
265
+
266
+ /**
267
+ * Props for Cluster
268
+ *
269
+ * @public
270
+ */
271
+ type ClusterProps = {
272
+ clusterObjects: ClusterObjects;
273
+ podsWithErrors: Set<string>;
274
+ children?: React__default.ReactNode;
275
+ };
276
+ /**
277
+ * Component for rendering Kubernetes resources in a cluster
278
+ *
279
+ * @public
280
+ */
281
+ declare const Cluster: ({ clusterObjects, podsWithErrors }: ClusterProps) => React__default.JSX.Element;
282
+
283
+ /**
284
+ *
285
+ *
286
+ * @public
287
+ */
288
+ type CronJobsAccordionsProps = {
289
+ children?: React__default.ReactNode;
290
+ };
291
+ /**
292
+ *
293
+ *
294
+ * @public
295
+ */
296
+ declare const CronJobsAccordions: ({}: CronJobsAccordionsProps) => React__default.JSX.Element;
297
+
298
+ /**
299
+ *
300
+ *
301
+ * @public
302
+ */
303
+ interface CustomResourcesProps {
304
+ children?: React__default.ReactNode;
305
+ }
306
+ /**
307
+ *
308
+ *
309
+ * @public
310
+ */
311
+ declare const CustomResources: ({}: CustomResourcesProps) => React__default.JSX.Element;
312
+
313
+ /**
314
+ *
315
+ *
316
+ * @public
317
+ */
318
+ type ErrorPanelProps = {
319
+ entityName: string;
320
+ errorMessage?: string;
321
+ clustersWithErrors?: ClusterObjects[];
322
+ children?: React__default.ReactNode;
323
+ };
324
+ /**
325
+ *
326
+ *
327
+ * @public
328
+ */
329
+ declare const ErrorPanel: ({ entityName, errorMessage, clustersWithErrors, }: ErrorPanelProps) => React__default.JSX.Element;
330
+
331
+ /**
332
+ *
333
+ *
334
+ * @public
335
+ */
336
+ type ErrorReportingProps = {
337
+ detectedErrors: DetectedErrorsByCluster;
338
+ };
339
+ /**
340
+ *
341
+ *
342
+ * @public
343
+ */
344
+ declare const ErrorReporting: ({ detectedErrors }: ErrorReportingProps) => React.JSX.Element;
345
+
346
+ /** @public */
347
+ declare const HorizontalPodAutoscalerDrawer: (props: {
348
+ hpa: V1HorizontalPodAutoscaler;
349
+ expanded?: boolean;
350
+ children?: React__default.ReactNode;
351
+ }) => React__default.JSX.Element;
352
+
353
+ /**
354
+ *
355
+ *
356
+ * @public
357
+ */
358
+ type IngressesAccordionsProps = {};
359
+ /**
360
+ *
361
+ *
362
+ * @public
363
+ */
364
+ declare const IngressesAccordions: ({}: IngressesAccordionsProps) => React__default.JSX.Element;
365
+
366
+ /**
367
+ *
368
+ *
369
+ * @public
370
+ */
371
+ type JobsAccordionsProps = {
372
+ jobs: V1Job[];
373
+ children?: React__default.ReactNode;
374
+ };
375
+ /**
376
+ *
377
+ *
378
+ * @public
379
+ */
380
+ declare const JobsAccordions: ({ jobs }: JobsAccordionsProps) => React__default.JSX.Element;
381
+
382
+ /**
383
+ *
384
+ *
385
+ * @public
386
+ */
387
+ type LinkErrorPanelProps = {
388
+ cluster: ClusterAttributes;
389
+ errorMessage?: string;
390
+ children?: React__default.ReactNode;
391
+ };
392
+ /**
393
+ *
394
+ *
395
+ * @public
396
+ */
397
+ declare const LinkErrorPanel: ({ cluster, errorMessage, }: LinkErrorPanelProps) => React__default.JSX.Element;
398
+ /**
399
+ *
400
+ *
401
+ * @public
402
+ */
403
+ interface KubernetesDrawerable {
404
+ metadata?: V1ObjectMeta;
405
+ }
406
+ /**
407
+ *
408
+ * @public
409
+ */
410
+ interface KubernetesStructuredMetadataTableDrawerProps<T extends KubernetesDrawerable> {
411
+ object: T;
412
+ renderObject: (obj: T) => object;
413
+ buttonVariant?: 'h5' | 'subtitle2';
414
+ kind: string;
415
+ expanded?: boolean;
416
+ children?: React__default.ReactNode;
417
+ }
418
+ /**
419
+ *
420
+ * @public
421
+ */
422
+ declare const KubernetesStructuredMetadataTableDrawer: <T extends KubernetesDrawerable>({ object, renderObject, kind, buttonVariant, expanded, children, }: KubernetesStructuredMetadataTableDrawerProps<T>) => React__default.JSX.Element;
423
+
424
+ /**
425
+ * The type of object that can be represented by the Drawer
426
+ *
427
+ * @public
428
+ */
429
+ interface KubernetesObject {
430
+ kind: string;
431
+ metadata?: IObjectMeta;
432
+ }
433
+ /**
434
+ * Props of KubernetesDrawer
435
+ *
436
+ * @public
437
+ */
438
+ interface KubernetesDrawerProps {
439
+ open?: boolean;
440
+ kubernetesObject: KubernetesObject;
441
+ label: React__default.ReactNode;
442
+ drawerContentsHeader?: React__default.ReactNode;
443
+ children?: React__default.ReactNode;
444
+ }
445
+ /**
446
+ * Button/Drawer component for Kubernetes Objects
447
+ *
448
+ * @public
449
+ */
450
+ declare const KubernetesDrawer: ({ open, label, drawerContentsHeader, kubernetesObject, children, }: KubernetesDrawerProps) => React__default.JSX.Element;
451
+
452
+ /**
453
+ * Props of ManifestYaml
454
+ *
455
+ * @public
456
+ */
457
+ interface ManifestYamlProps {
458
+ object: object;
459
+ }
460
+ /**
461
+ * Renders a Kubernetes object as a YAML code snippet
462
+ *
463
+ * @public
464
+ */
465
+ declare const ManifestYaml: ({ object }: ManifestYamlProps) => React__default.JSX.Element;
466
+
467
+ /**
468
+ * Wraps a pod with the associated detected errors and cluster name
469
+ *
470
+ * @public
471
+ */
472
+ interface PodAndErrors {
473
+ clusterName: string;
474
+ pod: Pod;
475
+ errors: DetectedError[];
476
+ }
477
+
478
+ /**
479
+ * Props for PodDrawer
480
+ *
481
+ * @public
482
+ */
483
+ interface PodDrawerProps {
484
+ open?: boolean;
485
+ podAndErrors: PodAndErrors;
486
+ }
487
+ /**
488
+ * A Drawer for Kubernetes Pods
489
+ *
490
+ * @public
491
+ */
492
+ declare const PodDrawer: ({ podAndErrors, open }: PodDrawerProps) => React__default.JSX.Element;
493
+
494
+ /**
495
+ * Contains the details needed to make a log request to Kubernetes, except the container name
496
+ *
497
+ * @public
498
+ */
499
+ interface PodScope {
500
+ podName: string;
501
+ podNamespace: string;
502
+ clusterName: string;
503
+ }
504
+ /**
505
+ * Contains the details needed to make a log request to Kubernetes
506
+ *
507
+ * @public
508
+ */
509
+ interface ContainerScope extends PodScope {
510
+ containerName: string;
511
+ }
512
+
513
+ /**
514
+ * Props for PodLogs
515
+ *
516
+ * @public
517
+ */
518
+ interface PodLogsProps {
519
+ containerScope: ContainerScope;
520
+ previous?: boolean;
521
+ }
522
+ /**
523
+ * Shows the logs for the given pod
524
+ *
525
+ * @public
526
+ */
527
+ declare const PodLogs: React__default.FC<PodLogsProps>;
528
+
529
+ /**
530
+ * Props for PodLogsDialog
531
+ *
532
+ * @public
533
+ */
534
+ interface PodLogsDialogProps {
535
+ containerScope: ContainerScope;
536
+ }
537
+ /**
538
+ * Shows the logs for the given pod in a Dialog
539
+ *
540
+ * @public
541
+ */
542
+ declare const PodLogsDialog: ({ containerScope }: PodLogsDialogProps) => React__default.JSX.Element;
543
+
544
+ /**
545
+ * Arguments for usePodLogs
546
+ *
547
+ * @public
548
+ */
549
+ interface PodLogsOptions {
550
+ containerScope: ContainerScope;
551
+ previous?: boolean;
552
+ }
553
+ /**
554
+ * Retrieves the logs for the given pod
555
+ *
556
+ * @public
557
+ */
558
+ declare const usePodLogs: ({ containerScope, previous }: PodLogsOptions) => react_use_lib_useAsyncFn.AsyncState<{
559
+ text: string;
560
+ }>;
561
+
562
+ /**
563
+ * Props for ContainerCard
564
+ *
565
+ * @public
566
+ */
567
+ interface ContainerCardProps {
568
+ podScope: PodScope;
569
+ containerSpec?: IContainer;
570
+ containerStatus: IContainerStatus;
571
+ containerMetrics?: ClientContainerStatus;
572
+ }
573
+ /**
574
+ * Shows details about a container within a pod
575
+ *
576
+ * @public
577
+ */
578
+ declare const ContainerCard: React__default.FC<ContainerCardProps>;
579
+
580
+ /**
581
+ * Props for PendingPodContent
582
+ *
583
+ * @public
584
+ */
585
+ interface PendingPodContentProps {
586
+ pod: Pod;
587
+ }
588
+ /**
589
+ * Shows details about pod's conditions as it starts
590
+ *
591
+ * @public
592
+ */
593
+ declare const PendingPodContent: ({ pod }: PendingPodContentProps) => React__default.JSX.Element;
594
+
595
+ /**
596
+ * Props for FixDialog
597
+ *
598
+ * @public
599
+ */
600
+ interface FixDialogProps {
601
+ open?: boolean;
602
+ clusterName: string;
603
+ pod: Pod$1;
604
+ error: DetectedError;
605
+ }
606
+ /**
607
+ * A dialog for fixing detected Kubernetes errors
608
+ *
609
+ * @public
610
+ */
611
+ declare const FixDialog: React__default.FC<FixDialogProps>;
612
+
613
+ /**
614
+ * Props for Events
615
+ *
616
+ * @public
617
+ */
618
+ interface EventsContentProps {
619
+ warningEventsOnly?: boolean;
620
+ events: Event[];
621
+ }
622
+ /**
623
+ * Shows given Kubernetes events
624
+ *
625
+ * @public
626
+ */
627
+ declare const EventsContent: ({ events, warningEventsOnly, }: EventsContentProps) => React__default.JSX.Element;
628
+ /**
629
+ * Props for Events
630
+ *
631
+ * @public
632
+ */
633
+ interface EventsProps {
634
+ involvedObjectName: string;
635
+ namespace: string;
636
+ clusterName: string;
637
+ warningEventsOnly?: boolean;
638
+ }
639
+ /**
640
+ * Retrieves and shows Kubernetes events for the given object
641
+ *
642
+ * @public
643
+ */
644
+ declare const Events: ({ involvedObjectName, namespace, clusterName, warningEventsOnly, }: EventsProps) => React__default.JSX.Element;
645
+
646
+ /**
647
+ * Arguments for useEvents
648
+ *
649
+ * @public
650
+ */
651
+ interface EventsOptions {
652
+ involvedObjectName: string;
653
+ namespace: string;
654
+ clusterName: string;
655
+ }
656
+ /**
657
+ * Retrieves the events for the given object
658
+ *
659
+ * @public
660
+ */
661
+ declare const useEvents: ({ involvedObjectName, namespace, clusterName, }: EventsOptions) => react_use_lib_useAsyncFn.AsyncState<kubernetes_models_v1.Event[]>;
662
+
663
+ /**
664
+ * Props for ErrorList
665
+ *
666
+ * @public
667
+ */
668
+ interface ErrorListProps {
669
+ podAndErrors: PodAndErrors[];
670
+ }
671
+ /**
672
+ * Shows a list of errors found on a Pod
673
+ *
674
+ * @public
675
+ */
676
+ declare const ErrorList: ({ podAndErrors }: ErrorListProps) => React__default.JSX.Element;
677
+
678
+ /**
679
+ *
680
+ *
681
+ * @public
682
+ */
683
+ declare const READY_COLUMNS: PodColumns;
684
+ /**
685
+ *
686
+ *
687
+ * @public
688
+ */
689
+ declare const RESOURCE_COLUMNS: PodColumns;
690
+ /**
691
+ *
692
+ *
693
+ * @public
694
+ */
695
+ type PodColumns = 'READY' | 'RESOURCE';
696
+ /**
697
+ *
698
+ *
699
+ * @public
700
+ */
701
+ type PodsTablesProps = {
702
+ pods: Pod$1 | V1Pod[];
703
+ extraColumns?: PodColumns[];
704
+ children?: React__default.ReactNode;
705
+ };
706
+ /**
707
+ *
708
+ *
709
+ * @public
710
+ */
711
+ declare const PodsTable: ({ pods, extraColumns }: PodsTablesProps) => React__default.JSX.Element;
712
+
713
+ /**
714
+ *
715
+ *
716
+ * @public
717
+ */
718
+ type ServicesAccordionsProps = {};
719
+ /**
720
+ *
721
+ *
722
+ * @public
723
+ */
724
+ declare const ServicesAccordions: ({}: ServicesAccordionsProps) => React__default.JSX.Element;
725
+
726
+ /**
727
+ * Context for Pod Metrics
728
+ *
729
+ * @public
730
+ */
731
+ interface ResourceUtilizationProps {
732
+ compressed?: boolean;
733
+ title: string;
734
+ usage: number | string;
735
+ total: number | string;
736
+ totalFormatted: string;
737
+ }
738
+ /**
739
+ * Context for Pod Metrics
740
+ *
741
+ * @public
742
+ */
743
+ declare const ResourceUtilization: ({ compressed, title, usage, total, totalFormatted, }: ResourceUtilizationProps) => React__default.JSX.Element;
744
+
745
+ /**
746
+ * Props drilled down to the PodExecTerminal component
747
+ *
748
+ * @public
749
+ */
750
+ interface PodExecTerminalProps {
751
+ clusterName: string;
752
+ containerName: string;
753
+ podName: string;
754
+ podNamespace: string;
755
+ }
756
+ /**
757
+ * Executes a `/bin/sh` process in the given pod's container and opens a terminal connected to it
758
+ *
759
+ * @public
760
+ */
761
+ declare const PodExecTerminal: (props: PodExecTerminalProps) => React__default.JSX.Element;
762
+
763
+ /**
764
+ * Opens a terminal connected to the given pod's container in a dialog
765
+ *
766
+ * @public
767
+ */
768
+ declare const PodExecTerminalDialog: (props: PodExecTerminalProps) => React__default.JSX.Element;
769
+
770
+ export { AksKubernetesAuthProvider, Cluster, ClusterContext, ClusterProps, ContainerCard, ContainerCardProps, ContainerScope, CronJobsAccordions, CronJobsAccordionsProps, CustomResources, CustomResourcesProps, DetectedErrorsContext, ErrorList, ErrorListProps, ErrorMatcher, ErrorPanel, ErrorPanelProps, ErrorReporting, ErrorReportingProps, Events, EventsContent, EventsContentProps, EventsOptions, EventsProps, FixDialog, FixDialogProps, GoogleKubernetesAuthProvider, GroupedResponsesContext, HorizontalPodAutoscalerDrawer, IngressesAccordions, IngressesAccordionsProps, JobsAccordions, JobsAccordionsProps, KubernetesApi, KubernetesAuthProvider, KubernetesAuthProviders, KubernetesAuthProvidersApi, KubernetesBackendClient, KubernetesDrawer, KubernetesDrawerProps, KubernetesDrawerable, KubernetesObject, KubernetesObjects, KubernetesProxyApi, KubernetesProxyClient, KubernetesStructuredMetadataTableDrawer, KubernetesStructuredMetadataTableDrawerProps, LinkErrorPanel, LinkErrorPanelProps, ManifestYaml, ManifestYamlProps, OidcKubernetesAuthProvider, PendingPodContent, PendingPodContentProps, PodAndErrors, PodColumns, PodDrawer, PodDrawerProps, PodExecTerminal, PodExecTerminalDialog, PodExecTerminalProps, PodLogs, PodLogsDialog, PodLogsDialogProps, PodLogsOptions, PodLogsProps, PodMetricsContext, PodMetricsMatcher, PodNamesWithErrorsContext, PodNamesWithMetricsContext, PodScope, PodsTable, PodsTablesProps, READY_COLUMNS, RESOURCE_COLUMNS, ResourceUtilization, ResourceUtilizationProps, ServerSideKubernetesAuthProvider, ServicesAccordions, ServicesAccordionsProps, kubernetesApiRef, kubernetesAuthProvidersApiRef, kubernetesProxyApiRef, useCustomResources, useEvents, useKubernetesObjects, useMatchingErrors, usePodLogs, usePodMetrics };