@kyverno/backstage-plugin-policy-reporter-backend 2.0.0 → 2.0.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.
Files changed (2) hide show
  1. package/README.md +22 -9
  2. package/package.json +15 -16
package/README.md CHANGED
@@ -1,14 +1,27 @@
1
- # kyverno-policy-reports
1
+ # backstage-policy-reporter-plugin-backend
2
2
 
3
- Welcome to the kyverno-policy-reports backend plugin!
3
+ The Backend for the Policy Reporter plugin
4
4
 
5
- _This plugin was created through the Backstage CLI_
5
+ This plugin integrates [Policy Reporter](https://kyverno.github.io/policy-reporter/) with Backstage to provide a clear and detailed view of Kyverno Policies applied to your entities
6
6
 
7
- ## Getting started
7
+ ## Installation
8
8
 
9
- Your plugin has been added to the example app in this repository, meaning you'll be able to access it by running `yarn
10
- start` in the root directory, and then navigating to [/kyvernoPolicyReportsPlugin/health](http://localhost:7007/api/kyvernoPolicyReportsPlugin/health).
9
+ From your backstage root directory, run the following commands:
11
10
 
12
- You can also serve the plugin in isolation by running `yarn start` in the plugin directory.
13
- This method of serving the plugin provides quicker iteration speed and a faster startup and hot reloads.
14
- It is only meant for local development, and the setup for it can be found inside the [/dev](/dev) directory.
11
+ ```bash
12
+ yarn --cwd packages/backend add @kyverno/backstage-plugin-policy-reporter-backend
13
+ ```
14
+
15
+ Then add the plugin to your backend in `packages/backend/src/index.ts`
16
+
17
+ ```diff
18
+
19
+ const backend = createBackend();
20
+
21
+ // ..
22
+ +backend.add(import('@kyverno/backstage-plugin-policy-reporter-backend'));
23
+ // ..
24
+
25
+ backend.start();
26
+
27
+ ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kyverno/backstage-plugin-policy-reporter-backend",
3
- "version": "2.0.0",
4
- "main": "dist/index.esm.js",
3
+ "version": "2.0.2",
4
+ "main": "dist/index.cjs.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "Apache-2.0",
7
7
  "backstage": {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "publishConfig": {
17
17
  "access": "public",
18
- "main": "dist/index.esm.js",
18
+ "main": "dist/index.cjs.js",
19
19
  "types": "dist/index.d.ts"
20
20
  },
21
21
  "repository": {
@@ -33,25 +33,24 @@
33
33
  "postpack": "backstage-cli package postpack"
34
34
  },
35
35
  "dependencies": {
36
- "@backstage/backend-defaults": "^0.5.3",
37
- "@backstage/backend-plugin-api": "^1.0.2",
38
- "@backstage/config": "^1.3.0",
39
- "@backstage/plugin-catalog-node": "^1.14.0",
40
- "@kyverno/backstage-plugin-policy-reporter-common": "^2.0.0",
36
+ "@backstage/backend-defaults": "^0.7.0",
37
+ "@backstage/backend-plugin-api": "^1.1.1",
38
+ "@backstage/config": "^1.3.2",
39
+ "@backstage/plugin-catalog-node": "^1.15.1",
40
+ "@kyverno/backstage-plugin-policy-reporter-common": "^2.0.2",
41
41
  "@types/express": "*",
42
42
  "express": "^4.17.1",
43
43
  "express-promise-router": "^4.1.0",
44
- "node-fetch": "^3.3.2",
45
44
  "winston": "^3.2.1",
46
45
  "yn": "^4.0.0"
47
46
  },
48
47
  "devDependencies": {
49
- "@backstage/backend-test-utils": "^1.1.0",
50
- "@backstage/catalog-model": "^1.7.1",
51
- "@backstage/cli": "^0.29.2",
52
- "@backstage/plugin-auth-backend": "^0.24.0",
53
- "@backstage/plugin-auth-backend-module-guest-provider": "^0.2.2",
54
- "@backstage/plugin-catalog-backend": "^1.28.0",
48
+ "@backstage/backend-test-utils": "^1.2.1",
49
+ "@backstage/catalog-model": "^1.7.3",
50
+ "@backstage/cli": "^0.29.5",
51
+ "@backstage/plugin-auth-backend": "^0.24.2",
52
+ "@backstage/plugin-auth-backend-module-guest-provider": "^0.2.4",
53
+ "@backstage/plugin-catalog-backend": "^1.30.0",
55
54
  "@types/supertest": "^2.0.12",
56
55
  "better-sqlite3": "^9.0.0",
57
56
  "msw": "^1.0.0",
@@ -60,7 +59,7 @@
60
59
  "files": [
61
60
  "dist"
62
61
  ],
63
- "gitHead": "9a769119bd77bb807670baefffeb37510e5c61c9",
62
+ "gitHead": "9450cb5061c652a62c223ab1d51c0db44c65f31b",
64
63
  "typesVersions": {
65
64
  "*": {
66
65
  "index": [