@backstage/plugin-kubernetes-common 0.3.0 → 0.4.0-next.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 CHANGED
@@ -1,5 +1,32 @@
1
1
  # @backstage/plugin-kubernetes-common
2
2
 
3
+ ## 0.4.0-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - eadb3a8d2e: Updated dependency `@kubernetes/client-node` to `^0.17.0`.
8
+ - Updated dependencies
9
+ - @backstage/catalog-model@1.1.0-next.3
10
+
11
+ ## 0.4.0-next.1
12
+
13
+ ### Patch Changes
14
+
15
+ - 60e5f9fe68: Fixed the lack of `limitranges` as part of the Default Objects to fetch from the kubernetes api
16
+ - Updated dependencies
17
+ - @backstage/catalog-model@1.1.0-next.2
18
+
19
+ ## 0.4.0-next.0
20
+
21
+ ### Minor Changes
22
+
23
+ - 0791af993f: Refactor `KubernetesObjectsProvider` with new methods, `KubernetesServiceLocator` now takes an `Entity` instead of `serviceId`
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+ - @backstage/catalog-model@1.1.0-next.0
29
+
3
30
  ## 0.3.0
4
31
 
5
32
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -1,14 +1,15 @@
1
1
  import { JsonObject } from '@backstage/types';
2
- import { V1Pod, V1Service, V1ConfigMap, V1Deployment, V1ReplicaSet, V1HorizontalPodAutoscaler, V1Job, V1CronJob, V1Ingress, V1StatefulSet } from '@kubernetes/client-node';
2
+ import { V1Pod, V1Service, V1ConfigMap, V1Deployment, V1ReplicaSet, V1LimitRange, V1HorizontalPodAutoscaler, V1Job, V1CronJob, V1Ingress, V1StatefulSet } from '@kubernetes/client-node';
3
3
  import { Entity } from '@backstage/catalog-model';
4
4
 
5
- interface KubernetesRequestBody {
6
- auth?: {
7
- google?: string;
8
- oidc?: {
9
- [key: string]: string;
10
- };
5
+ interface KubernetesRequestAuth {
6
+ google?: string;
7
+ oidc?: {
8
+ [key: string]: string;
11
9
  };
10
+ }
11
+ interface KubernetesRequestBody {
12
+ auth?: KubernetesRequestAuth;
12
13
  entity: Entity;
13
14
  }
14
15
  interface ClusterAttributes {
@@ -58,7 +59,7 @@ interface ObjectsByEntityResponse {
58
59
  items: ClusterObjects[];
59
60
  }
60
61
  declare type AuthProviderType = 'google' | 'serviceAccount' | 'aws' | 'azure';
61
- declare type FetchResponse = PodFetchResponse | ServiceFetchResponse | ConfigMapFetchResponse | DeploymentFetchResponse | ReplicaSetsFetchResponse | HorizontalPodAutoscalersFetchResponse | JobsFetchResponse | CronJobsFetchResponse | IngressesFetchResponse | CustomResourceFetchResponse | StatefulSetsFetchResponse;
62
+ declare type FetchResponse = PodFetchResponse | ServiceFetchResponse | ConfigMapFetchResponse | DeploymentFetchResponse | LimitRangeFetchReponse | ReplicaSetsFetchResponse | HorizontalPodAutoscalersFetchResponse | JobsFetchResponse | CronJobsFetchResponse | IngressesFetchResponse | CustomResourceFetchResponse | StatefulSetsFetchResponse;
62
63
  interface PodFetchResponse {
63
64
  type: 'pods';
64
65
  resources: Array<V1Pod>;
@@ -79,6 +80,10 @@ interface ReplicaSetsFetchResponse {
79
80
  type: 'replicasets';
80
81
  resources: Array<V1ReplicaSet>;
81
82
  }
83
+ interface LimitRangeFetchReponse {
84
+ type: 'limitranges';
85
+ resources: Array<V1LimitRange>;
86
+ }
82
87
  interface HorizontalPodAutoscalersFetchResponse {
83
88
  type: 'horizontalpodautoscalers';
84
89
  resources: Array<V1HorizontalPodAutoscaler>;
@@ -126,4 +131,4 @@ interface ClientPodStatus {
126
131
  containers: ClientContainerStatus[];
127
132
  }
128
133
 
129
- export { AuthProviderType, ClientContainerStatus, ClientCurrentResourceUsage, ClientPodStatus, ClusterAttributes, ClusterObjects, ConfigMapFetchResponse, CronJobsFetchResponse, CustomResourceFetchResponse, DeploymentFetchResponse, FetchResponse, HorizontalPodAutoscalersFetchResponse, IngressesFetchResponse, JobsFetchResponse, KubernetesErrorTypes, KubernetesFetchError, KubernetesRequestBody, ObjectsByEntityResponse, PodFetchResponse, ReplicaSetsFetchResponse, ServiceFetchResponse, StatefulSetsFetchResponse };
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 };
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.3.0",
4
+ "version": "0.4.0-next.2",
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.0.3",
42
- "@kubernetes/client-node": "^0.16.0"
41
+ "@backstage/catalog-model": "^1.1.0-next.3",
42
+ "@kubernetes/client-node": "^0.17.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@backstage/cli": "^0.17.2"
45
+ "@backstage/cli": "^0.18.0-next.3"
46
46
  },
47
47
  "jest": {
48
48
  "roots": [
49
49
  ".."
50
50
  ]
51
51
  },
52
- "gitHead": "e42cb3887e41f756c16380d757d93feda27f40ee",
52
+ "gitHead": "291b3a07233061266d9f3ce431345bf19fa4bbd5",
53
53
  "module": "dist/index.esm.js"
54
54
  }