fix
Build and Publish / Metadata (push) Successful in 9s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 2m35s

This commit is contained in:
mats committed 2026-09-22 22:09:32 +02:00
1 parent e81b8c2fcd
commit 0052822e49
7 files changed
+94 -1

No files matched your search

+10
View File
@@ -244,6 +244,16 @@ func main() {
historySize := 100
store := setupStore(context.Background())
coll := collector.New(nil, historySize, store) // Temporary nil for wsServer
if occurrenceStore, ok := store.(storage.OccurrenceStore); ok {
occurrences, err := occurrenceStore.RecentOccurrences(context.Background(), 100000)
if err != nil {
log.Printf("issues: persisted index restore skipped: %v", err)
} else if n, err := coll.RestoreIssues(context.Background(), occurrences); err != nil {
log.Printf("issues: persisted index restore failed after %d occurrences: %v", n, err)
} else if len(occurrences) > 0 {
log.Printf("issues: restored %d persisted occurrences", n)
}
}
kubeWatcher, kubeErr := kube.NewFromEnv(context.Background())
if kubeErr != nil {
log.Printf("kubernetes: rollout watcher disabled: %v", kubeErr)