Skip to content

Commit bd64a16

Browse files
committed
Adjust to changes in etcd client
1 parent 55a3fcb commit bd64a16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

controlplane/kubeadm/internal/etcd/etcd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type etcd interface {
4141
AlarmList(ctx context.Context) (*clientv3.AlarmResponse, error)
4242
Close() error
4343
Endpoints() []string
44-
MemberList(ctx context.Context) (*clientv3.MemberListResponse, error)
44+
MemberList(ctx context.Context, opts ...clientv3.OpOption) (*clientv3.MemberListResponse, error)
4545
MemberRemove(ctx context.Context, id uint64) (*clientv3.MemberRemoveResponse, error)
4646
MoveLeader(ctx context.Context, id uint64) (*clientv3.MoveLeaderResponse, error)
4747
Status(ctx context.Context, endpoint string) (*clientv3.StatusResponse, error)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (c *FakeEtcdClient) AlarmList(_ context.Context) (*clientv3.AlarmResponse,
5252
return c.AlarmResponse, c.ErrorResponse
5353
}
5454

55-
func (c *FakeEtcdClient) MemberList(_ context.Context) (*clientv3.MemberListResponse, error) {
55+
func (c *FakeEtcdClient) MemberList(_ context.Context, _ ...clientv3.OpOption) (*clientv3.MemberListResponse, error) {
5656
return c.MemberListResponse, c.ErrorResponse
5757
}
5858
func (c *FakeEtcdClient) MemberRemove(_ context.Context, i uint64) (*clientv3.MemberRemoveResponse, error) {

0 commit comments

Comments
 (0)