AjayTripathy пре 6 година
родитељ
комит
a2bbfbabb4
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      costmodel/costmodel.go

+ 1 - 0
costmodel/costmodel.go

@@ -663,6 +663,7 @@ func findDeletedPodInfo(cli prometheusClient.Client, missingContainers map[strin
 			labels, ok := podLabels[cm.PodName]
 			if !ok {
 				klog.V(1).Infof("Unable to find historical data for pod '%s'", cm.PodName)
+				labels = make(map[string]string)
 			}
 			for k, v := range costData.NamespaceLabels {
 				if _, ok := labels[k]; !ok {