2
0
Эх сурвалжийг харах

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

Fix Empty Pod Name on Pod Annotations Metric
Matt Bolt 5 жил өмнө
parent
commit
722f3c9bce

+ 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,