Skip to content

Commit

Permalink
[CCXDEV-13127] Revert sarama migration (#573)
Browse files Browse the repository at this point in the history
* Revert "Merge pull request #572 from RedHatInsights/dependabot/go_modules/github.com/IBM/sarama-1.43.3"

This reverts commit fa0ce65, reversing
changes made to 8601fc9.

* Revert "replace github.com/Shopify/sarama with github.com/IBM/sarama (#571)"

This reverts commit 8601fc9.
  • Loading branch information
juandspy authored Aug 13, 2024
1 parent fa0ce65 commit c735684
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 88 deletions.
33 changes: 15 additions & 18 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ module github.com/RedHatInsights/insights-operator-utils
go 1.20

require (
github.com/IBM/sarama v1.43.3
github.com/RedHatInsights/cloudwatch v0.0.0-20210111105023-1df2bdfe3291
github.com/RedHatInsights/insights-results-aggregator-data v1.3.9
github.com/RedHatInsights/insights-results-types v1.23.4
github.com/RedHatInsights/kafka-zerolog v1.0.0
github.com/Shopify/sarama v1.27.1
github.com/archdx/zerolog-sentry v1.8.4
github.com/aws/aws-sdk-go v1.55.5
github.com/getkin/kin-openapi v0.22.1
Expand Down Expand Up @@ -37,40 +37,37 @@ require (
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/eapache/go-resiliency v1.7.0 // indirect
github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 // indirect
github.com/eapache/go-resiliency v1.2.0 // indirect
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 // indirect
github.com/eapache/queue v1.1.0 // indirect
github.com/frankban/quicktest v1.14.3 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/getsentry/sentry-go v0.24.1 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/jcmturner/aescts/v2 v2.0.0 // indirect
github.com/jcmturner/dnsutils/v2 v2.0.0 // indirect
github.com/jcmturner/gofork v1.7.6 // indirect
github.com/jcmturner/gokrb5/v8 v8.4.4 // indirect
github.com/jcmturner/rpc/v2 v2.0.3 // indirect
github.com/hashicorp/go-uuid v1.0.2 // indirect
github.com/jcmturner/gofork v1.0.0 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/klauspost/compress v1.16.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/pierrec/lz4 v2.5.2+incompatible // indirect
github.com/pierrec/lz4/v4 v4.1.21 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/common v0.48.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect
github.com/segmentio/kafka-go v0.4.10 // indirect
github.com/xdg/stringprep v1.0.0 // indirect
golang.org/x/crypto v0.26.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/sys v0.23.0 // indirect
golang.org/x/text v0.17.0 // indirect
golang.org/x/crypto v0.21.0 // indirect
golang.org/x/net v0.23.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/protobuf v1.33.0 // indirect
gopkg.in/jcmturner/aescts.v1 v1.0.1 // indirect
gopkg.in/jcmturner/dnsutils.v1 v1.0.1 // indirect
gopkg.in/jcmturner/gokrb5.v7 v7.5.0 // indirect
gopkg.in/jcmturner/rpc.v1 v1.1.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
86 changes: 22 additions & 64 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion kafka/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"strings"
"time"

"github.com/IBM/sarama"
tlsutils "github.com/RedHatInsights/insights-operator-utils/tls"
"github.com/Shopify/sarama"
"github.com/rs/zerolog/log"
)

Expand Down
2 changes: 1 addition & 1 deletion kafka/configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/RedHatInsights/insights-operator-utils/kafka"
"github.com/RedHatInsights/insights-operator-utils/tests/helpers"

"github.com/IBM/sarama"
"github.com/Shopify/sarama"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import (
"os"
"strings"

"github.com/IBM/sarama"
"github.com/RedHatInsights/cloudwatch"
"github.com/RedHatInsights/kafka-zerolog/kafkazerolog"
"github.com/Shopify/sarama"
zlogsentry "github.com/archdx/zerolog-sentry"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
Expand Down
2 changes: 1 addition & 1 deletion logger/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (
"testing"
"time"

"github.com/IBM/sarama"
"github.com/RedHatInsights/insights-operator-utils/logger"
"github.com/RedHatInsights/insights-operator-utils/tests/helpers"
"github.com/Shopify/sarama"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion tests/saramahelpers/mock_consumer_group_claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package saramahelpers
import (
"time"

"github.com/IBM/sarama"
"github.com/Shopify/sarama"
)

// MockConsumerGroupClaim MockConsumerGroupClaim
Expand Down
2 changes: 1 addition & 1 deletion tests/saramahelpers/mock_consumer_group_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package saramahelpers
import (
"context"

"github.com/IBM/sarama"
"github.com/Shopify/sarama"
)

// MockConsumerGroupSession MockConsumerGroupSession
Expand Down

0 comments on commit c735684

Please sign in to comment.