@backstage/plugin-kubernetes-common 0.4.0-next.1 → 0.4.1
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 +27 -0
- package/dist/index.d.ts +7 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes-common
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0297da83c0: Added `DaemonSets` to the default kubernetes resources.
|
|
8
|
+
|
|
9
|
+
## 0.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 0791af993f: Refactor `KubernetesObjectsProvider` with new methods, `KubernetesServiceLocator` now takes an `Entity` instead of `serviceId`
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 60e5f9fe68: Fixed the lack of `limitranges` as part of the Default Objects to fetch from the kubernetes api
|
|
18
|
+
- eadb3a8d2e: Updated dependency `@kubernetes/client-node` to `^0.17.0`.
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
- @backstage/catalog-model@1.1.0
|
|
21
|
+
|
|
22
|
+
## 0.4.0-next.2
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- eadb3a8d2e: Updated dependency `@kubernetes/client-node` to `^0.17.0`.
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
- @backstage/catalog-model@1.1.0-next.3
|
|
29
|
+
|
|
3
30
|
## 0.4.0-next.1
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JsonObject } from '@backstage/types';
|
|
2
|
-
import { V1Pod, V1Service, V1ConfigMap, V1Deployment, V1ReplicaSet, V1LimitRange, V1HorizontalPodAutoscaler, V1Job, V1CronJob, V1Ingress, V1StatefulSet } from '@kubernetes/client-node';
|
|
2
|
+
import { V1Pod, V1Service, V1ConfigMap, V1Deployment, V1ReplicaSet, V1LimitRange, V1HorizontalPodAutoscaler, V1Job, V1CronJob, V1Ingress, V1StatefulSet, V1DaemonSet } from '@kubernetes/client-node';
|
|
3
3
|
import { Entity } from '@backstage/catalog-model';
|
|
4
4
|
|
|
5
5
|
interface KubernetesRequestAuth {
|
|
@@ -59,7 +59,7 @@ interface ObjectsByEntityResponse {
|
|
|
59
59
|
items: ClusterObjects[];
|
|
60
60
|
}
|
|
61
61
|
declare type AuthProviderType = 'google' | 'serviceAccount' | 'aws' | 'azure';
|
|
62
|
-
declare type FetchResponse = PodFetchResponse | ServiceFetchResponse | ConfigMapFetchResponse | DeploymentFetchResponse | LimitRangeFetchReponse | ReplicaSetsFetchResponse | HorizontalPodAutoscalersFetchResponse | JobsFetchResponse | CronJobsFetchResponse | IngressesFetchResponse | CustomResourceFetchResponse | StatefulSetsFetchResponse;
|
|
62
|
+
declare type FetchResponse = PodFetchResponse | ServiceFetchResponse | ConfigMapFetchResponse | DeploymentFetchResponse | LimitRangeFetchReponse | ReplicaSetsFetchResponse | HorizontalPodAutoscalersFetchResponse | JobsFetchResponse | CronJobsFetchResponse | IngressesFetchResponse | CustomResourceFetchResponse | StatefulSetsFetchResponse | DaemonSetsFetchResponse;
|
|
63
63
|
interface PodFetchResponse {
|
|
64
64
|
type: 'pods';
|
|
65
65
|
resources: Array<V1Pod>;
|
|
@@ -108,6 +108,10 @@ interface StatefulSetsFetchResponse {
|
|
|
108
108
|
type: 'statefulsets';
|
|
109
109
|
resources: Array<V1StatefulSet>;
|
|
110
110
|
}
|
|
111
|
+
interface DaemonSetsFetchResponse {
|
|
112
|
+
type: 'daemonsets';
|
|
113
|
+
resources: Array<V1DaemonSet>;
|
|
114
|
+
}
|
|
111
115
|
interface KubernetesFetchError {
|
|
112
116
|
errorType: KubernetesErrorTypes;
|
|
113
117
|
statusCode?: number;
|
|
@@ -131,4 +135,4 @@ interface ClientPodStatus {
|
|
|
131
135
|
containers: ClientContainerStatus[];
|
|
132
136
|
}
|
|
133
137
|
|
|
134
|
-
export { AuthProviderType, ClientContainerStatus, ClientCurrentResourceUsage, ClientPodStatus, ClusterAttributes, ClusterObjects, ConfigMapFetchResponse, CronJobsFetchResponse, CustomResourceFetchResponse, DeploymentFetchResponse, FetchResponse, HorizontalPodAutoscalersFetchResponse, IngressesFetchResponse, JobsFetchResponse, KubernetesErrorTypes, KubernetesFetchError, KubernetesRequestAuth, KubernetesRequestBody, LimitRangeFetchReponse, ObjectsByEntityResponse, PodFetchResponse, ReplicaSetsFetchResponse, ServiceFetchResponse, StatefulSetsFetchResponse };
|
|
138
|
+
export { AuthProviderType, ClientContainerStatus, ClientCurrentResourceUsage, ClientPodStatus, ClusterAttributes, ClusterObjects, ConfigMapFetchResponse, CronJobsFetchResponse, CustomResourceFetchResponse, DaemonSetsFetchResponse, DeploymentFetchResponse, FetchResponse, HorizontalPodAutoscalersFetchResponse, IngressesFetchResponse, JobsFetchResponse, KubernetesErrorTypes, KubernetesFetchError, KubernetesRequestAuth, KubernetesRequestBody, LimitRangeFetchReponse, ObjectsByEntityResponse, PodFetchResponse, ReplicaSetsFetchResponse, ServiceFetchResponse, StatefulSetsFetchResponse };
|
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.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
"url": "https://github.com/backstage/backstage/issues"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@backstage/catalog-model": "^1.1.0
|
|
42
|
-
"@kubernetes/client-node": "^0.
|
|
41
|
+
"@backstage/catalog-model": "^1.1.0",
|
|
42
|
+
"@kubernetes/client-node": "^0.17.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@backstage/cli": "^0.18.
|
|
45
|
+
"@backstage/cli": "^0.18.1"
|
|
46
46
|
},
|
|
47
47
|
"jest": {
|
|
48
48
|
"roots": [
|
|
49
49
|
".."
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "a12f6269e3bf224aa7f52475be9152bc52addeed",
|
|
53
53
|
"module": "dist/index.esm.js"
|
|
54
54
|
}
|