@backstage/plugin-kubernetes 0.10.2-next.0 → 0.10.2

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