Просмотр исходного кода

Fix the issue with empty pod name on annotation metric.

Matt Bolt 5 лет назад
Родитель
Сommit
a11f49e83e
1 измененных файлов с 1 добавлено и 0 удалено
  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,