Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
Signed-off-by: raihankhan <[email protected]>
  • Loading branch information
raihankhan committed Dec 17, 2024
1 parent 039bb73 commit 9cbfad9
Show file tree
Hide file tree
Showing 137 changed files with 31,855 additions and 644 deletions.
23 changes: 12 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ require (
github.com/gocql/gocql v1.6.0
github.com/grafadruid/go-druid v0.0.6
github.com/lib/pq v1.10.7
github.com/michaelklishin/rabbit-hole/v2 v2.16.0
github.com/michaelklishin/rabbit-hole/v3 v3.1.0
github.com/microsoft/go-mssqldb v1.6.0
github.com/opensearch-project/opensearch-go v1.1.0
github.com/opensearch-project/opensearch-go/v2 v2.3.0
github.com/pkg/errors v0.9.1
github.com/rabbitmq/amqp091-go v1.9.0
github.com/rabbitmq/amqp091-go v1.10.0
github.com/redis/go-redis/v9 v9.5.1
go.mongodb.org/mongo-driver v1.14.0
k8s.io/api v0.30.3
k8s.io/apimachinery v0.30.3
k8s.io/klog/v2 v2.130.1
kmodules.xyz/client-go v0.30.38
kmodules.xyz/client-go v0.30.41
kmodules.xyz/custom-resources v0.30.0
kubedb.dev/apimachinery v0.49.0
kubedb.dev/apimachinery v0.49.1-0.20241217045444-52bb83407e60
sigs.k8s.io/controller-runtime v0.18.4
xorm.io/xorm v1.3.6
)
Expand All @@ -43,7 +43,7 @@ require (
github.com/andybalholm/brotli v1.1.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/cert-manager/cert-manager v1.15.2 // indirect
github.com/cert-manager/cert-manager v1.15.4 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/coreos/go-semver v0.3.1 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
Expand Down Expand Up @@ -120,14 +120,14 @@ require (
github.com/zeebo/xxh3 v1.0.2 // indirect
go.opentelemetry.io/otel v1.28.0 // indirect
go.opentelemetry.io/otel/trace v1.28.0 // indirect
golang.org/x/crypto v0.27.0 // indirect
golang.org/x/crypto v0.31.0 // indirect
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/net v0.30.0 // indirect
golang.org/x/oauth2 v0.22.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/term v0.24.0 // indirect
golang.org/x/text v0.18.0 // indirect
golang.org/x/sync v0.10.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/term v0.27.0 // indirect
golang.org/x/text v0.21.0 // indirect
golang.org/x/time v0.5.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
gomodules.xyz/mergo v0.3.13 // indirect
Expand All @@ -146,6 +146,7 @@ require (
kmodules.xyz/monitoring-agent-api v0.30.2 // indirect
kmodules.xyz/offshoot-api v0.30.1 // indirect
kubeops.dev/petset v0.0.7 // indirect
kubeops.dev/sidekick v0.0.10-0.20241122131943-163e27e5ef71 // indirect
modernc.org/memory v1.5.0 // indirect
modernc.org/token v1.1.0 // indirect
sigs.k8s.io/gateway-api v1.1.0 // indirect
Expand Down
203 changes: 32 additions & 171 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion rabbitmq/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package rabbitmq

import (
rmqhttp "github.com/michaelklishin/rabbit-hole/v2"
rmqhttp "github.com/michaelklishin/rabbit-hole/v3"
amqp "github.com/rabbitmq/amqp091-go"
)

Expand Down
16 changes: 8 additions & 8 deletions rabbitmq/http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package rabbitmq
import (
"fmt"

rabbithole "github.com/michaelklishin/rabbit-hole/v2"
rmqhttp "github.com/michaelklishin/rabbit-hole/v3"
"k8s.io/klog/v2"
)

Expand All @@ -45,7 +45,7 @@ func (c *HTTPClient) IsAllNodesRunningInCluster(replicas int) (bool, error) {
return true, nil
}

func (c *HTTPClient) GetQueues() ([]rabbithole.QueueInfo, error) {
func (c *HTTPClient) GetQueues() ([]rmqhttp.QueueInfo, error) {
queues, err := c.Client.ListQueues()
if err != nil {
klog.Error(err, "Failed to get queue lists")
Expand All @@ -54,13 +54,13 @@ func (c *HTTPClient) GetQueues() ([]rabbithole.QueueInfo, error) {
return queues, nil
}

func (c *HTTPClient) GetClassicQueues() ([]rabbithole.QueueInfo, error) {
func (c *HTTPClient) GetClassicQueues() ([]rmqhttp.QueueInfo, error) {
queues, err := c.GetQueues()
if err != nil {
klog.Error(err, "Failed to get queue lists")
return nil, err
}
classicQueues := []rabbithole.QueueInfo{}
classicQueues := []rmqhttp.QueueInfo{}

for _, q := range queues {
if q.Type == rabbitmqQueueTypeClassic {
Expand All @@ -71,7 +71,7 @@ func (c *HTTPClient) GetClassicQueues() ([]rabbithole.QueueInfo, error) {
return classicQueues, nil
}

func (c *HTTPClient) HasNodeAnyClassicQueue(queues []rabbithole.QueueInfo, node string) bool {
func (c *HTTPClient) HasNodeAnyClassicQueue(queues []rmqhttp.QueueInfo, node string) bool {
for _, q := range queues {
if q.Type == rabbitmqQueueTypeClassic && q.Node == node {
return true
Expand All @@ -80,13 +80,13 @@ func (c *HTTPClient) HasNodeAnyClassicQueue(queues []rabbithole.QueueInfo, node
return false
}

func (c *HTTPClient) GetQuorumQueues() ([]rabbithole.QueueInfo, error) {
func (c *HTTPClient) GetQuorumQueues() ([]rmqhttp.QueueInfo, error) {
queues, err := c.GetQueues()
if err != nil {
klog.Error(err, "Failed to get queue lists")
return nil, err
}
quorumQueues := []rabbithole.QueueInfo{}
quorumQueues := []rmqhttp.QueueInfo{}

for _, q := range queues {
if q.Type == rabbitmqQueueTypeQuorum {
Expand All @@ -97,7 +97,7 @@ func (c *HTTPClient) GetQuorumQueues() ([]rabbithole.QueueInfo, error) {
return quorumQueues, nil
}

func (c *HTTPClient) IsNodePrimaryReplica(queues []rabbithole.QueueInfo, node string) bool {
func (c *HTTPClient) IsNodePrimaryReplica(queues []rmqhttp.QueueInfo, node string) bool {
for _, q := range queues {
if q.Type == rabbitmqQueueTypeQuorum && q.Leader == node {
return true
Expand Down
2 changes: 1 addition & 1 deletion rabbitmq/kubedb_client_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"strings"
"time"

rmqhttp "github.com/michaelklishin/rabbit-hole/v2"
rmqhttp "github.com/michaelklishin/rabbit-hole/v3"
amqp "github.com/rabbitmq/amqp091-go"
core "k8s.io/api/core/v1"
kerr "k8s.io/apimachinery/pkg/api/errors"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9cbfad9

Please sign in to comment.