Skip to content

Commit c423fe2

Browse files
upgraded etcd server and fixed ID method
Signed-off-by: rakibhossainctr <rakib.hossain.ctr@sumologic.com>
1 parent b66a988 commit c423fe2

3 files changed

Lines changed: 90 additions & 120 deletions

File tree

backend/etcd/etcd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ type Etcd struct {
154154

155155
// BackendID returns the ID of the etcd cluster member
156156
func (e *Etcd) BackendID() (result string) {
157-
return e.etcd.Server.ID().String()
157+
return e.etcd.Server.MemberID().String()
158158
}
159159

160160
// GetClusterVersion returns the cluster version of the etcd server

go.mod

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,26 @@ require (
3838
github.com/mitchellh/hashstructure v1.0.0
3939
github.com/mitchellh/mapstructure v1.1.2
4040
github.com/olekukonko/tablewriter v0.0.5
41-
github.com/prometheus/client_golang v1.17.0
42-
github.com/prometheus/client_model v0.5.0
43-
github.com/prometheus/common v0.45.0
41+
github.com/prometheus/client_golang v1.20.5
42+
github.com/prometheus/client_model v0.6.1
43+
github.com/prometheus/common v0.62.0
4444
github.com/robertkrimen/otto v0.2.1
4545
github.com/robfig/cron/v3 v3.0.1
4646
github.com/sensu/lasr v1.2.1
4747
github.com/shirou/gopsutil/v3 v3.23.2
4848
github.com/sirupsen/logrus v1.9.3
49-
github.com/spf13/cobra v1.7.0
50-
github.com/spf13/pflag v1.0.5
49+
github.com/spf13/cobra v1.9.1
50+
github.com/spf13/pflag v1.0.6
5151
github.com/spf13/viper v1.7.0
5252
github.com/stretchr/testify v1.11.1
5353
github.com/willf/pad v0.0.0-20160331131008-b3d780601022
54-
go.etcd.io/bbolt v1.3.10
55-
go.etcd.io/etcd/api/v3 v3.5.15
56-
go.etcd.io/etcd/client/pkg/v3 v3.5.15
57-
go.etcd.io/etcd/client/v3 v3.5.15
58-
go.etcd.io/etcd/server/v3 v3.5.15
54+
go.etcd.io/bbolt v1.4.3
55+
go.etcd.io/etcd/api/v3 v3.6.8
56+
go.etcd.io/etcd/client/pkg/v3 v3.6.8
57+
go.etcd.io/etcd/client/v3 v3.6.8
58+
go.etcd.io/etcd/server/v3 v3.6.8
5959
go.uber.org/atomic v1.11.0
60-
go.uber.org/zap v1.26.0
60+
go.uber.org/zap v1.27.0
6161
golang.org/x/crypto v0.48.0
6262
golang.org/x/mod v0.32.0
6363
golang.org/x/net v0.51.0
@@ -73,22 +73,20 @@ require (
7373
github.com/creack/pty v1.1.20 // indirect
7474
github.com/go-logr/logr v1.4.3 // indirect
7575
github.com/go-test/deep v1.0.8
76-
github.com/google/btree v1.1.2 // indirect
77-
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
78-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 // indirect
79-
github.com/jonboulle/clockwork v0.4.0 // indirect
76+
github.com/google/btree v1.1.3 // indirect
77+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3 // indirect
78+
github.com/jonboulle/clockwork v0.5.0 // indirect
8079
github.com/kr/pty v1.1.8 // indirect
81-
github.com/prometheus/procfs v0.12.0 // indirect
80+
github.com/prometheus/procfs v0.15.1 // indirect
8281
github.com/sensu/core/v2 v2.20.1-0.20260309060922-f2268a196be2
8382
github.com/sensu/core/v3 v3.9.1-0.20260304065946-dc7effc1c358
8483
github.com/sensu/sensu-api-tools v0.2.1
8584
github.com/sensu/sensu-go/types v0.13.0
8685
github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75 // indirect
8786
github.com/xiang90/probing v0.0.0-20221125231312-a49e3df8f510 // indirect
88-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.0 // indirect
89-
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.20.0 // indirect
87+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.59.0 // indirect
88+
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.34.0 // indirect
9089
go.uber.org/multierr v1.11.0
91-
google.golang.org/genproto v0.0.0-20231120223509-83a465c0220f // indirect
9290
google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 // indirect
9391
google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect
9492
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
@@ -99,27 +97,28 @@ require golang.org/x/tools/go/vcs v0.1.0-deprecated
9997

10098
require (
10199
github.com/beorn7/perks v1.0.1 // indirect
102-
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
100+
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
103101
github.com/cespare/xxhash/v2 v2.3.0 // indirect
104102
github.com/coreos/go-semver v0.3.1 // indirect
105103
github.com/davecgh/go-spew v1.1.1 // indirect
106104
github.com/fsnotify/fsnotify v1.4.7 // indirect
107105
github.com/go-logr/stdr v1.2.2 // indirect
108106
github.com/go-ole/go-ole v1.2.6 // indirect
109-
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
110-
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
107+
github.com/golang-jwt/jwt/v5 v5.2.2 // indirect
108+
github.com/google/go-cmp v0.7.0 // indirect
109+
github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1 // indirect
110+
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 // indirect
111111
github.com/hashicorp/hcl v1.0.0 // indirect
112112
github.com/inconshreveable/mousetrap v1.1.0 // indirect
113113
github.com/ipfs/go-log/v2 v2.0.5 // indirect
114-
github.com/json-iterator/go v1.1.12 // indirect
115114
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
115+
github.com/klauspost/compress v1.17.9 // indirect
116+
github.com/kylelemons/godebug v1.1.0 // indirect
116117
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
117118
github.com/magiconair/properties v1.8.1 // indirect
118119
github.com/mattn/go-isatty v0.0.17 // indirect
119120
github.com/mattn/go-runewidth v0.0.9 // indirect
120-
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
121-
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
122-
github.com/modern-go/reflect2 v1.0.2 // indirect
121+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
123122
github.com/opentracing/opentracing-go v1.1.0 // indirect
124123
github.com/pelletier/go-toml v1.2.0 // indirect
125124
github.com/pkg/errors v0.9.1 // indirect
@@ -134,20 +133,20 @@ require (
134133
github.com/tklauser/go-sysconf v0.3.11 // indirect
135134
github.com/tklauser/numcpus v0.6.0 // indirect
136135
github.com/yusufpapurcu/wmi v1.2.2 // indirect
137-
go.etcd.io/etcd/client/v2 v2.305.15 // indirect
138-
go.etcd.io/etcd/pkg/v3 v3.5.15 // indirect
139-
go.etcd.io/etcd/raft/v3 v3.5.15 // indirect
136+
go.etcd.io/etcd/pkg/v3 v3.6.8 // indirect
137+
go.etcd.io/raft/v3 v3.6.0 // indirect
140138
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
141139
go.opentelemetry.io/otel v1.40.0 // indirect
142-
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.20.0 // indirect
140+
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0 // indirect
143141
go.opentelemetry.io/otel/metric v1.40.0 // indirect
144142
go.opentelemetry.io/otel/sdk v1.40.0 // indirect
145143
go.opentelemetry.io/otel/trace v1.40.0 // indirect
146-
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
144+
go.opentelemetry.io/proto/otlp v1.5.0 // indirect
147145
golang.org/x/term v0.40.0 // indirect
148146
golang.org/x/text v0.34.0 // indirect
149147
google.golang.org/protobuf v1.36.11 // indirect
150148
gopkg.in/ini.v1 v1.51.0 // indirect
151149
gopkg.in/sourcemap.v1 v1.0.5 // indirect
152150
gopkg.in/yaml.v3 v3.0.1 // indirect
151+
sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6 // indirect
153152
)

0 commit comments

Comments
 (0)