Skip to content

Commit 7aad745

Browse files
committed
Revert "Use flagext module from grafana/dskit (#4443)"
This reverts commit a9a96cb. Signed-off-by: Arve Knudsen <[email protected]>
1 parent fa3de37 commit 7aad745

File tree

104 files changed

+506
-149
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+506
-149
lines changed

cmd/cortex/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"time"
1414

1515
"github.com/go-kit/log/level"
16-
"github.com/grafana/dskit/flagext"
1716
"github.com/pkg/errors"
1817
"github.com/prometheus/client_golang/prometheus"
1918
"github.com/prometheus/common/version"
@@ -22,6 +21,7 @@ import (
2221

2322
"github.com/cortexproject/cortex/pkg/cortex"
2423
"github.com/cortexproject/cortex/pkg/util"
24+
"github.com/cortexproject/cortex/pkg/util/flagext"
2525
util_log "github.com/cortexproject/cortex/pkg/util/log"
2626
)
2727

cmd/test-exporter/main.go

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

88
"github.com/go-kit/log/level"
9-
"github.com/grafana/dskit/flagext"
109
"github.com/prometheus/client_golang/prometheus"
1110
"github.com/weaveworks/common/server"
1211
"github.com/weaveworks/common/tracing"
1312

1413
"github.com/cortexproject/cortex/pkg/testexporter/correctness"
14+
"github.com/cortexproject/cortex/pkg/util/flagext"
1515
"github.com/cortexproject/cortex/pkg/util/log"
1616
)
1717

integration/e2ecortex/storage.go

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

88
"github.com/go-kit/log"
9-
"github.com/grafana/dskit/flagext"
109
"github.com/oklog/ulid"
1110
"github.com/thanos-io/thanos/pkg/objstore"
1211

1312
"github.com/cortexproject/cortex/integration/e2e"
1413
e2edb "github.com/cortexproject/cortex/integration/e2e/db"
1514
"github.com/cortexproject/cortex/pkg/storage/bucket/s3"
15+
"github.com/cortexproject/cortex/pkg/util/flagext"
1616
)
1717

1818
type S3Client struct {

integration/s3_storage_client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ import (
1010
"net/url"
1111
"testing"
1212

13-
"github.com/grafana/dskit/flagext"
1413
"github.com/stretchr/testify/require"
1514

1615
"github.com/cortexproject/cortex/integration/e2e"
1716
e2edb "github.com/cortexproject/cortex/integration/e2e/db"
1817
s3 "github.com/cortexproject/cortex/pkg/chunk/aws"
1918
cortex_s3 "github.com/cortexproject/cortex/pkg/storage/bucket/s3"
19+
"github.com/cortexproject/cortex/pkg/util/flagext"
2020
)
2121

2222
func TestS3Client(t *testing.T) {

pkg/alertmanager/alertmanager.go

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

1616
"github.com/go-kit/log"
1717
"github.com/go-kit/log/level"
18-
"github.com/grafana/dskit/flagext"
1918
"github.com/grafana/dskit/services"
2019
"github.com/pkg/errors"
2120
"github.com/prometheus/alertmanager/api"
@@ -49,6 +48,7 @@ import (
4948
"golang.org/x/time/rate"
5049

5150
"github.com/cortexproject/cortex/pkg/alertmanager/alertstore"
51+
"github.com/cortexproject/cortex/pkg/util/flagext"
5252
util_net "github.com/cortexproject/cortex/pkg/util/net"
5353
)
5454

pkg/alertmanager/alertmanager_ring.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88

99
"github.com/go-kit/log"
1010
"github.com/go-kit/log/level"
11-
"github.com/grafana/dskit/flagext"
1211

1312
"github.com/cortexproject/cortex/pkg/ring"
1413
"github.com/cortexproject/cortex/pkg/ring/kv"
14+
"github.com/cortexproject/cortex/pkg/util/flagext"
1515
util_log "github.com/cortexproject/cortex/pkg/util/log"
1616
)
1717

pkg/alertmanager/api_test.go

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

1212
"github.com/go-kit/log"
1313
"github.com/gorilla/mux"
14-
"github.com/grafana/dskit/flagext"
1514
"github.com/grafana/dskit/services"
1615
"github.com/pkg/errors"
1716
"github.com/prometheus/alertmanager/config"
@@ -25,6 +24,7 @@ import (
2524

2625
"github.com/cortexproject/cortex/pkg/alertmanager/alertspb"
2726
"github.com/cortexproject/cortex/pkg/alertmanager/alertstore/bucketclient"
27+
"github.com/cortexproject/cortex/pkg/util/flagext"
2828
util_log "github.com/cortexproject/cortex/pkg/util/log"
2929
)
3030

pkg/alertmanager/distributor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"time"
1515

1616
"github.com/go-kit/log"
17-
"github.com/grafana/dskit/flagext"
1817
"github.com/grafana/dskit/services"
1918
"github.com/prometheus/client_golang/prometheus"
2019
"github.com/stretchr/testify/assert"
@@ -28,6 +27,7 @@ import (
2827
"github.com/cortexproject/cortex/pkg/ring"
2928
"github.com/cortexproject/cortex/pkg/ring/kv"
3029
"github.com/cortexproject/cortex/pkg/ring/kv/consul"
30+
"github.com/cortexproject/cortex/pkg/util/flagext"
3131
util_log "github.com/cortexproject/cortex/pkg/util/log"
3232
"github.com/cortexproject/cortex/pkg/util/test"
3333
)

pkg/alertmanager/multitenant.go

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

1616
"github.com/go-kit/log"
1717
"github.com/go-kit/log/level"
18-
"github.com/grafana/dskit/flagext"
1918
"github.com/grafana/dskit/services"
2019
"github.com/pkg/errors"
2120
"github.com/prometheus/alertmanager/cluster"
@@ -38,6 +37,7 @@ import (
3837
"github.com/cortexproject/cortex/pkg/tenant"
3938
"github.com/cortexproject/cortex/pkg/util"
4039
"github.com/cortexproject/cortex/pkg/util/concurrency"
40+
"github.com/cortexproject/cortex/pkg/util/flagext"
4141
util_log "github.com/cortexproject/cortex/pkg/util/log"
4242
)
4343

pkg/alertmanager/multitenant_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"time"
2121

2222
"github.com/go-kit/log"
23-
"github.com/grafana/dskit/flagext"
2423
"github.com/grafana/dskit/services"
2524
"github.com/prometheus/alertmanager/cluster/clusterpb"
2625
"github.com/prometheus/alertmanager/notify"
@@ -47,6 +46,7 @@ import (
4746
"github.com/cortexproject/cortex/pkg/storage/bucket"
4847
"github.com/cortexproject/cortex/pkg/util"
4948
"github.com/cortexproject/cortex/pkg/util/concurrency"
49+
"github.com/cortexproject/cortex/pkg/util/flagext"
5050
"github.com/cortexproject/cortex/pkg/util/test"
5151
"github.com/cortexproject/cortex/pkg/util/validation"
5252
)

0 commit comments

Comments
 (0)