@backstage/plugin-kubernetes-backend 0.19.9-next.0 → 0.20.0-next.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-kubernetes-backend",
3
- "version": "0.19.9-next.0",
3
+ "version": "0.20.0-next.1",
4
4
  "description": "A Backstage backend plugin that integrates towards Kubernetes",
5
5
  "backstage": {
6
6
  "role": "backend-plugin",
@@ -13,8 +13,7 @@
13
13
  "@backstage/plugin-kubernetes-react"
14
14
  ],
15
15
  "features": {
16
- ".": "@backstage/BackendFeature",
17
- "./alpha": "@backstage/BackendFeature"
16
+ ".": "@backstage/BackendFeature"
18
17
  }
19
18
  },
20
19
  "publishConfig": {
@@ -31,33 +30,8 @@
31
30
  "directory": "plugins/kubernetes-backend"
32
31
  },
33
32
  "license": "Apache-2.0",
34
- "exports": {
35
- ".": {
36
- "backstage": "@backstage/BackendFeature",
37
- "require": "./dist/index.cjs.js",
38
- "types": "./dist/index.d.ts",
39
- "default": "./dist/index.cjs.js"
40
- },
41
- "./alpha": {
42
- "backstage": "@backstage/BackendFeature",
43
- "require": "./dist/alpha.cjs.js",
44
- "types": "./dist/alpha.d.ts",
45
- "default": "./dist/alpha.cjs.js"
46
- },
47
- "./package.json": "./package.json"
48
- },
49
33
  "main": "./dist/index.cjs.js",
50
34
  "types": "./dist/index.d.ts",
51
- "typesVersions": {
52
- "*": {
53
- "alpha": [
54
- "dist/alpha.d.ts"
55
- ],
56
- "package.json": [
57
- "package.json"
58
- ]
59
- }
60
- },
61
35
  "files": [
62
36
  "dist",
63
37
  "config.d.ts"
@@ -76,7 +50,6 @@
76
50
  "@aws-sdk/credential-providers": "^3.350.0",
77
51
  "@aws-sdk/signature-v4": "^3.347.0",
78
52
  "@azure/identity": "^4.0.0",
79
- "@backstage/backend-common": "^0.25.0",
80
53
  "@backstage/backend-plugin-api": "1.4.2-next.0",
81
54
  "@backstage/catalog-client": "1.11.0-next.0",
82
55
  "@backstage/catalog-model": "1.7.5",
@@ -93,9 +66,7 @@
93
66
  "@google-cloud/container": "^5.0.0",
94
67
  "@jest-mock/express": "^2.0.1",
95
68
  "@kubernetes/client-node": "1.1.2",
96
- "@types/express": "^4.17.6",
97
69
  "@types/http-proxy-middleware": "^1.0.0",
98
- "@types/luxon": "^3.0.0",
99
70
  "compression": "^1.7.4",
100
71
  "cors": "^2.8.5",
101
72
  "express": "^4.17.1",
@@ -115,13 +86,22 @@
115
86
  "@backstage/backend-app-api": "1.2.6-next.0",
116
87
  "@backstage/backend-defaults": "0.11.2-next.0",
117
88
  "@backstage/backend-test-utils": "1.7.1-next.0",
118
- "@backstage/cli": "0.33.2-next.0",
89
+ "@backstage/cli": "0.34.0-next.2",
119
90
  "@backstage/plugin-permission-backend": "0.7.3-next.0",
120
91
  "@backstage/plugin-permission-backend-module-allow-all-policy": "0.2.11-next.0",
121
92
  "@types/aws4": "^1.5.1",
93
+ "@types/express": "^4.17.6",
94
+ "@types/luxon": "^3.0.0",
122
95
  "msw": "^1.0.0",
123
96
  "supertest": "^7.0.0",
124
97
  "ws": "^8.18.0"
125
98
  },
126
- "configSchema": "config.d.ts"
99
+ "configSchema": "config.d.ts",
100
+ "typesVersions": {
101
+ "*": {
102
+ "package.json": [
103
+ "package.json"
104
+ ]
105
+ }
106
+ }
127
107
  }
package/dist/alpha.cjs.js DELETED
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var plugin = require('./plugin.cjs.js');
6
-
7
- const _feature = plugin.kubernetesPlugin;
8
-
9
- exports.default = _feature;
10
- //# sourceMappingURL=alpha.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alpha.cjs.js","sources":["../src/alpha.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 { kubernetesPlugin as feature } from './plugin';\n\n/** @alpha */\nconst _feature = feature;\nexport default _feature;\n"],"names":["feature"],"mappings":";;;;;;AAmBA,MAAM,QAAW,GAAAA;;;;"}
package/dist/alpha.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
2
-
3
- /** @alpha */
4
- declare const _feature: _backstage_backend_plugin_api.BackendFeature;
5
-
6
- export { _feature as default };
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var KubernetesBuilder = require('./KubernetesBuilder.cjs.js');
4
-
5
- async function createRouter(options) {
6
- const { router } = await KubernetesBuilder.KubernetesBuilder.createBuilder(options).setClusterSupplier(options.clusterSupplier).build();
7
- return router;
8
- }
9
-
10
- exports.createRouter = createRouter;
11
- //# sourceMappingURL=router.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"router.cjs.js","sources":["../../src/service/router.ts"],"sourcesContent":["/*\n * Copyright 2020 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 { Logger } from 'winston';\nimport { KubernetesClustersSupplier } from '../types/types';\nimport express from 'express';\nimport { KubernetesBuilder } from './KubernetesBuilder';\nimport { CatalogApi } from '@backstage/catalog-client';\nimport { PermissionEvaluator } from '@backstage/plugin-permission-common';\nimport {\n DiscoveryService,\n RootConfigService,\n} from '@backstage/backend-plugin-api';\n\n/**\n * @deprecated Please migrate to the new backend system as this will be removed in the future.\n * @public\n */\nexport interface RouterOptions {\n logger: Logger;\n config: RootConfigService;\n catalogApi: CatalogApi;\n clusterSupplier?: KubernetesClustersSupplier;\n discovery: DiscoveryService;\n permissions: PermissionEvaluator;\n}\n\n/**\n * creates and configure a new router for handling the kubernetes backend APIs\n * @param options - specifies the options required by this plugin\n * @returns a new router\n * @deprecated Please migrate to the new backend system as this will be removed in the future.\n * ```\n * import { KubernetesBuilder } from '@backstage/plugin-kubernetes-backend';\n * const { router } = await KubernetesBuilder.createBuilder({\n * logger,\n * config,\n * }).build();\n * ```\n *\n * @public\n */\nexport async function createRouter(\n options: RouterOptions,\n): Promise<express.Router> {\n const { router } = await KubernetesBuilder.createBuilder(options)\n .setClusterSupplier(options.clusterSupplier)\n .build();\n return router;\n}\n"],"names":["KubernetesBuilder"],"mappings":";;;;AAuDA,eAAsB,aACpB,OACyB,EAAA;AACzB,EAAA,MAAM,EAAE,MAAA,EAAW,GAAA,MAAMA,mCAAkB,CAAA,aAAA,CAAc,OAAO,CAAA,CAC7D,kBAAmB,CAAA,OAAA,CAAQ,eAAe,CAAA,CAC1C,KAAM,EAAA;AACT,EAAO,OAAA,MAAA;AACT;;;;"}