@backstage/plugin-kubernetes-backend 0.12.2-next.1 → 0.12.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 +12 -30
- package/alpha/package.json +1 -1
- package/dist/alpha.cjs.js +1 -3
- package/dist/alpha.cjs.js.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,42 +1,26 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes-backend
|
|
2
2
|
|
|
3
|
-
## 0.12.2
|
|
3
|
+
## 0.12.2
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies
|
|
8
|
-
- @backstage/plugin-
|
|
9
|
-
- @backstage/backend-
|
|
10
|
-
- @backstage/plugin-
|
|
11
|
-
- @backstage/backend-
|
|
12
|
-
- @backstage/plugin-
|
|
13
|
-
- @backstage/plugin-permission-node@0.7.16-next.1
|
|
14
|
-
- @backstage/config@1.1.0
|
|
15
|
-
- @backstage/integration-aws-node@0.1.6
|
|
16
|
-
- @backstage/catalog-client@1.4.4
|
|
17
|
-
- @backstage/catalog-model@1.4.2
|
|
18
|
-
- @backstage/errors@1.2.2
|
|
19
|
-
- @backstage/types@1.1.1
|
|
20
|
-
- @backstage/plugin-permission-common@0.7.8
|
|
8
|
+
- @backstage/plugin-auth-node@0.3.2
|
|
9
|
+
- @backstage/backend-plugin-api@0.6.5
|
|
10
|
+
- @backstage/plugin-permission-node@0.7.16
|
|
11
|
+
- @backstage/backend-common@0.19.7
|
|
12
|
+
- @backstage/plugin-catalog-node@1.4.6
|
|
21
13
|
|
|
22
|
-
## 0.12.
|
|
14
|
+
## 0.12.1
|
|
23
15
|
|
|
24
16
|
### Patch Changes
|
|
25
17
|
|
|
26
18
|
- Updated dependencies
|
|
27
|
-
- @backstage/plugin-auth-node@0.3.
|
|
28
|
-
- @backstage/backend-
|
|
29
|
-
- @backstage/
|
|
30
|
-
- @backstage/
|
|
31
|
-
- @backstage/
|
|
32
|
-
- @backstage/catalog-client@1.4.4
|
|
33
|
-
- @backstage/catalog-model@1.4.2
|
|
34
|
-
- @backstage/errors@1.2.2
|
|
35
|
-
- @backstage/types@1.1.1
|
|
36
|
-
- @backstage/plugin-catalog-node@1.4.6-next.0
|
|
37
|
-
- @backstage/plugin-kubernetes-common@0.6.6
|
|
38
|
-
- @backstage/plugin-permission-common@0.7.8
|
|
39
|
-
- @backstage/plugin-permission-node@0.7.16-next.0
|
|
19
|
+
- @backstage/plugin-auth-node@0.3.1
|
|
20
|
+
- @backstage/backend-plugin-api@0.6.4
|
|
21
|
+
- @backstage/plugin-permission-node@0.7.15
|
|
22
|
+
- @backstage/backend-common@0.19.6
|
|
23
|
+
- @backstage/plugin-catalog-node@1.4.5
|
|
40
24
|
|
|
41
25
|
## 0.12.0
|
|
42
26
|
|
|
@@ -44,8 +28,6 @@
|
|
|
44
28
|
|
|
45
29
|
- 0ad36158d980: Integrators can now bring their own auth strategies through the use of the `addAuthStrategy` method on `KubernetesBuilder`.
|
|
46
30
|
|
|
47
|
-
**BREAKING** the `ClusterDetails` interface has been refactored to add an `authMetadata` field, and the`authProvider`, `serviceAccountToken`, `assumeRole`, and `externalID` fields have all been removed -- they appear within `authMetadata` using the same keys as those read by the `catalog` cluster locator. This means that if you are using a custom cluster supplier, your code will need to be updated -- as an example, instead of returning a `ClusterDetails` like `{authProvider: 'aws'}`, you will need to return one like `{authMetadata: {['kubernetes.io/auth-provider']: 'aws'}`.
|
|
48
|
-
|
|
49
31
|
**BREAKING** on the slight chance you were using the `setAuthTranslatorMap` method on `KubernetesBuilder`, it has been removed along with the entire `KubernetesAuthTranslator` interface. This notion has been replaced with the more focused concept of an `AuthenticationStrategy`. Converting a translator to a strategy should not be especially difficult.
|
|
50
32
|
|
|
51
33
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/dist/alpha.cjs.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var backendCommon = require('@backstage/backend-common');
|
|
6
4
|
var backendPluginApi = require('@backstage/backend-plugin-api');
|
|
7
5
|
var alpha = require('@backstage/plugin-catalog-node/alpha');
|
|
@@ -32,5 +30,5 @@ const kubernetesPlugin = backendPluginApi.createBackendPlugin({
|
|
|
32
30
|
}
|
|
33
31
|
});
|
|
34
32
|
|
|
35
|
-
exports
|
|
33
|
+
module.exports = kubernetesPlugin;
|
|
36
34
|
//# sourceMappingURL=alpha.cjs.js.map
|
package/dist/alpha.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.cjs.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { loggerToWinstonLogger } from '@backstage/backend-common';\nimport {\n createBackendPlugin,\n coreServices,\n} from '@backstage/backend-plugin-api';\nimport { catalogServiceRef } from '@backstage/plugin-catalog-node/alpha';\n\nimport { KubernetesBuilder } from '@backstage/plugin-kubernetes-backend';\n\n/**\n * This is the backend plugin that provides the Kubernetes integration.\n * @alpha\n */\nexport const kubernetesPlugin = createBackendPlugin({\n pluginId: 'kubernetes',\n register(env) {\n env.registerInit({\n deps: {\n http: coreServices.httpRouter,\n logger: coreServices.logger,\n config: coreServices.rootConfig,\n catalogApi: catalogServiceRef,\n permissions: coreServices.permissions,\n },\n async init({ http, logger, config, catalogApi, permissions }) {\n const winstonLogger = loggerToWinstonLogger(logger);\n // TODO: expose all of the customization & extension points of the builder here\n const { router } = await KubernetesBuilder.createBuilder({\n logger: winstonLogger,\n config,\n catalogApi,\n permissions,\n }).build();\n http.use(router);\n },\n });\n },\n});\n"],"names":["createBackendPlugin","coreServices","catalogServiceRef","loggerToWinstonLogger","KubernetesBuilder"],"mappings":"
|
|
1
|
+
{"version":3,"file":"alpha.cjs.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { loggerToWinstonLogger } from '@backstage/backend-common';\nimport {\n createBackendPlugin,\n coreServices,\n} from '@backstage/backend-plugin-api';\nimport { catalogServiceRef } from '@backstage/plugin-catalog-node/alpha';\n\nimport { KubernetesBuilder } from '@backstage/plugin-kubernetes-backend';\n\n/**\n * This is the backend plugin that provides the Kubernetes integration.\n * @alpha\n */\nexport const kubernetesPlugin = createBackendPlugin({\n pluginId: 'kubernetes',\n register(env) {\n env.registerInit({\n deps: {\n http: coreServices.httpRouter,\n logger: coreServices.logger,\n config: coreServices.rootConfig,\n catalogApi: catalogServiceRef,\n permissions: coreServices.permissions,\n },\n async init({ http, logger, config, catalogApi, permissions }) {\n const winstonLogger = loggerToWinstonLogger(logger);\n // TODO: expose all of the customization & extension points of the builder here\n const { router } = await KubernetesBuilder.createBuilder({\n logger: winstonLogger,\n config,\n catalogApi,\n permissions,\n }).build();\n http.use(router);\n },\n });\n },\n});\n"],"names":["createBackendPlugin","coreServices","catalogServiceRef","loggerToWinstonLogger","KubernetesBuilder"],"mappings":";;;;;;;AA6BO,MAAM,mBAAmBA,oCAAoB,CAAA;AAAA,EAClD,QAAU,EAAA,YAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,MAAMC,6BAAa,CAAA,UAAA;AAAA,QACnB,QAAQA,6BAAa,CAAA,MAAA;AAAA,QACrB,QAAQA,6BAAa,CAAA,UAAA;AAAA,QACrB,UAAY,EAAAC,uBAAA;AAAA,QACZ,aAAaD,6BAAa,CAAA,WAAA;AAAA,OAC5B;AAAA,MACA,MAAM,KAAK,EAAE,IAAA,EAAM,QAAQ,MAAQ,EAAA,UAAA,EAAY,aAAe,EAAA;AAC5D,QAAM,MAAA,aAAA,GAAgBE,oCAAsB,MAAM,CAAA,CAAA;AAElD,QAAA,MAAM,EAAE,MAAA,EAAW,GAAA,MAAMC,0CAAkB,aAAc,CAAA;AAAA,UACvD,MAAQ,EAAA,aAAA;AAAA,UACR,MAAA;AAAA,UACA,UAAA;AAAA,UACA,WAAA;AAAA,SACD,EAAE,KAAM,EAAA,CAAA;AACT,QAAA,IAAA,CAAK,IAAI,MAAM,CAAA,CAAA;AAAA,OACjB;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
|
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.12.2
|
|
4
|
+
"version": "0.12.2",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
"@aws-sdk/credential-providers": "^3.350.0",
|
|
50
50
|
"@aws-sdk/signature-v4": "^3.347.0",
|
|
51
51
|
"@azure/identity": "^3.2.1",
|
|
52
|
-
"@backstage/backend-common": "^0.19.7
|
|
53
|
-
"@backstage/backend-plugin-api": "^0.6.5
|
|
52
|
+
"@backstage/backend-common": "^0.19.7",
|
|
53
|
+
"@backstage/backend-plugin-api": "^0.6.5",
|
|
54
54
|
"@backstage/catalog-client": "^1.4.4",
|
|
55
55
|
"@backstage/catalog-model": "^1.4.2",
|
|
56
56
|
"@backstage/config": "^1.1.0",
|
|
57
57
|
"@backstage/errors": "^1.2.2",
|
|
58
58
|
"@backstage/integration-aws-node": "^0.1.6",
|
|
59
|
-
"@backstage/plugin-auth-node": "^0.3.2
|
|
60
|
-
"@backstage/plugin-catalog-node": "^1.4.6
|
|
61
|
-
"@backstage/plugin-kubernetes-common": "^0.
|
|
59
|
+
"@backstage/plugin-auth-node": "^0.3.2",
|
|
60
|
+
"@backstage/plugin-catalog-node": "^1.4.6",
|
|
61
|
+
"@backstage/plugin-kubernetes-common": "^0.6.6",
|
|
62
62
|
"@backstage/plugin-permission-common": "^0.7.8",
|
|
63
|
-
"@backstage/plugin-permission-node": "^0.7.16
|
|
63
|
+
"@backstage/plugin-permission-node": "^0.7.16",
|
|
64
64
|
"@backstage/types": "^1.1.1",
|
|
65
65
|
"@google-cloud/container": "^4.0.0",
|
|
66
66
|
"@jest-mock/express": "^2.0.1",
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"yn": "^4.0.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@backstage/backend-test-utils": "^0.2.6
|
|
88
|
-
"@backstage/cli": "^0.
|
|
87
|
+
"@backstage/backend-test-utils": "^0.2.6",
|
|
88
|
+
"@backstage/cli": "^0.22.13",
|
|
89
89
|
"@types/aws4": "^1.5.1",
|
|
90
90
|
"mock-fs": "^5.2.0",
|
|
91
91
|
"msw": "^1.0.0",
|