@backstage/plugin-kubernetes 0.4.14 → 0.4.18

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,5 +1,55 @@
1
1
  # @backstage/plugin-kubernetes
2
2
 
3
+ ## 0.4.18
4
+
5
+ ### Patch Changes
6
+
7
+ - 14df942bae: The Kubernetes plugin will now re-fetch the kubernetes objects every ten seconds (not current configurable), this allows users to track the progress of deployments without refreshing the browser.
8
+ - Updated dependencies
9
+ - @backstage/config@0.1.11
10
+ - @backstage/theme@0.2.12
11
+ - @backstage/core-components@0.7.2
12
+ - @backstage/plugin-catalog-react@0.6.2
13
+ - @backstage/catalog-model@0.9.6
14
+ - @backstage/core-plugin-api@0.1.12
15
+
16
+ ## 0.4.17
17
+
18
+ ### Patch Changes
19
+
20
+ - 89bcf90b66: Refactor kubernetes fetcher to reduce boilerplate code
21
+ - Updated dependencies
22
+ - @backstage/plugin-catalog-react@0.6.0
23
+ - @backstage/core-components@0.7.0
24
+ - @backstage/theme@0.2.11
25
+
26
+ ## 0.4.16
27
+
28
+ ### Patch Changes
29
+
30
+ - c148c8854b: Support Rancher URL's with an existing path component
31
+ - ca0559444c: Avoid usage of `.to*Case()`, preferring `.toLocale*Case('en-US')` instead.
32
+ - 81a41ec249: Added a `name` key to all extensions in order to improve Analytics API metadata.
33
+ - Updated dependencies
34
+ - @backstage/core-components@0.6.1
35
+ - @backstage/core-plugin-api@0.1.10
36
+ - @backstage/plugin-catalog-react@0.5.2
37
+ - @backstage/catalog-model@0.9.4
38
+ - @backstage/plugin-kubernetes-common@0.1.5
39
+
40
+ ## 0.4.15
41
+
42
+ ### Patch Changes
43
+
44
+ - e6aaf246c2: Enhanced deployment accordion to display the namespace of the deployment.
45
+ - 6ba06efe08: Exported `KubernetesApi`, `kubernetesApiRef`, and `KubernetesAuthProvidersApi`.
46
+ - 8d397ef27a: Added a check for the Kubernetes annotation on the entity
47
+ - 6c0bd7fb75: Add dashboard support for Rancher
48
+ - Updated dependencies
49
+ - @backstage/core-plugin-api@0.1.9
50
+ - @backstage/core-components@0.6.0
51
+ - @backstage/plugin-catalog-react@0.5.1
52
+
3
53
  ## 0.4.14
4
54
 
5
55
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import * as _backstage_catalog_model from '@backstage/catalog-model';
3
3
  import { Entity } from '@backstage/catalog-model';
4
4
  import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
5
5
  import { OAuthApi } from '@backstage/core-plugin-api';
6
- import { KubernetesRequestBody } from '@backstage/plugin-kubernetes-common';
6
+ import { KubernetesRequestBody, ObjectsByEntityResponse } from '@backstage/plugin-kubernetes-common';
7
7
 
8
8
  declare const kubernetesPlugin: _backstage_core_plugin_api.BackstagePlugin<{
9
9
  entityContent: _backstage_core_plugin_api.RouteRef<undefined>;
@@ -12,12 +12,22 @@ declare const EntityKubernetesContent: (_props: {
12
12
  entity?: _backstage_catalog_model.Entity | undefined;
13
13
  }) => JSX.Element;
14
14
 
15
+ declare const isKubernetesAvailable: (entity: Entity) => boolean;
15
16
  declare type Props = {
16
17
  /** @deprecated The entity is now grabbed from context instead */
17
18
  entity?: Entity;
18
19
  };
19
20
  declare const Router: (_props: Props) => JSX.Element;
20
21
 
22
+ declare const kubernetesApiRef: _backstage_core_plugin_api.ApiRef<KubernetesApi>;
23
+ interface KubernetesApi {
24
+ getObjectsByEntity(requestBody: KubernetesRequestBody): Promise<ObjectsByEntityResponse>;
25
+ getClusters(): Promise<{
26
+ name: string;
27
+ authProvider: string;
28
+ }[]>;
29
+ }
30
+
21
31
  declare const kubernetesAuthProvidersApiRef: _backstage_core_plugin_api.ApiRef<KubernetesAuthProvidersApi>;
22
32
  interface KubernetesAuthProvidersApi {
23
33
  decorateRequestBodyForAuth(authProvider: string, requestBody: KubernetesRequestBody): Promise<KubernetesRequestBody>;
@@ -48,4 +58,4 @@ declare type ClusterLinksFormatter = (options: ClusterLinksFormatterOptions) =>
48
58
 
49
59
  declare const clusterLinksFormatters: Record<string, ClusterLinksFormatter>;
50
60
 
51
- export { EntityKubernetesContent, KubernetesAuthProviders, Router, clusterLinksFormatters, formatClusterLink, kubernetesAuthProvidersApiRef, kubernetesPlugin, kubernetesPlugin as plugin };
61
+ export { EntityKubernetesContent, KubernetesApi, KubernetesAuthProviders, KubernetesAuthProvidersApi, Router, clusterLinksFormatters, formatClusterLink, isKubernetesAvailable, kubernetesApiRef, kubernetesAuthProvidersApiRef, kubernetesPlugin, kubernetesPlugin as plugin };