@backstage/plugin-kubernetes-common 0.4.5-next.0 → 0.5.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 +20 -0
- package/dist/index.d.ts +9 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes-common
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2db8acffe7: Kubernetes plugin now gracefully surfaces transport-level errors (like DNS or timeout, or other socket errors) occurring while fetching data. This will be merged into any data that is fetched successfully, fixing a bug where the whole page would be empty if any fetch operation encountered such an error.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 9ce7866ecd: Updated dependency `@kubernetes/client-node` to `0.18.0`.
|
|
12
|
+
- b585179770: Added Kubernetes proxy API route to backend Kubernetes plugin, allowing Backstage plugin developers to read/write new information from Kubernetes (if proper credentials are provided).
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
- @backstage/catalog-model@1.1.4
|
|
15
|
+
|
|
16
|
+
## 0.4.5-next.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
- @backstage/catalog-model@1.1.4-next.1
|
|
22
|
+
|
|
3
23
|
## 0.4.5-next.0
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -155,12 +155,19 @@ interface PodStatusFetchResponse {
|
|
|
155
155
|
resources: Array<PodStatus>;
|
|
156
156
|
}
|
|
157
157
|
/** @public */
|
|
158
|
-
|
|
158
|
+
declare type KubernetesFetchError = StatusError | RawFetchError;
|
|
159
|
+
/** @public */
|
|
160
|
+
interface StatusError {
|
|
159
161
|
errorType: KubernetesErrorTypes;
|
|
160
162
|
statusCode?: number;
|
|
161
163
|
resourcePath?: string;
|
|
162
164
|
}
|
|
163
165
|
/** @public */
|
|
166
|
+
interface RawFetchError {
|
|
167
|
+
errorType: 'FETCH_ERROR';
|
|
168
|
+
message: string;
|
|
169
|
+
}
|
|
170
|
+
/** @public */
|
|
164
171
|
declare type KubernetesErrorTypes = 'BAD_REQUEST' | 'UNAUTHORIZED_ERROR' | 'NOT_FOUND' | 'SYSTEM_ERROR' | 'UNKNOWN_ERROR';
|
|
165
172
|
/** @public */
|
|
166
173
|
interface ClientCurrentResourceUsage {
|
|
@@ -182,4 +189,4 @@ interface ClientPodStatus {
|
|
|
182
189
|
containers: ClientContainerStatus[];
|
|
183
190
|
}
|
|
184
191
|
|
|
185
|
-
export { AuthProviderType, ClientContainerStatus, ClientCurrentResourceUsage, ClientPodStatus, ClusterAttributes, ClusterObjects, ConfigMapFetchResponse, CronJobsFetchResponse, CustomObjectsByEntityRequest, CustomResourceFetchResponse, CustomResourceMatcher, DaemonSetsFetchResponse, DeploymentFetchResponse, FetchResponse, HorizontalPodAutoscalersFetchResponse, IngressesFetchResponse, JobsFetchResponse, KubernetesErrorTypes, KubernetesFetchError, KubernetesRequestAuth, KubernetesRequestBody, LimitRangeFetchReponse, ObjectsByEntityResponse, PodFetchResponse, PodStatusFetchResponse, ReplicaSetsFetchResponse, ServiceFetchResponse, StatefulSetsFetchResponse, WorkloadsByEntityRequest };
|
|
192
|
+
export { AuthProviderType, ClientContainerStatus, ClientCurrentResourceUsage, ClientPodStatus, ClusterAttributes, ClusterObjects, ConfigMapFetchResponse, CronJobsFetchResponse, CustomObjectsByEntityRequest, CustomResourceFetchResponse, CustomResourceMatcher, DaemonSetsFetchResponse, DeploymentFetchResponse, FetchResponse, HorizontalPodAutoscalersFetchResponse, IngressesFetchResponse, JobsFetchResponse, KubernetesErrorTypes, KubernetesFetchError, KubernetesRequestAuth, KubernetesRequestBody, LimitRangeFetchReponse, ObjectsByEntityResponse, PodFetchResponse, PodStatusFetchResponse, RawFetchError, ReplicaSetsFetchResponse, ServiceFetchResponse, StatefulSetsFetchResponse, StatusError, WorkloadsByEntityRequest };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-kubernetes-common",
|
|
3
3
|
"description": "Common functionalities for kubernetes, to be shared between kubernetes and kubernetes-backend plugin",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"url": "https://github.com/backstage/backstage/issues"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@backstage/catalog-model": "^1.1.4
|
|
42
|
-
"@kubernetes/client-node": "0.
|
|
41
|
+
"@backstage/catalog-model": "^1.1.4",
|
|
42
|
+
"@kubernetes/client-node": "0.18.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@backstage/cli": "^0.
|
|
45
|
+
"@backstage/cli": "^0.22.0"
|
|
46
46
|
},
|
|
47
47
|
"jest": {
|
|
48
48
|
"roots": [
|