Skip to content

Commit 59c620c

Browse files
authored
Merge pull request kubernetes-sigs#4822 from randomvariable/revert-etcd-bump
🌱 Revert "Bump etcd to v3.5.0"
2 parents 86466a1 + 7b2defb commit 59c620c

File tree

9 files changed

+45
-91
lines changed

9 files changed

+45
-91
lines changed

controlplane/kubeadm/internal/etcd/etcd.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import (
2323
"time"
2424

2525
"github.com/pkg/errors"
26-
"go.etcd.io/etcd/api/v3/etcdserverpb"
27-
clientv3 "go.etcd.io/etcd/client/v3"
26+
"go.etcd.io/etcd/clientv3"
27+
"go.etcd.io/etcd/etcdserver/etcdserverpb"
2828
"google.golang.org/grpc"
2929
"sigs.k8s.io/cluster-api/controlplane/kubeadm/internal/proxy"
3030
)

controlplane/kubeadm/internal/etcd/etcd_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
. "github.com/onsi/gomega"
2323

2424
"github.com/pkg/errors"
25-
"go.etcd.io/etcd/api/v3/etcdserverpb"
26-
clientv3 "go.etcd.io/etcd/client/v3"
25+
"go.etcd.io/etcd/clientv3"
26+
"go.etcd.io/etcd/etcdserver/etcdserverpb"
2727
etcdfake "sigs.k8s.io/cluster-api/controlplane/kubeadm/internal/etcd/fake"
2828
ctrl "sigs.k8s.io/controller-runtime"
2929
)

controlplane/kubeadm/internal/etcd/fake/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ package fake
2020
import (
2121
"context"
2222

23-
clientv3 "go.etcd.io/etcd/client/v3"
23+
"go.etcd.io/etcd/clientv3"
2424
)
2525

2626
type FakeEtcdClient struct { //nolint:revive

controlplane/kubeadm/internal/etcd_client_generator_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525

2626
. "github.com/onsi/gomega"
2727

28-
"go.etcd.io/etcd/api/v3/etcdserverpb"
29-
clientv3 "go.etcd.io/etcd/client/v3"
28+
"go.etcd.io/etcd/clientv3"
29+
"go.etcd.io/etcd/etcdserver/etcdserverpb"
3030

3131
"k8s.io/client-go/rest"
3232

controlplane/kubeadm/internal/workload_cluster_conditions_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
. "github.com/onsi/gomega"
2323
"github.com/pkg/errors"
2424

25-
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
26-
clientv3 "go.etcd.io/etcd/client/v3"
25+
"go.etcd.io/etcd/clientv3"
26+
pb "go.etcd.io/etcd/etcdserver/etcdserverpb"
2727
corev1 "k8s.io/api/core/v1"
2828
apierrors "k8s.io/apimachinery/pkg/api/errors"
2929
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

controlplane/kubeadm/internal/workload_cluster_etcd_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424
"github.com/blang/semver"
2525
"github.com/google/go-cmp/cmp"
2626
. "github.com/onsi/gomega"
27-
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
28-
clientv3 "go.etcd.io/etcd/client/v3"
27+
"go.etcd.io/etcd/clientv3"
28+
pb "go.etcd.io/etcd/etcdserver/etcdserverpb"
2929
corev1 "k8s.io/api/core/v1"
3030
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3131
clusterv1 "sigs.k8s.io/cluster-api/api/v1alpha4"

go.mod

+5-6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ module sigs.k8s.io/cluster-api
22

33
go 1.16
44

5+
// Imported version of etcd is v3.4.13 with an additional patch matching
6+
// the imported version in Kubernetes v1.21.x
7+
58
require (
69
github.com/MakeNowJust/heredoc v1.0.0
710
github.com/blang/semver v3.5.1+incompatible
@@ -11,25 +14,21 @@ require (
1114
github.com/drone/envsubst/v2 v2.0.0-20210305151453-490366e43a3c
1215
github.com/evanphx/json-patch v4.11.0+incompatible
1316
github.com/fatih/color v1.12.0
14-
github.com/form3tech-oss/jwt-go v3.2.3+incompatible // indirect
1517
github.com/go-logr/logr v0.4.0
1618
github.com/gobuffalo/flect v0.2.2
17-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
1819
github.com/google/go-cmp v0.5.6
1920
github.com/google/go-github/v33 v33.0.0
2021
github.com/google/gofuzz v1.2.0
2122
github.com/gosuri/uitable v0.0.4
22-
github.com/mattn/go-runewidth v0.0.9 // indirect
2323
github.com/onsi/ginkgo v1.16.4
2424
github.com/onsi/gomega v1.13.0
2525
github.com/pkg/errors v0.9.1
2626
github.com/spf13/cobra v1.1.3
2727
github.com/spf13/pflag v1.0.5
2828
github.com/spf13/viper v1.7.1
29-
go.etcd.io/etcd/api/v3 v3.5.0
30-
go.etcd.io/etcd/client/v3 v3.5.0
29+
go.etcd.io/etcd v0.5.0-alpha.5.0.20200910180754-dd1b699fc489
3130
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
32-
google.golang.org/grpc v1.38.0
31+
google.golang.org/grpc v1.29.1
3332
k8s.io/api v0.21.1
3433
k8s.io/apiextensions-apiserver v0.21.1
3534
k8s.io/apimachinery v0.21.1

go.sum

+23-40
Large diffs are not rendered by default.

test/go.sum

+6-34
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)