fix: route klog to stderr so k8s client errors are visible
CI / Vet, test, build (push) Successful in 3m52s
CI / Build and push image (push) Successful in 1m42s

This commit is contained in:
Admin Bot
2026-08-26 14:55:06 -07:00
parent ed8c4babd1
commit c237b633e9
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -11,6 +11,7 @@ import (
"k8s.io/client-go/dynamic"
"k8s.io/client-go/rest"
"k8s.io/klog/v2"
"forgejo.riotpiao.com/rock/homelab-frontend/internal/config"
"forgejo.riotpiao.com/rock/homelab-frontend/internal/proxy"
@@ -54,6 +55,10 @@ func main() {
healthChecker := server.NewHealthChecker(true, authEnabled)
srv.SetHealthChecker(healthChecker)
// Route klog (used by k8s client-go) to stderr so reflector errors are visible
klog.InitFlags(nil)
klog.SetOutput(os.Stderr)
// Create ServiceAdapter registry and dispatcher (phase 8)
registry := serviceadapter.NewRegistry(nil)
dispatcher := serviceadapter.NewDispatcher(registry)