Skip to content

Commit 42c68cd

Browse files
authored
Refactor: move the Purger to different directory (#4861)
* move purger to different directory Signed-off-by: ilangofman <[email protected]> * Move purger to pkg directory Signed-off-by: ilangofman <[email protected]> Signed-off-by: ilangofman <[email protected]>
1 parent 01dc235 commit 42c68cd

File tree

12 files changed

+9
-9
lines changed

12 files changed

+9
-9
lines changed

pkg/api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717

1818
"github.com/cortexproject/cortex/pkg/alertmanager"
1919
"github.com/cortexproject/cortex/pkg/alertmanager/alertmanagerpb"
20-
"github.com/cortexproject/cortex/pkg/chunk/purger"
2120
"github.com/cortexproject/cortex/pkg/compactor"
2221
"github.com/cortexproject/cortex/pkg/cortexpb"
2322
"github.com/cortexproject/cortex/pkg/distributor"
@@ -27,6 +26,7 @@ import (
2726
frontendv2 "github.com/cortexproject/cortex/pkg/frontend/v2"
2827
"github.com/cortexproject/cortex/pkg/frontend/v2/frontendv2pb"
2928
"github.com/cortexproject/cortex/pkg/ingester/client"
29+
"github.com/cortexproject/cortex/pkg/purger"
3030
"github.com/cortexproject/cortex/pkg/querier"
3131
"github.com/cortexproject/cortex/pkg/ring"
3232
"github.com/cortexproject/cortex/pkg/ruler"

pkg/api/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"github.com/weaveworks/common/instrument"
2323
"github.com/weaveworks/common/middleware"
2424

25-
"github.com/cortexproject/cortex/pkg/chunk/purger"
25+
"github.com/cortexproject/cortex/pkg/purger"
2626
"github.com/cortexproject/cortex/pkg/querier"
2727
"github.com/cortexproject/cortex/pkg/querier/stats"
2828
"github.com/cortexproject/cortex/pkg/util"

pkg/api/middlewares.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
"github.com/weaveworks/common/middleware"
88

9-
"github.com/cortexproject/cortex/pkg/chunk/purger"
9+
"github.com/cortexproject/cortex/pkg/purger"
1010
"github.com/cortexproject/cortex/pkg/querier/tripperware/queryrange"
1111
"github.com/cortexproject/cortex/pkg/tenant"
1212
util_log "github.com/cortexproject/cortex/pkg/util/log"

pkg/cortex/cortex.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"github.com/cortexproject/cortex/pkg/alertmanager"
2525
"github.com/cortexproject/cortex/pkg/alertmanager/alertstore"
2626
"github.com/cortexproject/cortex/pkg/api"
27-
"github.com/cortexproject/cortex/pkg/chunk/purger"
2827
"github.com/cortexproject/cortex/pkg/compactor"
2928
"github.com/cortexproject/cortex/pkg/configs"
3029
configAPI "github.com/cortexproject/cortex/pkg/configs/api"
@@ -37,6 +36,7 @@ import (
3736
frontendv1 "github.com/cortexproject/cortex/pkg/frontend/v1"
3837
"github.com/cortexproject/cortex/pkg/ingester"
3938
"github.com/cortexproject/cortex/pkg/ingester/client"
39+
"github.com/cortexproject/cortex/pkg/purger"
4040
"github.com/cortexproject/cortex/pkg/querier"
4141
"github.com/cortexproject/cortex/pkg/querier/tenantfederation"
4242
"github.com/cortexproject/cortex/pkg/querier/tripperware"

pkg/cortex/modules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"github.com/cortexproject/cortex/pkg/alertmanager"
2323
"github.com/cortexproject/cortex/pkg/alertmanager/alertstore"
2424
"github.com/cortexproject/cortex/pkg/api"
25-
"github.com/cortexproject/cortex/pkg/chunk/purger"
2625
"github.com/cortexproject/cortex/pkg/compactor"
2726
configAPI "github.com/cortexproject/cortex/pkg/configs/api"
2827
"github.com/cortexproject/cortex/pkg/configs/db"
@@ -31,6 +30,7 @@ import (
3130
"github.com/cortexproject/cortex/pkg/frontend"
3231
"github.com/cortexproject/cortex/pkg/frontend/transport"
3332
"github.com/cortexproject/cortex/pkg/ingester"
33+
"github.com/cortexproject/cortex/pkg/purger"
3434
"github.com/cortexproject/cortex/pkg/querier"
3535
"github.com/cortexproject/cortex/pkg/querier/tenantfederation"
3636
"github.com/cortexproject/cortex/pkg/querier/tripperware"
File renamed without changes.
File renamed without changes.
File renamed without changes.

pkg/querier/querier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"golang.org/x/sync/errgroup"
2323

2424
"github.com/cortexproject/cortex/pkg/chunk"
25-
"github.com/cortexproject/cortex/pkg/chunk/purger"
25+
"github.com/cortexproject/cortex/pkg/purger"
2626
"github.com/cortexproject/cortex/pkg/querier/batch"
2727
"github.com/cortexproject/cortex/pkg/querier/iterators"
2828
"github.com/cortexproject/cortex/pkg/querier/lazyquery"

pkg/querier/querier_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"github.com/prometheus/prometheus/tsdb"
1616
"github.com/stretchr/testify/mock"
1717

18-
"github.com/cortexproject/cortex/pkg/chunk/purger"
1918
"github.com/cortexproject/cortex/pkg/cortexpb"
19+
"github.com/cortexproject/cortex/pkg/purger"
2020
"github.com/cortexproject/cortex/pkg/util/validation"
2121

2222
"github.com/prometheus/common/model"

0 commit comments

Comments
 (0)