소스 검색

Merge pull request #648 from kubecost/bolt/pod-annotations-fix

Fix Empty Pod Name on Pod Annotations Metric
Matt Bolt 5 년 전
부모
커밋
722f3c9bce
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 {
 func newPodAnnotationMetric(namespace, name, fqname string, labelNames []string, labelValues []string) PodAnnotationsMetric {
 	return PodAnnotationsMetric{
 	return PodAnnotationsMetric{
 		namespace:   namespace,
 		namespace:   namespace,
+		name:        name,
 		fqName:      fqname,
 		fqName:      fqname,
 		labelNames:  labelNames,
 		labelNames:  labelNames,
 		labelValues: labelValues,
 		labelValues: labelValues,