Skip to content

Commit b62c839

Browse files
authored
Merge pull request #82 from Nordix/porch-to-kpt
Change the references in the repository form porch to kpt and upgrade the backstage plugins
2 parents 7c2e4fc + 1a9f3d9 commit b62c839

116 files changed

Lines changed: 2557 additions & 1027 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# SPDX-license-identifier: Apache-2.0
33
##############################################################################
4-
# Copyright (c) 2024 The Nephio Authors.
4+
# Copyright (c) 2024 The kpt Authors
55
# All rights reserved. This program and the accompanying materials
66
# are made available under the terms of the Apache License, Version 2.0
77
# which accompanies this distribution, and is available at

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3737
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
3838
with:
39-
node-version: 18
39+
node-version: 26
4040
- name: Install dependencies
4141
run: yarn install --frozen-lockfile
4242
- name: Lint
@@ -58,7 +58,7 @@ jobs:
5858
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5959
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
6060
with:
61-
node-version: 18
61+
node-version: 26
6262
- name: Install dependencies
6363
run: yarn install --frozen-lockfile
6464
- name: Run tests

.prow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ presubmits:
3838
always_run: true
3939
spec:
4040
containers:
41-
- image: nephio/gotests:1783899289886396416
41+
- image: kpt/gotests:1783899289886396416
4242
command:
4343
- "/bin/sh"
4444
- "-c"
@@ -50,7 +50,7 @@ presubmits:
5050
always_run: true
5151
spec:
5252
containers:
53-
- image: nephio/scancode-toolkit:v31.2.5
53+
- image: kpt/scancode-toolkit:v31.2.5
5454
command:
5555
- "/bin/sh"
5656
args:

README.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
# Kpt Backstage Plugins
22

3-
**NOTICE** This is a fork of the upstream Kpt Backstage Plugin repository. The
4-
intention is to upstream relevant changes to that repository after kpt moves to
5-
CNCF and has the CNCF CLA. Please keep changes that are Nephio-specific (i.e.,
6-
do not belong in the upstream project) easily separable (or do them in a
7-
different repository).
8-
93
Welcome! This repository contains the Kpt Backstage Plugins. The plugins can be
104
installed into an existing Backstage Application following the READMEs for each
115
plugin. For development and testing, the plugins can also be executed with the
126
example Backstage Application in this repository.
137

148
[Configuration as Data](plugins/cad) is the primary plugin which powers the
15-
WYSIWYG Configuration GUI over GitOps using [kpt](https://kpt.dev/) and its new
16-
Package Orchestrator,
17-
[Porch](https://github.com/GoogleContainerTools/kpt/tree/main/porch).
9+
WYSIWYG Configuration GUI over GitOps using [kpt](https://kpt.dev/) and its
10+
Package Orchestrator, [Porch](https://github.com/kptdev//porch).
1811

1912
![CaD Landing Page](images/cad-plugin-landing.png)
2013

@@ -68,9 +61,9 @@ yarn install
6861
### Running the UI
6962

7063
To run the UI, you'll need to use this command will start Backstage frontend and
71-
backend instances. The frontend instance is hosted on port 3000 and, the backend
64+
backend instances. The frontend instance is hosted on port 3900 and, the backend
7265
instance is on port 7007. Once started, you'll be able to access the UI by
73-
browsing to the URL http://localhost:3000.
66+
browsing to the URL http://localhost:3900.
7467

7568
```bash
7669
yarn dev

app-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
app:
1616
title: Kpt Backstage Plugins
17-
baseUrl: http://localhost:3000
17+
baseUrl: http://localhost:3900
1818

1919
organization:
2020
name: Kpt Backstage Plugins
@@ -31,7 +31,7 @@ backend:
3131
# Content-Security-Policy directives follow the Helmet format: https://helmetjs.github.io/#reference
3232
# Default Helmet Content-Security-Policy values can be removed by setting the key to false
3333
cors:
34-
origin: http://localhost:3000
34+
origin: http://localhost:3900
3535
methods: [GET, POST, PUT, DELETE]
3636
credentials: true
3737
database:

hack/resources/package-repositories.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ spec:
2626
git:
2727
branch: main
2828
directory: /
29-
repo: https://github.com/GoogleContainerTools/kpt-samples.git
29+
repo: https://github.com/kptdev/kpt-samples.git
3030
type: git
3131
---
3232
apiVersion: config.porch.kpt.dev/v1alpha1

jest.setup.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
// Polyfill for SlowBuffer removed in Node.js 26
2+
const buffer = require('buffer');
3+
if (!buffer.SlowBuffer) {
4+
buffer.SlowBuffer = function SlowBuffer(length) {
5+
return Buffer.allocUnsafe(length);
6+
};
7+
buffer.SlowBuffer.prototype = Buffer.prototype;
8+
}
9+
110
const { TextEncoder, TextDecoder } = require('util');
211

312
global.TextEncoder = TextEncoder;

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
},
6565
"dependencies": {
6666
"@types/react": "^17",
67-
"@types/react-dom": "^17"
67+
"@types/react-dom": "^17",
68+
"better-sqlite3": "^12.10.0"
6869
}
6970
}

packages/app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"history": "^5.0.0",
2424
"react": "^17.0.2",
2525
"react-dom": "^17.0.2",
26-
"react-router": "6.0.0-beta.0",
27-
"react-router-dom": "6.0.0-beta.0",
26+
"react-router": "^6.3.0",
27+
"react-router-dom": "^6.3.0",
2828
"react-use": "^15.3.3"
2929
},
3030
"devDependencies": {
-30.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)