Skip to content

Commit

Permalink
Start using github.com/IBM/sarama
Browse files Browse the repository at this point in the history
  • Loading branch information
epapbak committed Jan 17, 2024
1 parent 35b5c4f commit 80b22ac
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 31 deletions.
25 changes: 14 additions & 11 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.18

require (
github.com/IBM/sarama v1.42.1
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.3.23
github.com/RedHatInsights/kafka-zerolog v1.0.0
github.com/Shopify/sarama v1.27.1
github.com/archdx/zerolog-sentry v1.8.2
github.com/aws/aws-sdk-go v1.49.19
github.com/getkin/kin-openapi v0.22.1
Expand Down Expand Up @@ -37,38 +37,41 @@ 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.2.0 // indirect
github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21 // indirect
github.com/eapache/go-resiliency v1.4.0 // indirect
github.com/eapache/go-xerial-snappy v0.0.0-20230731223053-c322873962e3 // 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/go-uuid v1.0.2 // indirect
github.com/jcmturner/gofork v1.0.0 // 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/jmespath/go-jmespath v0.4.0 // indirect
github.com/klauspost/compress v1.16.0 // indirect
github.com/klauspost/compress v1.16.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
github.com/pierrec/lz4 v2.5.2+incompatible // indirect
github.com/pierrec/lz4/v4 v4.1.18 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/common v0.45.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
github.com/segmentio/kafka-go v0.4.10 // indirect
github.com/xdg/stringprep v1.0.0 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/protobuf v1.31.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
)
70 changes: 56 additions & 14 deletions go.sum

Large diffs are not rendered by default.

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

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

"github.com/IBM/sarama"
)

// BrokerConfiguration represents configuration of a single-instance Kafka broker
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/Shopify/sarama"
"github.com/IBM/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/Shopify/sarama"
"github.com/IBM/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/Shopify/sarama"
"github.com/IBM/sarama"
)

// MockConsumerGroupSession MockConsumerGroupSession
Expand Down

0 comments on commit 80b22ac

Please sign in to comment.