Parcourir la source

Map name-only key to itself

Christian Petersen il y a 5 mois
Parent
commit
daeb62b689
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      pkg/costmodel/allocation_helpers.go

+ 1 - 0
pkg/costmodel/allocation_helpers.go

@@ -195,6 +195,7 @@ func applyPodResults(window opencost.Window, resolution time.Duration, podMap ma
 			uid := res.UID
 			if uid == "" {
 				log.Warnf("CostModel.ComputeAllocation: UID ingestion enabled, but query result missing field: uid")
+				podUIDKeyMap[key] = append(podUIDKeyMap[key], key)
 			} else {
 				newKey := newPodKey(cluster, namespace, podName+" "+uid)
 				podUIDKeyMap[key] = append(podUIDKeyMap[key], newKey)