@backstage/plugin-kubernetes 0.10.2 → 0.10.3-next.1
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.
- package/CHANGELOG.md +12 -11
- package/dist/index.d.ts +49 -48
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes
|
|
2
2
|
|
|
3
|
-
## 0.10.
|
|
3
|
+
## 0.10.3-next.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- 6a5e04e20e6e: fix logs dialog min height
|
|
7
8
|
- Updated dependencies
|
|
8
|
-
- @backstage/plugin-
|
|
9
|
-
- @backstage/catalog-
|
|
10
|
-
- @backstage/
|
|
11
|
-
- @backstage/
|
|
12
|
-
- @backstage/
|
|
9
|
+
- @backstage/plugin-kubernetes-common@0.6.6-next.0
|
|
10
|
+
- @backstage/plugin-catalog-react@1.8.4-next.1
|
|
11
|
+
- @backstage/core-components@0.13.5-next.1
|
|
12
|
+
- @backstage/config@1.1.0-next.0
|
|
13
|
+
- @backstage/catalog-model@1.4.2-next.0
|
|
14
|
+
- @backstage/core-plugin-api@1.6.0-next.1
|
|
13
15
|
- @backstage/errors@1.2.1
|
|
14
16
|
- @backstage/theme@0.4.1
|
|
15
|
-
- @backstage/plugin-kubernetes-common@0.6.5
|
|
16
17
|
|
|
17
|
-
## 0.10.
|
|
18
|
+
## 0.10.2-next.0
|
|
18
19
|
|
|
19
20
|
### Patch Changes
|
|
20
21
|
|
|
21
22
|
- Updated dependencies
|
|
22
|
-
- @backstage/plugin-
|
|
23
|
+
- @backstage/core-plugin-api@1.6.0-next.0
|
|
24
|
+
- @backstage/core-components@0.13.5-next.0
|
|
23
25
|
- @backstage/catalog-model@1.4.1
|
|
24
26
|
- @backstage/config@1.0.8
|
|
25
|
-
- @backstage/core-components@0.13.4
|
|
26
|
-
- @backstage/core-plugin-api@1.5.3
|
|
27
27
|
- @backstage/errors@1.2.1
|
|
28
28
|
- @backstage/theme@0.4.1
|
|
29
|
+
- @backstage/plugin-catalog-react@1.8.3-next.0
|
|
29
30
|
- @backstage/plugin-kubernetes-common@0.6.5
|
|
30
31
|
|
|
31
32
|
## 0.10.0
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
3
3
|
import { OAuthApi, OpenIdConnectApi, DiscoveryApi, IdentityApi } from '@backstage/core-plugin-api';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import React__default from 'react';
|
|
4
6
|
import { Entity } from '@backstage/catalog-model';
|
|
5
7
|
import { KubernetesRequestBody, ObjectsByEntityResponse, WorkloadsByEntityRequest, CustomObjectsByEntityRequest, ClusterObjects, ClusterAttributes, ClientContainerStatus, CustomResourceMatcher, ClientPodStatus } from '@backstage/plugin-kubernetes-common';
|
|
6
8
|
import * as kubernetes_models_v1 from 'kubernetes-models/v1';
|
|
7
9
|
import { Event, Pod, IContainer, IContainerStatus } from 'kubernetes-models/v1';
|
|
8
10
|
import { JsonObject } from '@backstage/types';
|
|
9
11
|
import { V1Pod, V1ReplicaSet, V1Deployment, V1HorizontalPodAutoscaler, V1Service, V1ConfigMap, V1Ingress, V1Job, V1CronJob, V1StatefulSet, V1ObjectMeta } from '@kubernetes/client-node';
|
|
10
|
-
import React from 'react';
|
|
11
12
|
import { IObjectMeta, IIoK8sApimachineryPkgApisMetaV1ObjectMeta } from '@kubernetes-models/apimachinery/apis/meta/v1/ObjectMeta';
|
|
12
13
|
import * as react_use_lib_useAsyncFn from 'react-use/lib/useAsyncFn';
|
|
13
14
|
import { Pod as Pod$1 } from 'kubernetes-models/v1/Pod';
|
|
@@ -32,7 +33,7 @@ declare const EntityKubernetesContent: (props: EntityKubernetesContentProps) =>
|
|
|
32
33
|
declare const isKubernetesAvailable: (entity: Entity) => boolean;
|
|
33
34
|
declare const Router: (props: {
|
|
34
35
|
refreshIntervalMs?: number;
|
|
35
|
-
}) => JSX.Element;
|
|
36
|
+
}) => React__default.JSX.Element;
|
|
36
37
|
|
|
37
38
|
declare const kubernetesApiRef: _backstage_core_plugin_api.ApiRef<KubernetesApi>;
|
|
38
39
|
declare const kubernetesProxyApiRef: _backstage_core_plugin_api.ApiRef<KubernetesProxyApi>;
|
|
@@ -208,27 +209,27 @@ declare const clusterLinksFormatters: Record<string, ClusterLinksFormatter>;
|
|
|
208
209
|
type ClusterProps = {
|
|
209
210
|
clusterObjects: ClusterObjects;
|
|
210
211
|
podsWithErrors: Set<string>;
|
|
211
|
-
children?:
|
|
212
|
+
children?: React__default.ReactNode;
|
|
212
213
|
};
|
|
213
|
-
declare const Cluster: ({ clusterObjects, podsWithErrors }: ClusterProps) => JSX.Element;
|
|
214
|
+
declare const Cluster: ({ clusterObjects, podsWithErrors }: ClusterProps) => React__default.JSX.Element;
|
|
214
215
|
|
|
215
216
|
type CronJobsAccordionsProps = {
|
|
216
|
-
children?:
|
|
217
|
+
children?: React__default.ReactNode;
|
|
217
218
|
};
|
|
218
|
-
declare const CronJobsAccordions: ({}: CronJobsAccordionsProps) => JSX.Element;
|
|
219
|
+
declare const CronJobsAccordions: ({}: CronJobsAccordionsProps) => React__default.JSX.Element;
|
|
219
220
|
|
|
220
221
|
interface CustomResourcesProps {
|
|
221
|
-
children?:
|
|
222
|
+
children?: React__default.ReactNode;
|
|
222
223
|
}
|
|
223
|
-
declare const CustomResources: ({}: CustomResourcesProps) => JSX.Element;
|
|
224
|
+
declare const CustomResources: ({}: CustomResourcesProps) => React__default.JSX.Element;
|
|
224
225
|
|
|
225
226
|
type ErrorPanelProps$1 = {
|
|
226
227
|
entityName: string;
|
|
227
228
|
errorMessage?: string;
|
|
228
229
|
clustersWithErrors?: ClusterObjects[];
|
|
229
|
-
children?:
|
|
230
|
+
children?: React__default.ReactNode;
|
|
230
231
|
};
|
|
231
|
-
declare const ErrorPanel: ({ entityName, errorMessage, clustersWithErrors, }: ErrorPanelProps$1) => JSX.Element;
|
|
232
|
+
declare const ErrorPanel: ({ entityName, errorMessage, clustersWithErrors, }: ErrorPanelProps$1) => React__default.JSX.Element;
|
|
232
233
|
|
|
233
234
|
/**
|
|
234
235
|
* Severity of the error, where 10 is critical and 0 is very low.
|
|
@@ -296,30 +297,30 @@ declare const detectErrors: (objects: ObjectsByEntityResponse) => DetectedErrors
|
|
|
296
297
|
type ErrorReportingProps = {
|
|
297
298
|
detectedErrors: DetectedErrorsByCluster;
|
|
298
299
|
};
|
|
299
|
-
declare const ErrorReporting: ({ detectedErrors }: ErrorReportingProps) => JSX.Element;
|
|
300
|
+
declare const ErrorReporting: ({ detectedErrors }: ErrorReportingProps) => React.JSX.Element;
|
|
300
301
|
|
|
301
302
|
/** @public */
|
|
302
303
|
declare const HorizontalPodAutoscalerDrawer: (props: {
|
|
303
304
|
hpa: V1HorizontalPodAutoscaler;
|
|
304
305
|
expanded?: boolean;
|
|
305
|
-
children?:
|
|
306
|
-
}) => JSX.Element;
|
|
306
|
+
children?: React__default.ReactNode;
|
|
307
|
+
}) => React__default.JSX.Element;
|
|
307
308
|
|
|
308
309
|
type IngressesAccordionsProps = {};
|
|
309
|
-
declare const IngressesAccordions: ({}: IngressesAccordionsProps) => JSX.Element;
|
|
310
|
+
declare const IngressesAccordions: ({}: IngressesAccordionsProps) => React__default.JSX.Element;
|
|
310
311
|
|
|
311
312
|
type JobsAccordionsProps = {
|
|
312
313
|
jobs: V1Job[];
|
|
313
|
-
children?:
|
|
314
|
+
children?: React__default.ReactNode;
|
|
314
315
|
};
|
|
315
|
-
declare const JobsAccordions: ({ jobs }: JobsAccordionsProps) => JSX.Element;
|
|
316
|
+
declare const JobsAccordions: ({ jobs }: JobsAccordionsProps) => React__default.JSX.Element;
|
|
316
317
|
|
|
317
318
|
type ErrorPanelProps = {
|
|
318
319
|
cluster: ClusterAttributes;
|
|
319
320
|
errorMessage?: string;
|
|
320
|
-
children?:
|
|
321
|
+
children?: React__default.ReactNode;
|
|
321
322
|
};
|
|
322
|
-
declare const LinkErrorPanel: ({ cluster, errorMessage }: ErrorPanelProps) => JSX.Element;
|
|
323
|
+
declare const LinkErrorPanel: ({ cluster, errorMessage }: ErrorPanelProps) => React__default.JSX.Element;
|
|
323
324
|
interface KubernetesDrawerable {
|
|
324
325
|
metadata?: V1ObjectMeta;
|
|
325
326
|
}
|
|
@@ -329,9 +330,9 @@ interface KubernetesStructuredMetadataTableDrawerProps<T extends KubernetesDrawe
|
|
|
329
330
|
buttonVariant?: 'h5' | 'subtitle2';
|
|
330
331
|
kind: string;
|
|
331
332
|
expanded?: boolean;
|
|
332
|
-
children?:
|
|
333
|
+
children?: React__default.ReactNode;
|
|
333
334
|
}
|
|
334
|
-
declare const KubernetesStructuredMetadataTableDrawer: <T extends KubernetesDrawerable>({ object, renderObject, kind, buttonVariant, expanded, children, }: KubernetesStructuredMetadataTableDrawerProps<T>) => JSX.Element;
|
|
335
|
+
declare const KubernetesStructuredMetadataTableDrawer: <T extends KubernetesDrawerable>({ object, renderObject, kind, buttonVariant, expanded, children, }: KubernetesStructuredMetadataTableDrawerProps<T>) => React__default.JSX.Element;
|
|
335
336
|
|
|
336
337
|
interface KubernetesObject {
|
|
337
338
|
kind: string;
|
|
@@ -340,18 +341,18 @@ interface KubernetesObject {
|
|
|
340
341
|
interface KubernetesDrawerContentProps {
|
|
341
342
|
close: () => void;
|
|
342
343
|
kubernetesObject: KubernetesObject;
|
|
343
|
-
header?:
|
|
344
|
-
children?:
|
|
344
|
+
header?: React__default.ReactNode;
|
|
345
|
+
children?: React__default.ReactNode;
|
|
345
346
|
}
|
|
346
|
-
declare const KubernetesDrawerContent: ({ children, header, kubernetesObject, close, }: KubernetesDrawerContentProps) => JSX.Element;
|
|
347
|
+
declare const KubernetesDrawerContent: ({ children, header, kubernetesObject, close, }: KubernetesDrawerContentProps) => React__default.JSX.Element;
|
|
347
348
|
interface KubernetesDrawerProps {
|
|
348
349
|
open?: boolean;
|
|
349
350
|
kubernetesObject: KubernetesObject;
|
|
350
|
-
label:
|
|
351
|
-
drawerContentsHeader?:
|
|
352
|
-
children?:
|
|
351
|
+
label: React__default.ReactNode;
|
|
352
|
+
drawerContentsHeader?: React__default.ReactNode;
|
|
353
|
+
children?: React__default.ReactNode;
|
|
353
354
|
}
|
|
354
|
-
declare const KubernetesDrawer: ({ open, label, drawerContentsHeader, kubernetesObject, children, }: KubernetesDrawerProps) => JSX.Element;
|
|
355
|
+
declare const KubernetesDrawer: ({ open, label, drawerContentsHeader, kubernetesObject, children, }: KubernetesDrawerProps) => React__default.JSX.Element;
|
|
355
356
|
|
|
356
357
|
/**
|
|
357
358
|
* Wraps a pod with the associated detected errors and cluster name
|
|
@@ -378,7 +379,7 @@ interface PodDrawerProps {
|
|
|
378
379
|
*
|
|
379
380
|
* @public
|
|
380
381
|
*/
|
|
381
|
-
declare const PodDrawer: ({ podAndErrors, open }: PodDrawerProps) => JSX.Element;
|
|
382
|
+
declare const PodDrawer: ({ podAndErrors, open }: PodDrawerProps) => React__default.JSX.Element;
|
|
382
383
|
|
|
383
384
|
/**
|
|
384
385
|
* Contains the details needed to make a log request to Kubernetes, except the container name
|
|
@@ -413,7 +414,7 @@ interface PodLogsProps {
|
|
|
413
414
|
*
|
|
414
415
|
* @public
|
|
415
416
|
*/
|
|
416
|
-
declare const PodLogs:
|
|
417
|
+
declare const PodLogs: React__default.FC<PodLogsProps>;
|
|
417
418
|
|
|
418
419
|
/**
|
|
419
420
|
* Props for PodLogsDialog
|
|
@@ -428,7 +429,7 @@ interface PodLogsDialogProps {
|
|
|
428
429
|
*
|
|
429
430
|
* @public
|
|
430
431
|
*/
|
|
431
|
-
declare const PodLogsDialog: ({ containerScope }: PodLogsDialogProps) => JSX.Element;
|
|
432
|
+
declare const PodLogsDialog: ({ containerScope }: PodLogsDialogProps) => React__default.JSX.Element;
|
|
432
433
|
|
|
433
434
|
/**
|
|
434
435
|
* Arguments for usePodLogs
|
|
@@ -464,7 +465,7 @@ interface ContainerCardProps {
|
|
|
464
465
|
*
|
|
465
466
|
* @public
|
|
466
467
|
*/
|
|
467
|
-
declare const ContainerCard:
|
|
468
|
+
declare const ContainerCard: React__default.FC<ContainerCardProps>;
|
|
468
469
|
|
|
469
470
|
/**
|
|
470
471
|
* Props for PendingPodContent
|
|
@@ -479,7 +480,7 @@ interface PendingPodContentProps {
|
|
|
479
480
|
*
|
|
480
481
|
* @public
|
|
481
482
|
*/
|
|
482
|
-
declare const PendingPodContent: ({ pod }: PendingPodContentProps) => JSX.Element;
|
|
483
|
+
declare const PendingPodContent: ({ pod }: PendingPodContentProps) => React__default.JSX.Element;
|
|
483
484
|
|
|
484
485
|
/**
|
|
485
486
|
* Props for FixDialog
|
|
@@ -497,7 +498,7 @@ interface FixDialogProps {
|
|
|
497
498
|
*
|
|
498
499
|
* @public
|
|
499
500
|
*/
|
|
500
|
-
declare const FixDialog:
|
|
501
|
+
declare const FixDialog: React__default.FC<FixDialogProps>;
|
|
501
502
|
|
|
502
503
|
/**
|
|
503
504
|
* Props for Events
|
|
@@ -513,7 +514,7 @@ interface EventsContentProps {
|
|
|
513
514
|
*
|
|
514
515
|
* @public
|
|
515
516
|
*/
|
|
516
|
-
declare const EventsContent: ({ events, warningEventsOnly, }: EventsContentProps) => JSX.Element;
|
|
517
|
+
declare const EventsContent: ({ events, warningEventsOnly, }: EventsContentProps) => React__default.JSX.Element;
|
|
517
518
|
/**
|
|
518
519
|
* Props for Events
|
|
519
520
|
*
|
|
@@ -530,7 +531,7 @@ interface EventsProps {
|
|
|
530
531
|
*
|
|
531
532
|
* @public
|
|
532
533
|
*/
|
|
533
|
-
declare const Events: ({ involvedObjectName, namespace, clusterName, warningEventsOnly, }: EventsProps) => JSX.Element;
|
|
534
|
+
declare const Events: ({ involvedObjectName, namespace, clusterName, warningEventsOnly, }: EventsProps) => React__default.JSX.Element;
|
|
534
535
|
|
|
535
536
|
/**
|
|
536
537
|
* Arguments for useEvents
|
|
@@ -562,25 +563,25 @@ interface ErrorListProps {
|
|
|
562
563
|
*
|
|
563
564
|
* @public
|
|
564
565
|
*/
|
|
565
|
-
declare const ErrorList: ({ podAndErrors }: ErrorListProps) => JSX.Element;
|
|
566
|
+
declare const ErrorList: ({ podAndErrors }: ErrorListProps) => React__default.JSX.Element;
|
|
566
567
|
|
|
567
568
|
type PodColumns = 'READY' | 'RESOURCE';
|
|
568
569
|
type PodsTablesProps = {
|
|
569
570
|
pods: Pod$1 | V1Pod[];
|
|
570
571
|
extraColumns?: PodColumns[];
|
|
571
|
-
children?:
|
|
572
|
+
children?: React__default.ReactNode;
|
|
572
573
|
};
|
|
573
|
-
declare const PodsTable: ({ pods, extraColumns }: PodsTablesProps) => JSX.Element;
|
|
574
|
+
declare const PodsTable: ({ pods, extraColumns }: PodsTablesProps) => React__default.JSX.Element;
|
|
574
575
|
|
|
575
576
|
type ServicesAccordionsProps = {};
|
|
576
|
-
declare const ServicesAccordions: ({}: ServicesAccordionsProps) => JSX.Element;
|
|
577
|
+
declare const ServicesAccordions: ({}: ServicesAccordionsProps) => React__default.JSX.Element;
|
|
577
578
|
|
|
578
579
|
type KubernetesContentProps = {
|
|
579
580
|
entity: Entity;
|
|
580
581
|
refreshIntervalMs?: number;
|
|
581
|
-
children?:
|
|
582
|
+
children?: React__default.ReactNode;
|
|
582
583
|
};
|
|
583
|
-
declare const KubernetesContent: ({ entity, refreshIntervalMs, }: KubernetesContentProps) => JSX.Element;
|
|
584
|
+
declare const KubernetesContent: ({ entity, refreshIntervalMs, }: KubernetesContentProps) => React__default.JSX.Element;
|
|
584
585
|
|
|
585
586
|
/**
|
|
586
587
|
* Context for Pod Metrics
|
|
@@ -599,7 +600,7 @@ interface ResourceUtilizationProps {
|
|
|
599
600
|
*
|
|
600
601
|
* @public
|
|
601
602
|
*/
|
|
602
|
-
declare const ResourceUtilization: ({ compressed, title, usage, total, totalFormatted, }: ResourceUtilizationProps) => JSX.Element;
|
|
603
|
+
declare const ResourceUtilization: ({ compressed, title, usage, total, totalFormatted, }: ResourceUtilizationProps) => React__default.JSX.Element;
|
|
603
604
|
|
|
604
605
|
interface KubernetesObjects {
|
|
605
606
|
kubernetesObjects?: ObjectsByEntityResponse;
|
|
@@ -615,20 +616,20 @@ declare const useKubernetesObjects: (entity: Entity, intervalMs?: number) => Kub
|
|
|
615
616
|
*/
|
|
616
617
|
declare const useCustomResources: (entity: Entity, customResourceMatchers: CustomResourceMatcher[], intervalMs?: number) => KubernetesObjects;
|
|
617
618
|
|
|
618
|
-
declare const PodNamesWithErrorsContext:
|
|
619
|
+
declare const PodNamesWithErrorsContext: React__default.Context<Set<string>>;
|
|
619
620
|
|
|
620
|
-
declare const PodNamesWithMetricsContext:
|
|
621
|
+
declare const PodNamesWithMetricsContext: React__default.Context<Map<string, ClientPodStatus>>;
|
|
621
622
|
|
|
622
|
-
declare const GroupedResponsesContext:
|
|
623
|
+
declare const GroupedResponsesContext: React__default.Context<GroupedResponses>;
|
|
623
624
|
|
|
624
|
-
declare const ClusterContext:
|
|
625
|
+
declare const ClusterContext: React__default.Context<ClusterAttributes>;
|
|
625
626
|
|
|
626
627
|
/**
|
|
627
628
|
* Context for Pod Metrics
|
|
628
629
|
*
|
|
629
630
|
* @public
|
|
630
631
|
*/
|
|
631
|
-
declare const PodMetricsContext:
|
|
632
|
+
declare const PodMetricsContext: React__default.Context<Map<string, ClientPodStatus[]>>;
|
|
632
633
|
type PodMetricsMatcher = {
|
|
633
634
|
metadata?: IObjectMeta;
|
|
634
635
|
};
|
|
@@ -644,7 +645,7 @@ declare const usePodMetrics: (clusterName: string, matcher: PodMetricsMatcher) =
|
|
|
644
645
|
*
|
|
645
646
|
* @public
|
|
646
647
|
*/
|
|
647
|
-
declare const DetectedErrorsContext:
|
|
648
|
+
declare const DetectedErrorsContext: React__default.Context<DetectedError[]>;
|
|
648
649
|
/**
|
|
649
650
|
*
|
|
650
651
|
* @public
|
package/dist/index.esm.js
CHANGED
|
@@ -927,7 +927,7 @@ const PodLogs = ({
|
|
|
927
927
|
Paper,
|
|
928
928
|
{
|
|
929
929
|
elevation: 1,
|
|
930
|
-
style: { height: "100%", width: "100%", minHeight: "
|
|
930
|
+
style: { height: "100%", width: "100%", minHeight: "55rem" }
|
|
931
931
|
},
|
|
932
932
|
loading && /* @__PURE__ */ React__default.createElement(Skeleton, { variant: "rect", width: "100%", height: "100%" }),
|
|
933
933
|
!loading && value !== void 0 && (value.text === "" ? /* @__PURE__ */ React__default.createElement(
|