@backstage/plugin-kubernetes-backend 0.11.6-next.2 → 0.12.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 +82 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.cjs.js +1 -3
- package/dist/alpha.cjs.js.map +1 -1
- package/dist/alpha.d.ts +1 -1
- package/dist/index.cjs.js +265 -213
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +77 -73
- package/package.json +20 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,87 @@
|
|
|
1
1
|
# @backstage/plugin-kubernetes-backend
|
|
2
2
|
|
|
3
|
+
## 0.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0ad36158d980: Integrators can now bring their own auth strategies through the use of the `addAuthStrategy` method on `KubernetesBuilder`.
|
|
8
|
+
|
|
9
|
+
**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.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- ccf00accb408: Add AWS Annotations to Kubernetes Cluster Resource
|
|
14
|
+
- 72390ab2670d: Handle Proxy WS upgrade manually for WS handshakes
|
|
15
|
+
- 71114ac50e02: The export for the new backend system has been moved to be the `default` export.
|
|
16
|
+
|
|
17
|
+
For example, if you are currently importing the plugin using the following pattern:
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { examplePlugin } from '@backstage/plugin-example-backend';
|
|
21
|
+
|
|
22
|
+
backend.add(examplePlugin);
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
It should be migrated to this:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
backend.add(import('@backstage/plugin-example-backend'));
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
- 024b2b66a332: Fixed a bug where requests to the proxy endpoint would fail for clusters with `caFile` configured
|
|
32
|
+
- a8a614ba0d07: Minor `package.json` update.
|
|
33
|
+
- 47ea122590f5: fix "undefined" kind for custom resources
|
|
34
|
+
- Updated dependencies
|
|
35
|
+
- @backstage/plugin-kubernetes-common@0.6.6
|
|
36
|
+
- @backstage/backend-common@0.19.5
|
|
37
|
+
- @backstage/plugin-auth-node@0.3.0
|
|
38
|
+
- @backstage/config@1.1.0
|
|
39
|
+
- @backstage/catalog-client@1.4.4
|
|
40
|
+
- @backstage/catalog-model@1.4.2
|
|
41
|
+
- @backstage/errors@1.2.2
|
|
42
|
+
- @backstage/plugin-permission-common@0.7.8
|
|
43
|
+
- @backstage/types@1.1.1
|
|
44
|
+
- @backstage/plugin-permission-node@0.7.14
|
|
45
|
+
- @backstage/backend-plugin-api@0.6.3
|
|
46
|
+
- @backstage/plugin-catalog-node@1.4.4
|
|
47
|
+
- @backstage/integration-aws-node@0.1.6
|
|
48
|
+
|
|
49
|
+
## 0.11.6-next.3
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- 71114ac50e02: The export for the new backend system has been moved to be the `default` export.
|
|
54
|
+
|
|
55
|
+
For example, if you are currently importing the plugin using the following pattern:
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
import { examplePlugin } from '@backstage/plugin-example-backend';
|
|
59
|
+
|
|
60
|
+
backend.add(examplePlugin);
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
It should be migrated to this:
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
backend.add(import('@backstage/plugin-example-backend'));
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
- a8a614ba0d07: Minor `package.json` update.
|
|
70
|
+
- Updated dependencies
|
|
71
|
+
- @backstage/catalog-client@1.4.4-next.2
|
|
72
|
+
- @backstage/catalog-model@1.4.2-next.2
|
|
73
|
+
- @backstage/config@1.1.0-next.2
|
|
74
|
+
- @backstage/errors@1.2.2-next.0
|
|
75
|
+
- @backstage/plugin-kubernetes-common@0.6.6-next.2
|
|
76
|
+
- @backstage/plugin-permission-common@0.7.8-next.2
|
|
77
|
+
- @backstage/types@1.1.1-next.0
|
|
78
|
+
- @backstage/plugin-permission-node@0.7.14-next.3
|
|
79
|
+
- @backstage/backend-plugin-api@0.6.3-next.3
|
|
80
|
+
- @backstage/backend-common@0.19.5-next.3
|
|
81
|
+
- @backstage/integration-aws-node@0.1.6-next.2
|
|
82
|
+
- @backstage/plugin-auth-node@0.3.0-next.3
|
|
83
|
+
- @backstage/plugin-catalog-node@1.4.4-next.3
|
|
84
|
+
|
|
3
85
|
## 0.11.6-next.2
|
|
4
86
|
|
|
5
87
|
### 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/dist/alpha.d.ts
CHANGED