Explorar o código

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

Fix Empty Pod Name on Pod Annotations Metric
Matt Bolt %!s(int64=5) %!d(string=hai) anos
pai
achega
722f3c9bce
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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,