@backstage/plugin-kubernetes 0.4.21 → 0.5.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 +54 -0
- package/dist/index.d.ts +18 -2
- package/dist/index.esm.js +355 -60
- package/dist/index.esm.js.map +1 -1
- package/package.json +17 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes
|
|
2
2
|
|
|
3
|
+
## 0.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 610614a06d: Includes `KubernetesBackendClient` in the export to allow developers to use it externally.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/core-plugin-api@0.4.0
|
|
10
|
+
- @backstage/plugin-catalog-react@0.6.8
|
|
11
|
+
- @backstage/core-components@0.8.2
|
|
12
|
+
|
|
13
|
+
## 0.5.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 6f0c850a86: Fixed styling bug for the CronJobsAccordions and updated Completed pods to display a green dot.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
- @backstage/core-plugin-api@0.3.1
|
|
20
|
+
- @backstage/core-components@0.8.1
|
|
21
|
+
- @backstage/catalog-model@0.9.8
|
|
22
|
+
- @backstage/plugin-catalog-react@0.6.7
|
|
23
|
+
|
|
24
|
+
## 0.5.0
|
|
25
|
+
|
|
26
|
+
### Minor Changes
|
|
27
|
+
|
|
28
|
+
- c010632f88: Add pod metrics lookup and display in pod table.
|
|
29
|
+
|
|
30
|
+
## Backwards incompatible changes
|
|
31
|
+
|
|
32
|
+
If your Kubernetes distribution does not have the [metrics server](https://github.com/kubernetes-sigs/metrics-server) installed,
|
|
33
|
+
you will need to set the `skipMetricsLookup` config flag to `false`.
|
|
34
|
+
|
|
35
|
+
See the [configuration docs](https://backstage.io/docs/features/kubernetes/configuration) for more details.
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- cd450844f6: Moved React dependencies to `peerDependencies` and allow both React v16 and v17 to be used.
|
|
40
|
+
- Updated dependencies
|
|
41
|
+
- @backstage/core-components@0.8.0
|
|
42
|
+
- @backstage/core-plugin-api@0.3.0
|
|
43
|
+
- @backstage/plugin-kubernetes-common@0.2.0
|
|
44
|
+
- @backstage/plugin-catalog-react@0.6.5
|
|
45
|
+
|
|
46
|
+
## 0.4.22
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- 86ed770308: Added accordions to display information on Jobs and CronJobs in the kubernetes plugin. Updated the PodsTable with fewer default columns and the ability to pass in additional ones depending on the use case.
|
|
51
|
+
- Updated dependencies
|
|
52
|
+
- @backstage/core-components@0.7.6
|
|
53
|
+
- @backstage/theme@0.2.14
|
|
54
|
+
- @backstage/core-plugin-api@0.2.2
|
|
55
|
+
- @backstage/plugin-kubernetes-common@0.1.7
|
|
56
|
+
|
|
3
57
|
## 0.4.21
|
|
4
58
|
|
|
5
59
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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
7
|
|
|
8
8
|
declare const kubernetesPlugin: _backstage_core_plugin_api.BackstagePlugin<{
|
|
@@ -28,6 +28,22 @@ interface KubernetesApi {
|
|
|
28
28
|
}[]>;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
declare class KubernetesBackendClient implements KubernetesApi {
|
|
32
|
+
private readonly discoveryApi;
|
|
33
|
+
private readonly identityApi;
|
|
34
|
+
constructor(options: {
|
|
35
|
+
discoveryApi: DiscoveryApi;
|
|
36
|
+
identityApi: IdentityApi;
|
|
37
|
+
});
|
|
38
|
+
private handleResponse;
|
|
39
|
+
private postRequired;
|
|
40
|
+
getObjectsByEntity(requestBody: KubernetesRequestBody): Promise<ObjectsByEntityResponse>;
|
|
41
|
+
getClusters(): Promise<{
|
|
42
|
+
name: string;
|
|
43
|
+
authProvider: string;
|
|
44
|
+
}[]>;
|
|
45
|
+
}
|
|
46
|
+
|
|
31
47
|
declare const kubernetesAuthProvidersApiRef: _backstage_core_plugin_api.ApiRef<KubernetesAuthProvidersApi>;
|
|
32
48
|
interface KubernetesAuthProvidersApi {
|
|
33
49
|
decorateRequestBodyForAuth(authProvider: string, requestBody: KubernetesRequestBody): Promise<KubernetesRequestBody>;
|
|
@@ -58,4 +74,4 @@ declare type ClusterLinksFormatter = (options: ClusterLinksFormatterOptions) =>
|
|
|
58
74
|
|
|
59
75
|
declare const clusterLinksFormatters: Record<string, ClusterLinksFormatter>;
|
|
60
76
|
|
|
61
|
-
export { EntityKubernetesContent, KubernetesApi, KubernetesAuthProviders, KubernetesAuthProvidersApi, Router, clusterLinksFormatters, formatClusterLink, isKubernetesAvailable, kubernetesApiRef, kubernetesAuthProvidersApiRef, kubernetesPlugin, kubernetesPlugin as plugin };
|
|
77
|
+
export { EntityKubernetesContent, KubernetesApi, KubernetesAuthProviders, KubernetesAuthProvidersApi, KubernetesBackendClient, Router, clusterLinksFormatters, formatClusterLink, isKubernetesAvailable, kubernetesApiRef, kubernetesAuthProvidersApiRef, kubernetesPlugin, kubernetesPlugin as plugin };
|