diff --git a/pkg/api/api.go b/pkg/api/api.go index 0419a18e2df..2e4d6645ba7 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -17,7 +17,6 @@ import ( "github.com/cortexproject/cortex/pkg/alertmanager" "github.com/cortexproject/cortex/pkg/alertmanager/alertmanagerpb" - "github.com/cortexproject/cortex/pkg/chunk/purger" "github.com/cortexproject/cortex/pkg/compactor" "github.com/cortexproject/cortex/pkg/cortexpb" "github.com/cortexproject/cortex/pkg/distributor" @@ -27,6 +26,7 @@ import ( frontendv2 "github.com/cortexproject/cortex/pkg/frontend/v2" "github.com/cortexproject/cortex/pkg/frontend/v2/frontendv2pb" "github.com/cortexproject/cortex/pkg/ingester/client" + "github.com/cortexproject/cortex/pkg/purger" "github.com/cortexproject/cortex/pkg/querier" "github.com/cortexproject/cortex/pkg/ring" "github.com/cortexproject/cortex/pkg/ruler" diff --git a/pkg/api/handlers.go b/pkg/api/handlers.go index 67cdadfcd94..3a4b5a010b9 100644 --- a/pkg/api/handlers.go +++ b/pkg/api/handlers.go @@ -22,7 +22,7 @@ import ( "github.com/weaveworks/common/instrument" "github.com/weaveworks/common/middleware" - "github.com/cortexproject/cortex/pkg/chunk/purger" + "github.com/cortexproject/cortex/pkg/purger" "github.com/cortexproject/cortex/pkg/querier" "github.com/cortexproject/cortex/pkg/querier/stats" "github.com/cortexproject/cortex/pkg/util" diff --git a/pkg/api/middlewares.go b/pkg/api/middlewares.go index cf92689c105..5ca69bb6ab3 100644 --- a/pkg/api/middlewares.go +++ b/pkg/api/middlewares.go @@ -6,7 +6,7 @@ import ( "github.com/weaveworks/common/middleware" - "github.com/cortexproject/cortex/pkg/chunk/purger" + "github.com/cortexproject/cortex/pkg/purger" "github.com/cortexproject/cortex/pkg/querier/tripperware/queryrange" "github.com/cortexproject/cortex/pkg/tenant" util_log "github.com/cortexproject/cortex/pkg/util/log" diff --git a/pkg/cortex/cortex.go b/pkg/cortex/cortex.go index 2092358b8b8..639a8452d0d 100644 --- a/pkg/cortex/cortex.go +++ b/pkg/cortex/cortex.go @@ -24,7 +24,6 @@ import ( "github.com/cortexproject/cortex/pkg/alertmanager" "github.com/cortexproject/cortex/pkg/alertmanager/alertstore" "github.com/cortexproject/cortex/pkg/api" - "github.com/cortexproject/cortex/pkg/chunk/purger" "github.com/cortexproject/cortex/pkg/compactor" "github.com/cortexproject/cortex/pkg/configs" configAPI "github.com/cortexproject/cortex/pkg/configs/api" @@ -37,6 +36,7 @@ import ( frontendv1 "github.com/cortexproject/cortex/pkg/frontend/v1" "github.com/cortexproject/cortex/pkg/ingester" "github.com/cortexproject/cortex/pkg/ingester/client" + "github.com/cortexproject/cortex/pkg/purger" "github.com/cortexproject/cortex/pkg/querier" "github.com/cortexproject/cortex/pkg/querier/tenantfederation" "github.com/cortexproject/cortex/pkg/querier/tripperware" diff --git a/pkg/cortex/modules.go b/pkg/cortex/modules.go index 3ef5f891b8a..38060c68646 100644 --- a/pkg/cortex/modules.go +++ b/pkg/cortex/modules.go @@ -22,7 +22,6 @@ import ( "github.com/cortexproject/cortex/pkg/alertmanager" "github.com/cortexproject/cortex/pkg/alertmanager/alertstore" "github.com/cortexproject/cortex/pkg/api" - "github.com/cortexproject/cortex/pkg/chunk/purger" "github.com/cortexproject/cortex/pkg/compactor" configAPI "github.com/cortexproject/cortex/pkg/configs/api" "github.com/cortexproject/cortex/pkg/configs/db" @@ -31,6 +30,7 @@ import ( "github.com/cortexproject/cortex/pkg/frontend" "github.com/cortexproject/cortex/pkg/frontend/transport" "github.com/cortexproject/cortex/pkg/ingester" + "github.com/cortexproject/cortex/pkg/purger" "github.com/cortexproject/cortex/pkg/querier" "github.com/cortexproject/cortex/pkg/querier/tenantfederation" "github.com/cortexproject/cortex/pkg/querier/tripperware" diff --git a/pkg/chunk/purger/tenant_deletion_api.go b/pkg/purger/tenant_deletion_api.go similarity index 100% rename from pkg/chunk/purger/tenant_deletion_api.go rename to pkg/purger/tenant_deletion_api.go diff --git a/pkg/chunk/purger/tenant_deletion_api_test.go b/pkg/purger/tenant_deletion_api_test.go similarity index 100% rename from pkg/chunk/purger/tenant_deletion_api_test.go rename to pkg/purger/tenant_deletion_api_test.go diff --git a/pkg/chunk/purger/tombstones.go b/pkg/purger/tombstones.go similarity index 100% rename from pkg/chunk/purger/tombstones.go rename to pkg/purger/tombstones.go diff --git a/pkg/querier/querier.go b/pkg/querier/querier.go index 1333880615c..dcac25ad190 100644 --- a/pkg/querier/querier.go +++ b/pkg/querier/querier.go @@ -22,7 +22,7 @@ import ( "golang.org/x/sync/errgroup" "github.com/cortexproject/cortex/pkg/chunk" - "github.com/cortexproject/cortex/pkg/chunk/purger" + "github.com/cortexproject/cortex/pkg/purger" "github.com/cortexproject/cortex/pkg/querier/batch" "github.com/cortexproject/cortex/pkg/querier/iterators" "github.com/cortexproject/cortex/pkg/querier/lazyquery" diff --git a/pkg/querier/querier_test.go b/pkg/querier/querier_test.go index e22328913cd..c4d2b134495 100644 --- a/pkg/querier/querier_test.go +++ b/pkg/querier/querier_test.go @@ -15,8 +15,8 @@ import ( "github.com/prometheus/prometheus/tsdb" "github.com/stretchr/testify/mock" - "github.com/cortexproject/cortex/pkg/chunk/purger" "github.com/cortexproject/cortex/pkg/cortexpb" + "github.com/cortexproject/cortex/pkg/purger" "github.com/cortexproject/cortex/pkg/util/validation" "github.com/prometheus/common/model" diff --git a/pkg/querier/series/series_set.go b/pkg/querier/series/series_set.go index ee3a9a4ef08..c3ddfa62f09 100644 --- a/pkg/querier/series/series_set.go +++ b/pkg/querier/series/series_set.go @@ -24,8 +24,8 @@ import ( "github.com/prometheus/prometheus/storage" "github.com/prometheus/prometheus/tsdb/chunkenc" - "github.com/cortexproject/cortex/pkg/chunk/purger" "github.com/cortexproject/cortex/pkg/prom1/storage/metric" + "github.com/cortexproject/cortex/pkg/purger" ) // ConcreteSeriesSet implements storage.SeriesSet. diff --git a/pkg/ruler/ruler_test.go b/pkg/ruler/ruler_test.go index 23848a543a9..2bcb6f813d2 100644 --- a/pkg/ruler/ruler_test.go +++ b/pkg/ruler/ruler_test.go @@ -40,8 +40,8 @@ import ( "google.golang.org/grpc" "gopkg.in/yaml.v3" - "github.com/cortexproject/cortex/pkg/chunk/purger" "github.com/cortexproject/cortex/pkg/cortexpb" + "github.com/cortexproject/cortex/pkg/purger" "github.com/cortexproject/cortex/pkg/querier" "github.com/cortexproject/cortex/pkg/ring" "github.com/cortexproject/cortex/pkg/ring/kv"