Comments (1)
I've looked a bit more into this. When starting the backend it will start watching for plugin changes. When it detects change it will send a X-Reload header to the frontend.
But it also happens just when starting backend for the first time. You can notice the following log in the backend output
{"level":"info","source":"/home/dubenko/headlamp/backend/pkg/plugins/plugins.go","line":224,"time":"2024-08-01T12:23:23+02:00","message":"Sending reload plugins signal to frontend"}
I've traced it down to plugins.go file. It manually sends a fsevent for all files on the first run, I think this is the issue
func periodicallyWatchSubfolders(watcher *fsnotify.Watcher, path string, interval time.Duration) {
// ...
// when a folder is added, send events for all the files in the folder
entries, err := os.ReadDir(path)
if err != nil {
logger.Log(logger.LevelError, map[string]string{"path": path},
err, "reading dir")
return err
}
for _, entry := range entries {
watcher.Events <- fsnotify.Event{Name: filepath.Join(path, entry.Name()), Op: fsnotify.Create}
}
// ...
}
from headlamp.
Related Issues (20)
- RFC: Automatic upgrade for Mac and Windows installers?
- How to prevent automatically OIDC (kubelogin) when opening Headlamp (specifically through CLI) HOT 2
- document how to test plugins in a built app (one made with make app-linux)
- Mac ARM version shows 'developer not verified' message HOT 2
- Improve API documentation + website links HOT 1
- Electron app e2e test conversion
- Not able to access Plugin Catalog when only one cluster is loaded HOT 1
- Plugin API: Provide a way to register details view action selectively
- Not possible to add multiple cluster with same context HOT 7
- React and React Hooks eslint rules are not working
- Integrate a11y checks as a part of e2e tests
- Fix Helm extra-args lint tests
- OIDC authentication is not handled gracefully in headlamp HOT 1
- Not possible to add more than one cluster in the desktopclient HOT 6
- Dynamic cluster plugin issue HOT 7
- Use OIDC without in-cluster?
- AWS EKS token is not working
- Electron App Mode on Windows Loads Blank Screen
- Cannot install plugins on Flatpak
- cannot show ingresses in headlamp 0.25.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from headlamp.