mirror of
https://github.com/niusmallnan/steve.git
synced 2025-08-31 12:48:54 +00:00
Always calculate state from current object, not cached object
This commit is contained in:
@@ -92,12 +92,7 @@ func (s *SummaryCache) SummaryAndRelationship(obj runtime.Object) (*summary.Summ
|
||||
defer s.RUnlock()
|
||||
|
||||
key := toKey(obj)
|
||||
summaryObj, ok := s.cache.Get(key)
|
||||
if !ok {
|
||||
return summary.Summarized(obj), nil
|
||||
}
|
||||
|
||||
summarized := summaryObj.(*summary.SummarizedObject)
|
||||
summarized := summary.Summarized(obj)
|
||||
|
||||
relObjs, err := s.cache.ByIndex(relationshipIndex, key)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user