Skip to content

Commit 98f6953

Browse files
committed
Update etcd to v3.5
Signed-off-by: Brad Davidson <[email protected]>
1 parent c6df30f commit 98f6953

File tree

16 files changed

+183
-86
lines changed

16 files changed

+183
-86
lines changed

Dockerfile.dapper

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.15-alpine3.12 AS dapper
1+
FROM golang:1.16-alpine3.12 AS dapper
22

33
ARG ARCH=amd64
44

Dockerfile.test.dapper

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.15-alpine3.12 AS dapper
1+
FROM golang:1.16-alpine3.12 AS dapper
22

33
ARG ARCH=amd64
44

go.mod

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
module github.com/k3s-io/kine
22

3-
go 1.15
3+
go 1.16
44

55
require (
66
github.com/Rican7/retry v0.1.0
77
github.com/canonical/go-dqlite v1.5.1
88
github.com/go-sql-driver/mysql v1.4.1
99
github.com/lib/pq v1.8.0
1010
github.com/mattn/go-sqlite3 v1.14.4
11-
github.com/pkg/errors v0.8.1
11+
github.com/pkg/errors v0.9.1
1212
github.com/rancher/wrangler v0.4.0
13-
github.com/sirupsen/logrus v1.4.2
13+
github.com/sirupsen/logrus v1.6.0
1414
github.com/urfave/cli v1.21.0
1515
go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738
16-
google.golang.org/grpc v1.23.1
16+
go.etcd.io/etcd/api/v3 v3.5.0
17+
go.etcd.io/etcd/client/pkg/v3 v3.5.0
18+
go.etcd.io/etcd/client/v3 v3.5.0
19+
google.golang.org/grpc v1.38.0
1720
)

go.sum

Lines changed: 159 additions & 65 deletions
Large diffs are not rendered by default.

pkg/client/client.go

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

99
"github.com/k3s-io/kine/pkg/endpoint"
10-
"go.etcd.io/etcd/clientv3"
10+
clientv3 "go.etcd.io/etcd/client/v3"
1111
)
1212

1313
type Value struct {

pkg/server/compact.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package server
33
import (
44
"context"
55

6-
"go.etcd.io/etcd/etcdserver/etcdserverpb"
7-
"go.etcd.io/etcd/mvcc/mvccpb"
6+
"go.etcd.io/etcd/api/v3/etcdserverpb"
7+
"go.etcd.io/etcd/api/v3/mvccpb"
88
)
99

1010
func isCompact(txn *etcdserverpb.TxnRequest) bool {

pkg/server/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package server
33
import (
44
"context"
55

6-
"go.etcd.io/etcd/etcdserver/etcdserverpb"
6+
"go.etcd.io/etcd/api/v3/etcdserverpb"
77
)
88

99
func isCreate(txn *etcdserverpb.TxnRequest) *etcdserverpb.PutRequest {

pkg/server/delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package server
33
import (
44
"context"
55

6-
"go.etcd.io/etcd/etcdserver/etcdserverpb"
6+
"go.etcd.io/etcd/api/v3/etcdserverpb"
77
)
88

99
func isDelete(txn *etcdserverpb.TxnRequest) (int64, string, bool) {

pkg/server/get.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"fmt"
66

7-
"go.etcd.io/etcd/etcdserver/etcdserverpb"
7+
"go.etcd.io/etcd/api/v3/etcdserverpb"
88
)
99

1010
func (l *LimitedServer) get(ctx context.Context, r *etcdserverpb.RangeRequest) (*RangeResponse, error) {

pkg/server/lease.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"fmt"
66

7-
"go.etcd.io/etcd/etcdserver/etcdserverpb"
7+
"go.etcd.io/etcd/api/v3/etcdserverpb"
88
)
99

1010
func (s *KVServerBridge) LeaseGrant(ctx context.Context, req *etcdserverpb.LeaseGrantRequest) (*etcdserverpb.LeaseGrantResponse, error) {

0 commit comments

Comments
 (0)