@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.
- package/README.md +22 -9
- package/package.json +15 -16
package/README.md
CHANGED
|
@@ -1,14 +1,27 @@
|
|
|
1
|
-
#
|
|
1
|
+
# backstage-policy-reporter-plugin-backend
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Backend for the Policy Reporter plugin
|
|
4
4
|
|
|
5
|
-
|
|
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
|
-
##
|
|
7
|
+
## Installation
|
|
8
8
|
|
|
9
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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.
|
|
4
|
-
"main": "dist/index.
|
|
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.
|
|
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.
|
|
37
|
-
"@backstage/backend-plugin-api": "^1.
|
|
38
|
-
"@backstage/config": "^1.3.
|
|
39
|
-
"@backstage/plugin-catalog-node": "^1.
|
|
40
|
-
"@kyverno/backstage-plugin-policy-reporter-common": "^2.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
|
|
50
|
-
"@backstage/catalog-model": "^1.7.
|
|
51
|
-
"@backstage/cli": "^0.29.
|
|
52
|
-
"@backstage/plugin-auth-backend": "^0.24.
|
|
53
|
-
"@backstage/plugin-auth-backend-module-guest-provider": "^0.2.
|
|
54
|
-
"@backstage/plugin-catalog-backend": "^1.
|
|
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": "
|
|
62
|
+
"gitHead": "9450cb5061c652a62c223ab1d51c0db44c65f31b",
|
|
64
63
|
"typesVersions": {
|
|
65
64
|
"*": {
|
|
66
65
|
"index": [
|