@backstage/plugin-kubernetes 0.4.22 → 0.5.3
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 +55 -0
- package/dist/index.d.ts +22 -3
- package/dist/index.esm.js +208 -88
- package/dist/index.esm.js.map +1 -1
- package/package.json +15 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes
|
|
2
2
|
|
|
3
|
+
## 0.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7ac0bd2c66: implement dashboard link formatter for GKE
|
|
8
|
+
- 4ce51ab0f1: Internal refactor of the `react-use` imports to use `react-use/lib/*` instead.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/core-plugin-api@0.4.1
|
|
11
|
+
- @backstage/plugin-catalog-react@0.6.10
|
|
12
|
+
- @backstage/plugin-kubernetes-common@0.2.1
|
|
13
|
+
- @backstage/core-components@0.8.3
|
|
14
|
+
|
|
15
|
+
## 0.5.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 610614a06d: Includes `KubernetesBackendClient` in the export to allow developers to use it externally.
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
- @backstage/core-plugin-api@0.4.0
|
|
22
|
+
- @backstage/plugin-catalog-react@0.6.8
|
|
23
|
+
- @backstage/core-components@0.8.2
|
|
24
|
+
|
|
25
|
+
## 0.5.1
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- 6f0c850a86: Fixed styling bug for the CronJobsAccordions and updated Completed pods to display a green dot.
|
|
30
|
+
- Updated dependencies
|
|
31
|
+
- @backstage/core-plugin-api@0.3.1
|
|
32
|
+
- @backstage/core-components@0.8.1
|
|
33
|
+
- @backstage/catalog-model@0.9.8
|
|
34
|
+
- @backstage/plugin-catalog-react@0.6.7
|
|
35
|
+
|
|
36
|
+
## 0.5.0
|
|
37
|
+
|
|
38
|
+
### Minor Changes
|
|
39
|
+
|
|
40
|
+
- c010632f88: Add pod metrics lookup and display in pod table.
|
|
41
|
+
|
|
42
|
+
## Backwards incompatible changes
|
|
43
|
+
|
|
44
|
+
If your Kubernetes distribution does not have the [metrics server](https://github.com/kubernetes-sigs/metrics-server) installed,
|
|
45
|
+
you will need to set the `skipMetricsLookup` config flag to `false`.
|
|
46
|
+
|
|
47
|
+
See the [configuration docs](https://backstage.io/docs/features/kubernetes/configuration) for more details.
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- cd450844f6: Moved React dependencies to `peerDependencies` and allow both React v16 and v17 to be used.
|
|
52
|
+
- Updated dependencies
|
|
53
|
+
- @backstage/core-components@0.8.0
|
|
54
|
+
- @backstage/core-plugin-api@0.3.0
|
|
55
|
+
- @backstage/plugin-kubernetes-common@0.2.0
|
|
56
|
+
- @backstage/plugin-catalog-react@0.6.5
|
|
57
|
+
|
|
3
58
|
## 0.4.22
|
|
4
59
|
|
|
5
60
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
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
|
-
import { OAuthApi } from '@backstage/core-plugin-api';
|
|
5
|
+
import { DiscoveryApi, IdentityApi, OAuthApi } from '@backstage/core-plugin-api';
|
|
6
6
|
import { KubernetesRequestBody, ObjectsByEntityResponse } from '@backstage/plugin-kubernetes-common';
|
|
7
|
+
import { JsonObject } from '@backstage/types';
|
|
7
8
|
|
|
8
9
|
declare const kubernetesPlugin: _backstage_core_plugin_api.BackstagePlugin<{
|
|
9
10
|
entityContent: _backstage_core_plugin_api.RouteRef<undefined>;
|
|
@@ -28,6 +29,22 @@ interface KubernetesApi {
|
|
|
28
29
|
}[]>;
|
|
29
30
|
}
|
|
30
31
|
|
|
32
|
+
declare class KubernetesBackendClient implements KubernetesApi {
|
|
33
|
+
private readonly discoveryApi;
|
|
34
|
+
private readonly identityApi;
|
|
35
|
+
constructor(options: {
|
|
36
|
+
discoveryApi: DiscoveryApi;
|
|
37
|
+
identityApi: IdentityApi;
|
|
38
|
+
});
|
|
39
|
+
private handleResponse;
|
|
40
|
+
private postRequired;
|
|
41
|
+
getObjectsByEntity(requestBody: KubernetesRequestBody): Promise<ObjectsByEntityResponse>;
|
|
42
|
+
getClusters(): Promise<{
|
|
43
|
+
name: string;
|
|
44
|
+
authProvider: string;
|
|
45
|
+
}[]>;
|
|
46
|
+
}
|
|
47
|
+
|
|
31
48
|
declare const kubernetesAuthProvidersApiRef: _backstage_core_plugin_api.ApiRef<KubernetesAuthProvidersApi>;
|
|
32
49
|
interface KubernetesAuthProvidersApi {
|
|
33
50
|
decorateRequestBodyForAuth(authProvider: string, requestBody: KubernetesRequestBody): Promise<KubernetesRequestBody>;
|
|
@@ -44,13 +61,15 @@ declare class KubernetesAuthProviders implements KubernetesAuthProvidersApi {
|
|
|
44
61
|
declare type FormatClusterLinkOptions = {
|
|
45
62
|
dashboardUrl?: string;
|
|
46
63
|
dashboardApp?: string;
|
|
64
|
+
dashboardParameters?: JsonObject;
|
|
47
65
|
object: any;
|
|
48
66
|
kind: string;
|
|
49
67
|
};
|
|
50
68
|
declare function formatClusterLink(options: FormatClusterLinkOptions): string | undefined;
|
|
51
69
|
|
|
52
70
|
interface ClusterLinksFormatterOptions {
|
|
53
|
-
dashboardUrl
|
|
71
|
+
dashboardUrl?: URL;
|
|
72
|
+
dashboardParameters?: JsonObject;
|
|
54
73
|
object: any;
|
|
55
74
|
kind: string;
|
|
56
75
|
}
|
|
@@ -58,4 +77,4 @@ declare type ClusterLinksFormatter = (options: ClusterLinksFormatterOptions) =>
|
|
|
58
77
|
|
|
59
78
|
declare const clusterLinksFormatters: Record<string, ClusterLinksFormatter>;
|
|
60
79
|
|
|
61
|
-
export { EntityKubernetesContent, KubernetesApi, KubernetesAuthProviders, KubernetesAuthProvidersApi, Router, clusterLinksFormatters, formatClusterLink, isKubernetesAvailable, kubernetesApiRef, kubernetesAuthProvidersApiRef, kubernetesPlugin, kubernetesPlugin as plugin };
|
|
80
|
+
export { EntityKubernetesContent, KubernetesApi, KubernetesAuthProviders, KubernetesAuthProvidersApi, KubernetesBackendClient, Router, clusterLinksFormatters, formatClusterLink, isKubernetesAvailable, kubernetesApiRef, kubernetesAuthProvidersApiRef, kubernetesPlugin, kubernetesPlugin as plugin };
|