Skip to content

Commit 648e5ed

Browse files
committed
WIP
1 parent 170d95d commit 648e5ed

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Follow the [quick start guide](docs/quickstart.md) to test this plugin with a ne
1919
To create a backstage instance and install this plugin for local development, run the following:
2020

2121
```
22-
> BACKSTAGE_APP_NAME=backstage-testing npx @backstage/create-app@latest
22+
> BACKSTAGE_APP_NAME=backstage-testing npx @backstage/create-app@0.5.25
2323
> cd backstage-testing
2424
> git clone https://github.com/grafana/backstage-plugin-grafana-catalog.git plugins/catalog-backend-module-grafana-servicemodel
2525
> sed -i 's/"name": "@grafana\/catalog-backend-module-grafana-servicemodel",/"name": "@internal\/catalog-backend-module-grafana-servicemodel",/' plugins/catalog-backend-module-grafana-servicemodel/package.json

docs/quickstart.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Pick a name for your testing, `backstage` might be a good start.
1111
Install the plugin:
1212

1313
```bash
14+
cd backstage # or whatever name you picked
1415
yarn --cwd packages/backend add @grafana/catalog-backend-module-grafana-servicemodel
1516
```
1617

@@ -19,7 +20,7 @@ Follow the [Grafana cloud access token](grafana-cloud-access-token.md) instructi
1920
Make changes similar to this to `packages/backend/src/index.ts`:
2021

2122
```js
22-
backend.add(import('@grafana/catalog-backend-module-grafana-servicemodel'));
23+
backend.add(import('@grafana/catalog-backend-module-grafana-servicemodel'));
2324
```
2425

2526
Go get some test catalog data. I suggest the example data from Backstage: [backstage/packages/catalog-model/examples at master · backstage/backstage](https://github.com/backstage/backstage/tree/master/packages/catalog-model/examples). Place the contents of the Backstage `examples` dir in the `catalog` dir at the top-level of this directory.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@grafana/catalog-backend-module-grafana-servicemodel",
2+
"name": "@internal/catalog-backend-module-grafana-servicemodel",
33
"description": "The grafana-service-model backend module for the catalog plugin.",
44
"homepage": "https://github.com/grafana/catalog-backend-module-grafana-servicemodel",
55
"version": "0.3.24",
@@ -47,7 +47,7 @@
4747
"@backstage/plugin-catalog-backend": "^1.24.0",
4848
"@backstage/plugin-catalog-common": "^1.0.25",
4949
"@backstage/plugin-catalog-node": "^1.12.4",
50-
"@kubernetes/client-node": "^0.20.0",
50+
"@kubernetes/client-node": "^1.1.2",
5151
"@spotify/prettier-config": "^15.0.0",
5252
"@types/lodash": "^4.14.202",
5353
"jsonpath-plus": "^10.2.0",

tests/integration/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM node:20
22

33
WORKDIR /app
44
ENV BACKSTAGE_APP_NAME=backstage
5-
RUN npx @backstage/create-app@latest
5+
RUN npx @backstage/create-app@0.5.25
66

77
WORKDIR /app/plugin
88
COPY src src/

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3563,7 +3563,7 @@ __metadata:
35633563
"@backstage/plugin-catalog-backend": "npm:^1.24.0"
35643564
"@backstage/plugin-catalog-common": "npm:^1.0.25"
35653565
"@backstage/plugin-catalog-node": "npm:^1.12.4"
3566-
"@kubernetes/client-node": "npm:^0.20.0"
3566+
"@kubernetes/client-node": "npm:^1.1.2"
35673567
"@spotify/prettier-config": "npm:^15.0.0"
35683568
"@types/jest": "npm:^29.5.14"
35693569
"@types/lodash": "npm:^4.14.202"

0 commit comments

Comments
 (0)