@backstage/plugin-kubernetes 0.6.7-next.2 → 0.7.1-next.0
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 +63 -0
- package/dist/index.d.ts +36 -11
- package/dist/index.esm.js +337 -196
- package/dist/index.esm.js.map +1 -1
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,68 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes
|
|
2
2
|
|
|
3
|
+
## 0.7.1-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/core-plugin-api@1.0.5-next.0
|
|
9
|
+
- @backstage/plugin-catalog-react@1.1.3-next.0
|
|
10
|
+
- @backstage/core-components@0.10.1-next.0
|
|
11
|
+
|
|
12
|
+
## 0.7.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- f5c9730639: Add `localKubectlProxy` cluster locator method to make local development simpler to setup.
|
|
17
|
+
|
|
18
|
+
Consolidated no-op server side auth decorators.
|
|
19
|
+
The following Kubernetes auth decorators are now one class (`ServerSideKubernetesAuthProvider`):
|
|
20
|
+
|
|
21
|
+
- `AwsKubernetesAuthProvider`
|
|
22
|
+
- `AzureKubernetesAuthProvider`
|
|
23
|
+
- `ServiceAccountKubernetesAuthProvider`
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 3ec294a186: expose detectErrors function publicly
|
|
28
|
+
- a70869e775: Updated dependency `msw` to `^0.43.0`.
|
|
29
|
+
- 4e9a90e307: Updated dependency `luxon` to `^3.0.0`.
|
|
30
|
+
- 8006d0f9bf: Updated dependency `msw` to `^0.44.0`.
|
|
31
|
+
- eadb3a8d2e: Updated dependency `@kubernetes/client-node` to `^0.17.0`.
|
|
32
|
+
- Updated dependencies
|
|
33
|
+
- @backstage/core-components@0.10.0
|
|
34
|
+
- @backstage/catalog-model@1.1.0
|
|
35
|
+
- @backstage/plugin-kubernetes-common@0.4.0
|
|
36
|
+
- @backstage/core-plugin-api@1.0.4
|
|
37
|
+
- @backstage/plugin-catalog-react@1.1.2
|
|
38
|
+
- @backstage/theme@0.2.16
|
|
39
|
+
|
|
40
|
+
## 0.7.0-next.3
|
|
41
|
+
|
|
42
|
+
### Minor Changes
|
|
43
|
+
|
|
44
|
+
- f5c9730639: Add `localKubectlProxy` cluster locator method to make local development simpler to setup.
|
|
45
|
+
|
|
46
|
+
Consolidated no-op server side auth decorators.
|
|
47
|
+
The following Kubernetes auth decorators are now one class (`ServerSideKubernetesAuthProvider`):
|
|
48
|
+
|
|
49
|
+
- `AwsKubernetesAuthProvider`
|
|
50
|
+
- `AzureKubernetesAuthProvider`
|
|
51
|
+
- `ServiceAccountKubernetesAuthProvider`
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- 3ec294a186: expose detectErrors function publicly
|
|
56
|
+
- a70869e775: Updated dependency `msw` to `^0.43.0`.
|
|
57
|
+
- 4e9a90e307: Updated dependency `luxon` to `^3.0.0`.
|
|
58
|
+
- eadb3a8d2e: Updated dependency `@kubernetes/client-node` to `^0.17.0`.
|
|
59
|
+
- Updated dependencies
|
|
60
|
+
- @backstage/core-plugin-api@1.0.4-next.0
|
|
61
|
+
- @backstage/core-components@0.10.0-next.3
|
|
62
|
+
- @backstage/catalog-model@1.1.0-next.3
|
|
63
|
+
- @backstage/plugin-catalog-react@1.1.2-next.3
|
|
64
|
+
- @backstage/plugin-kubernetes-common@0.4.0-next.2
|
|
65
|
+
|
|
3
66
|
## 0.6.7-next.2
|
|
4
67
|
|
|
5
68
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
|
|
10
10
|
declare const kubernetesPlugin: _backstage_core_plugin_api.BackstagePlugin<{
|
|
11
11
|
entityContent: _backstage_core_plugin_api.RouteRef<undefined>;
|
|
12
|
-
}, {}>;
|
|
12
|
+
}, {}, {}>;
|
|
13
13
|
/**
|
|
14
14
|
* Props of EntityKubernetesContent
|
|
15
15
|
*
|
|
@@ -73,21 +73,18 @@ declare class KubernetesAuthProviders implements KubernetesAuthProvidersApi {
|
|
|
73
73
|
decorateRequestBodyForAuth(authProvider: string, requestBody: KubernetesRequestBody): Promise<KubernetesRequestBody>;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
declare class AwsKubernetesAuthProvider implements KubernetesAuthProvider {
|
|
77
|
-
decorateRequestBodyForAuth(requestBody: KubernetesRequestBody): Promise<KubernetesRequestBody>;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
76
|
declare class GoogleKubernetesAuthProvider implements KubernetesAuthProvider {
|
|
81
77
|
authProvider: OAuthApi;
|
|
82
78
|
constructor(authProvider: OAuthApi);
|
|
83
79
|
decorateRequestBodyForAuth(requestBody: KubernetesRequestBody): Promise<KubernetesRequestBody>;
|
|
84
80
|
}
|
|
85
81
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
82
|
+
/**
|
|
83
|
+
* No-op KubernetesAuthProvider, authorization will be handled in the kubernetes-backend plugin
|
|
84
|
+
*
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
declare class ServerSideKubernetesAuthProvider implements KubernetesAuthProvider {
|
|
91
88
|
decorateRequestBodyForAuth(requestBody: KubernetesRequestBody): Promise<KubernetesRequestBody>;
|
|
92
89
|
}
|
|
93
90
|
|
|
@@ -150,9 +147,29 @@ declare type ErrorPanelProps = {
|
|
|
150
147
|
};
|
|
151
148
|
declare const ErrorPanel: ({ entityName, errorMessage, clustersWithErrors, }: ErrorPanelProps) => JSX.Element;
|
|
152
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Severity of the error, where 10 is critical and 0 is very low.
|
|
152
|
+
*
|
|
153
|
+
* @alpha
|
|
154
|
+
*/
|
|
153
155
|
declare type ErrorSeverity = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
156
|
+
/**
|
|
157
|
+
* Kubernetes kinds that errors might be reported by the plugin
|
|
158
|
+
*
|
|
159
|
+
* @alpha
|
|
160
|
+
*/
|
|
154
161
|
declare type ErrorDetectableKind = 'Pod' | 'Deployment' | 'HorizontalPodAutoscaler';
|
|
162
|
+
/**
|
|
163
|
+
* A list of errors keyed by Cluster name
|
|
164
|
+
*
|
|
165
|
+
* @alpha
|
|
166
|
+
*/
|
|
155
167
|
declare type DetectedErrorsByCluster = Map<string, DetectedError[]>;
|
|
168
|
+
/**
|
|
169
|
+
* Represents an error found on a Kubernetes object
|
|
170
|
+
*
|
|
171
|
+
* @alpha
|
|
172
|
+
*/
|
|
156
173
|
interface DetectedError {
|
|
157
174
|
severity: ErrorSeverity;
|
|
158
175
|
cluster: string;
|
|
@@ -161,6 +178,14 @@ interface DetectedError {
|
|
|
161
178
|
message: string[];
|
|
162
179
|
}
|
|
163
180
|
|
|
181
|
+
/**
|
|
182
|
+
* For each cluster try to find errors in each of the object types provided
|
|
183
|
+
* returning a map of cluster names to errors in that cluster
|
|
184
|
+
*
|
|
185
|
+
* @alpha
|
|
186
|
+
*/
|
|
187
|
+
declare const detectErrors: (objects: ObjectsByEntityResponse) => DetectedErrorsByCluster;
|
|
188
|
+
|
|
164
189
|
declare type ErrorReportingProps = {
|
|
165
190
|
detectedErrors: DetectedErrorsByCluster;
|
|
166
191
|
};
|
|
@@ -231,4 +256,4 @@ declare const GroupedResponsesContext: React.Context<GroupedResponses>;
|
|
|
231
256
|
|
|
232
257
|
declare const ClusterContext: React.Context<ClusterAttributes>;
|
|
233
258
|
|
|
234
|
-
export {
|
|
259
|
+
export { Cluster, ClusterContext, ClusterLinksFormatter, ClusterLinksFormatterOptions, CronJobsAccordions, CustomResources, DeploymentResources, DetectedError, DetectedErrorsByCluster, EntityKubernetesContent, EntityKubernetesContentProps, ErrorDetectableKind, ErrorPanel, ErrorReporting, ErrorSeverity, GoogleKubernetesAuthProvider, GroupedResponses, GroupedResponsesContext, HorizontalPodAutoscalerDrawer, IngressesAccordions, JobsAccordions, KubernetesApi, KubernetesAuthProviders, KubernetesAuthProvidersApi, KubernetesBackendClient, KubernetesContent, KubernetesDrawer, KubernetesObjects, PodDrawer, PodNamesWithErrorsContext, PodNamesWithMetricsContext, PodsTable, Router, ServerSideKubernetesAuthProvider, ServicesAccordions, clusterLinksFormatters, detectErrors, formatClusterLink, isKubernetesAvailable, kubernetesApiRef, kubernetesAuthProvidersApiRef, kubernetesPlugin, kubernetesPlugin as plugin, useKubernetesObjects };
|