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
This plugin demonstrates how to customize projects feature
3
+
This plugin demonstrates how to customize projects feature including:
4
+
5
+
- Custom project creation workflows
6
+
- Custom project details tabs
7
+
- Custom project overview sections
8
+
- Custom project list processors (extend or modify project discovery)
4
9
5
10
```bash
6
11
cd plugins/examples/projects
7
12
npm start
8
13
```
9
14
10
15
The main code for the example plugin is in [src/index.tsx](src/index.tsx).
16
+
17
+
## Project List Processors
18
+
19
+
The `registerProjectListProcessor` function allows plugins to extend or modify how projects are discovered and listed. Processors receive the current list of projects (from namespaces or previous processors) and can:
20
+
21
+
- Add new projects from Custom Resources, external APIs, or other sources
22
+
- Filter existing projects based on conditions
23
+
- Modify project properties like namespaces or clusters
24
+
- Completely replace the project list if needed
25
+
26
+
### Key Features
27
+
28
+
-**Additive by default**: Processors receive existing projects and can extend the list
29
+
-**Chainable**: Multiple processors can be registered and will run in sequence
30
+
-**Error handling**: Failed processors don't break the application
31
+
-**Duplicate prevention**: Easy to check for existing projects by ID
0 commit comments