Bläddra i källkod

process annotations in etl

Sean Holcomb 5 år sedan
förälder
incheckning
a8ac57c562
2 ändrade filer med 2 tillägg och 0 borttagningar
  1. 1 0
      pkg/costmodel/aggregation.go
  2. 1 0
      pkg/kubecost/properties.go

+ 1 - 0
pkg/costmodel/aggregation.go

@@ -599,6 +599,7 @@ func aggregateDatum(cp cloud.Provider, aggregations map[string]*Aggregation, cos
 				props.SetControllerKind(kind)
 			}
 			props.SetLabels(costDatum.Labels)
+			props.SetAnnotations(costDatum.Annotations)
 			props.SetNamespace(costDatum.Namespace)
 			props.SetPod(costDatum.PodName)
 			props.SetServices(costDatum.Services)

+ 1 - 0
pkg/kubecost/properties.go

@@ -222,6 +222,7 @@ func (p *Properties) Length() int {
 	return len(*p)
 }
 
+// TODO: deprecate
 func (p *Properties) Matches(that Properties) bool {
 	// The only Properties that a nil Properties matches is an empty one
 	if p == nil {