From 2270d83b2c73acc01a57f9d1076cd9142c11a7b5 Mon Sep 17 00:00:00 2001 From: roi-codefresh Date: Tue, 4 Jan 2022 13:34:46 +0200 Subject: [PATCH] fixed cache bug (#53) --- server/application/application.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/application/application.go b/server/application/application.go index d208afa5964d3..829b8faff3c7d 100644 --- a/server/application/application.go +++ b/server/application/application.go @@ -884,8 +884,14 @@ func (s *Server) shouldSendApplicationEvent(ae *appv1.ApplicationWatchEvent) boo return true } - cachedApp.Status.ReconciledAt = ae.Application.Status.ReconciledAt // ignore this diff + cachedApp.Status.ReconciledAt = ae.Application.Status.ReconciledAt // ignore those in the diff cachedApp.Spec.Project = ae.Application.Spec.Project // + for i := range cachedApp.Status.Conditions { + cachedApp.Status.Conditions[i].LastTransitionTime = nil + } + for i := range ae.Application.Status.Conditions { + ae.Application.Status.Conditions[i].LastTransitionTime = nil + } cachedAppSpec, err := json.Marshal(&cachedApp.Spec) if err != nil {