You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Konflux] add local development setup guide to README (#2845)
* docs(konflux): add local development setup guide to README
Add sections covering configuration (app-config.local.yaml), service account
setup with minimum RBAC permissions, example entity configuration, and test
commands.
* fixup! docs(konflux): add local development setup guide to README
Copy file name to clipboardExpand all lines: workspaces/konflux/README.md
+134-3Lines changed: 134 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,142 @@ The Konflux plugin is a Backstage integration plugin that connects Backstage wit
10
10
11
11
## Local Development
12
12
13
-
To start the Backstage App, run:
13
+
### Quick Start
14
14
15
15
```sh
16
16
yarn install
17
-
yarn start
17
+
yarn dev
18
18
```
19
19
20
-
For more detailed documentation, see the [main plugin README](./plugins/konflux/README.md).
20
+
This starts both the frontend (http://localhost:3000) and backend (http://localhost:7007). You'll be able to log in as a guest user - no OIDC setup is needed for local development.
21
+
22
+
However, the Backstage app won't show any Konflux data until you configure a cluster connection. See the sections below.
23
+
24
+
### Configuration
25
+
26
+
The workspace uses two config files:
27
+
28
+
-**`app-config.yaml`** (tracked in git) — contains the base configuration with environment variable placeholders. This file is shared across all developers and should not contain secrets.
29
+
-**`app-config.local.yaml`** (gitignored via `*.local.yaml`) — your personal overrides with secrets and cluster configuration. This file is **not** tracked in git and you need to create it yourself.
30
+
31
+
Backstage merges both files at startup, with `app-config.local.yaml` taking precedence.
32
+
33
+
#### Creating `app-config.local.yaml`
34
+
35
+
Create a file named `app-config.local.yaml` in the workspace root (`workspaces/konflux/`) with the following content:
Copy the token output into the `serviceAccountToken` field in your `app-config.local.yaml`.
121
+
122
+
> **Note:** The plugin only requires `list` permissions on `applications`, `components`, `releases`, `pipelineruns`, and `taskruns`. The Role above provides the minimum required access.
123
+
124
+
### Example Entities
125
+
126
+
The file `examples/entities.yaml` contains sample Backstage catalog entities with Konflux annotations. These entities are automatically loaded by the local Backstage app (configured in `app-config.yaml` under `catalog.locations`).
127
+
128
+
You need to edit this file to match your cluster and namespace. The key annotation is `konflux-ci.dev/clusters`:
129
+
130
+
```yaml
131
+
annotations:
132
+
konflux-ci.dev/overview: 'true'
133
+
konflux-ci.dev/konflux: 'true'
134
+
konflux-ci.dev/ci: 'true'
135
+
konflux-ci.dev/clusters: |
136
+
- cluster: my-cluster # Must match a key under konflux.clusters in app-config
137
+
namespace: my-namespace # Your Konflux namespace
138
+
applications:
139
+
- my-application # Specific application names, or "*" for all
140
+
```
141
+
142
+
For more details on entity annotations and subcomponent support, see the [main plugin README](./plugins/konflux/README.md).
0 commit comments