@backstage/plugin-kubernetes-backend 0.10.0-next.2 → 0.10.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 CHANGED
@@ -1,5 +1,50 @@
1
1
  # @backstage/plugin-kubernetes-backend
2
2
 
3
+ ## 0.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e6c7c850129: Plugins that instantiate the `KubernetesProxy` must now provide a parameter of the type `KubernetesProxyOptions` which includes providing a `KubernetesAuthTranslator`. The `KubernetesBuilder` now builds its own `KubernetesAuthTranslatorMap` that it provides to the `KubernetesProxy`. The `DispatchingKubernetesAuthTranslator` expects a `KubernetesTranslatorMap` to be provided as a parameter. The `KubernetesBuilder` now has a method called `setAuthTranslatorMap` which allows integrators to bring their own `KubernetesAuthTranslator's` to the `KubernetesPlugin`.
8
+ - 804f6d16b0c: **BREAKING**: `KubernetesBuilder.create` now requires a `permissions` field of type `PermissionEvaluator`. The kubernetes `/proxy` endpoint now requires two tokens: the `Backstage-Kubernetes-Authorization` header should contain a bearer token for the target cluster, and the `Authorization` header should contain a backstage identity token. The kubernetes `/proxy` endpoint now requires a `Backstage-Kubernetes-Cluster` header replacing the previously required `X-Kubernetes-Cluster` header.
9
+ - 88fbb3d075a: Add support for the new plugin system to the Kubernetes plugin
10
+
11
+ ### Patch Changes
12
+
13
+ - 56a28b559e5: Updated kubernetes config schema to match available options
14
+ - 75d4985f5e8: Fixes bug whereby backstage crashes when bad credentials are provided to the kubernetes plugin.
15
+ - 83d250badc6: Fix parsing error when kubernetes api is returning badly structured data.
16
+ - 76e8f08fa24: fix localKubectlProxy auth provider fetching
17
+ - Updated dependencies
18
+ - @backstage/backend-common@0.18.4
19
+ - @backstage/catalog-client@1.4.1
20
+ - @backstage/plugin-permission-node@0.7.7
21
+ - @backstage/plugin-permission-common@0.7.5
22
+ - @backstage/catalog-model@1.3.0
23
+ - @backstage/plugin-kubernetes-common@0.6.2
24
+ - @backstage/plugin-auth-node@0.2.13
25
+ - @backstage/plugin-catalog-node@1.3.5
26
+ - @backstage/backend-plugin-api@0.5.1
27
+ - @backstage/config@1.0.7
28
+ - @backstage/errors@1.1.5
29
+
30
+ ## 0.10.0-next.3
31
+
32
+ ### Patch Changes
33
+
34
+ - 56a28b559e5: Updated kubernetes config schema to match available options
35
+ - Updated dependencies
36
+ - @backstage/catalog-model@1.3.0-next.0
37
+ - @backstage/backend-common@0.18.4-next.2
38
+ - @backstage/backend-plugin-api@0.5.1-next.2
39
+ - @backstage/catalog-client@1.4.1-next.1
40
+ - @backstage/config@1.0.7
41
+ - @backstage/errors@1.1.5
42
+ - @backstage/plugin-auth-node@0.2.13-next.2
43
+ - @backstage/plugin-catalog-node@1.3.5-next.3
44
+ - @backstage/plugin-kubernetes-common@0.6.2-next.2
45
+ - @backstage/plugin-permission-common@0.7.5-next.0
46
+ - @backstage/plugin-permission-node@0.7.7-next.2
47
+
3
48
  ## 0.10.0-next.2
4
49
 
5
50
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-kubernetes-backend",
3
- "version": "0.10.0-next.2",
3
+ "version": "0.10.0",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/config.d.ts CHANGED
@@ -21,11 +21,15 @@ export interface Config {
21
21
  | 'services'
22
22
  | 'configmaps'
23
23
  | 'deployments'
24
+ | 'limitranges'
24
25
  | 'replicasets'
25
26
  | 'horizontalpodautoscalers'
26
27
  | 'jobs'
27
28
  | 'cronjobs'
28
29
  | 'ingresses'
30
+ | 'customresources'
31
+ | 'statefulsets'
32
+ | 'daemonsets'
29
33
  >;
30
34
  serviceLocatorMethod: {
31
35
  type: 'multiTenant';
@@ -99,11 +103,15 @@ export interface Config {
99
103
  services?: string;
100
104
  configmaps?: string;
101
105
  deployments?: string;
106
+ limitranges?: string;
102
107
  replicasets?: string;
103
108
  horizontalpodautoscalers?: string;
104
- cronjobs?: string;
105
109
  jobs?: string;
110
+ cronjobs?: string;
106
111
  ingresses?: string;
112
+ customresources?: string;
113
+ statefulsets?: string;
114
+ daemonsets?: string;
107
115
  } & { [pluralKind: string]: string };
108
116
  };
109
117
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-kubernetes-backend",
3
3
  "description": "A Backstage backend plugin that integrates towards Kubernetes",
4
- "version": "0.10.0-next.2",
4
+ "version": "0.10.0",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -48,17 +48,17 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@azure/identity": "^2.0.4",
51
- "@backstage/backend-common": "^0.18.4-next.2",
52
- "@backstage/backend-plugin-api": "^0.5.1-next.2",
53
- "@backstage/catalog-client": "^1.4.1-next.0",
54
- "@backstage/catalog-model": "^1.2.1",
51
+ "@backstage/backend-common": "^0.18.4",
52
+ "@backstage/backend-plugin-api": "^0.5.1",
53
+ "@backstage/catalog-client": "^1.4.1",
54
+ "@backstage/catalog-model": "^1.3.0",
55
55
  "@backstage/config": "^1.0.7",
56
56
  "@backstage/errors": "^1.1.5",
57
- "@backstage/plugin-auth-node": "^0.2.13-next.2",
58
- "@backstage/plugin-catalog-node": "^1.3.5-next.2",
59
- "@backstage/plugin-kubernetes-common": "^0.6.2-next.1",
60
- "@backstage/plugin-permission-common": "^0.7.5-next.0",
61
- "@backstage/plugin-permission-node": "^0.7.7-next.2",
57
+ "@backstage/plugin-auth-node": "^0.2.13",
58
+ "@backstage/plugin-catalog-node": "^1.3.5",
59
+ "@backstage/plugin-kubernetes-common": "^0.6.2",
60
+ "@backstage/plugin-permission-common": "^0.7.5",
61
+ "@backstage/plugin-permission-node": "^0.7.7",
62
62
  "@google-cloud/container": "^4.0.0",
63
63
  "@jest-mock/express": "^2.0.1",
64
64
  "@kubernetes/client-node": "0.18.1",
@@ -82,8 +82,8 @@
82
82
  "yn": "^4.0.0"
83
83
  },
84
84
  "devDependencies": {
85
- "@backstage/backend-test-utils": "^0.1.36-next.2",
86
- "@backstage/cli": "^0.22.6-next.2",
85
+ "@backstage/backend-test-utils": "^0.1.36",
86
+ "@backstage/cli": "^0.22.6",
87
87
  "@types/aws4": "^1.5.1",
88
88
  "@types/http-proxy-middleware": "^0.19.3",
89
89
  "aws-sdk-mock": "^5.2.1",