Kaynağa Gözat

Fix the issue with empty pod name on annotation metric.

Matt Bolt 5 yıl önce
ebeveyn
işleme
a11f49e83e
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      pkg/costmodel/metrics.go

+ 1 - 0
pkg/costmodel/metrics.go

@@ -404,6 +404,7 @@ type PodAnnotationsMetric struct {
 func newPodAnnotationMetric(namespace, name, fqname string, labelNames []string, labelValues []string) PodAnnotationsMetric {
 	return PodAnnotationsMetric{
 		namespace:   namespace,
+		name:        name,
 		fqName:      fqname,
 		labelNames:  labelNames,
 		labelValues: labelValues,