From 77a06ba61aa8136c5d51f1f384459def0f97f269 Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Tue, 10 Dec 2024 19:52:45 +0545 Subject: [PATCH] fix: update cache on updates --- db/update.go | 1 + 1 file changed, 1 insertion(+) diff --git a/db/update.go b/db/update.go index a949057e..e8d34430 100644 --- a/db/update.go +++ b/db/update.go @@ -584,6 +584,7 @@ func saveResults(ctx api.ScrapeContext, results []v1.ScrapeResult) (v1.ScrapeSum if updated { summary.AddUpdated(updateArg.Existing.Type) + ctx.TempCache().Insert(*updateArg.New) } else { summary.AddUnchanged(updateArg.Existing.Type) nonUpdatedConfigs = append(nonUpdatedConfigs, updateArg.Existing.ID)