Always calculate state from current object, not cached object

This commit is contained in:
Darren Shepherd
2020-07-21 08:26:28 -07:00
parent 10b1eac592
commit f403507ea9

View File

@@ -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 {