Explorar el Código

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

Fix Empty Pod Name on Pod Annotations Metric
Matt Bolt hace 5 años
padre
commit
722f3c9bce
Se han modificado 1 ficheros con 1 adiciones y 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,