浏览代码

Merge pull request #1400 from avrodrigues5/avr/v1-filter-change

Improving usage of v1 filter function
Michael Dresser 3 年之前
父节点
当前提交
6a411b1859
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pkg/util/allocationfilterutil/queryfilters.go

+ 2 - 2
pkg/util/allocationfilterutil/queryfilters.go

@@ -7,7 +7,7 @@ import (
 	"github.com/opencost/opencost/pkg/kubecost"
 	"github.com/opencost/opencost/pkg/log"
 	"github.com/opencost/opencost/pkg/prom"
-	"github.com/opencost/opencost/pkg/util/httputil"
+	"github.com/opencost/opencost/pkg/util/mapper"
 )
 
 // ============================================================================
@@ -41,7 +41,7 @@ func parseWildcardEnd(rawFilterValue string) (string, bool) {
 // filtering. This turns all `filterClusters=foo` arguments into the equivalent
 // of `clusterID = "foo" OR clusterName = "foo"`.
 func AllocationFilterFromParamsV1(
-	qp httputil.QueryParams,
+	qp mapper.PrimitiveMapReader,
 	labelConfig *kubecost.LabelConfig,
 	clusterMap clusters.ClusterMap,
 ) kubecost.AllocationFilter {