From f1575862ba9319548560ec8a6526291b510c2c71 Mon Sep 17 00:00:00 2001 From: Evan Baker Date: Tue, 25 Oct 2022 01:12:27 +0000 Subject: [PATCH] regenerate mock clients Signed-off-by: Evan Baker --- .../mockclients/cnsrestservice_generated.go | 3 -- .../mockclients/kubeclient_generated.go | 44 ++++++++++++------- 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/cns/multitenantcontroller/mockclients/cnsrestservice_generated.go b/cns/multitenantcontroller/mockclients/cnsrestservice_generated.go index 5e9233acda..4498f290ad 100644 --- a/cns/multitenantcontroller/mockclients/cnsrestservice_generated.go +++ b/cns/multitenantcontroller/mockclients/cnsrestservice_generated.go @@ -1,6 +1,3 @@ -//go:build !ignore_uncovered -// +build !ignore_uncovered - // Code generated by MockGen. DO NOT EDIT. // Source: cns/multitenantcontroller/multitenantoperator/multitenantcrdreconciler.go diff --git a/cns/multitenantcontroller/mockclients/kubeclient_generated.go b/cns/multitenantcontroller/mockclients/kubeclient_generated.go index 464f29003f..22ccde9273 100644 --- a/cns/multitenantcontroller/mockclients/kubeclient_generated.go +++ b/cns/multitenantcontroller/mockclients/kubeclient_generated.go @@ -1,6 +1,3 @@ -//go:build !ignore_uncovered -// +build !ignore_uncovered - // Code generated by MockGen. DO NOT EDIT. // Source: vendor/sigs.k8s.io/controller-runtime/pkg/client/interfaces.go @@ -11,12 +8,12 @@ import ( context "context" reflect "reflect" + client "sigs.k8s.io/controller-runtime/pkg/client" gomock "github.com/golang/mock/gomock" meta "k8s.io/apimachinery/pkg/api/meta" runtime "k8s.io/apimachinery/pkg/runtime" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - client "sigs.k8s.io/controller-runtime/pkg/client" ) // MockPatch is a mock of Patch interface. @@ -95,17 +92,22 @@ func (m *MockReader) EXPECT() *MockReaderMockRecorder { } // Get mocks base method. -func (m *MockReader) Get(ctx context.Context, key client.ObjectKey, obj client.Object) error { +func (m *MockReader) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", ctx, key, obj) + varargs := []interface{}{ctx, key, obj} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "Get", varargs...) ret0, _ := ret[0].(error) return ret0 } // Get indicates an expected call of Get. -func (mr *MockReaderMockRecorder) Get(ctx, key, obj interface{}) *gomock.Call { +func (mr *MockReaderMockRecorder) Get(ctx, key, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockReader)(nil).Get), ctx, key, obj) + varargs := append([]interface{}{ctx, key, obj}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockReader)(nil).Get), varargs...) } // List mocks base method. @@ -424,17 +426,22 @@ func (mr *MockClientMockRecorder) DeleteAllOf(ctx, obj interface{}, opts ...inte } // Get mocks base method. -func (m *MockClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object) error { +func (m *MockClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", ctx, key, obj) + varargs := []interface{}{ctx, key, obj} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "Get", varargs...) ret0, _ := ret[0].(error) return ret0 } // Get indicates an expected call of Get. -func (mr *MockClientMockRecorder) Get(ctx, key, obj interface{}) *gomock.Call { +func (mr *MockClientMockRecorder) Get(ctx, key, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClient)(nil).Get), ctx, key, obj) + varargs := append([]interface{}{ctx, key, obj}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClient)(nil).Get), varargs...) } // List mocks base method. @@ -617,17 +624,22 @@ func (mr *MockWithWatchMockRecorder) DeleteAllOf(ctx, obj interface{}, opts ...i } // Get mocks base method. -func (m *MockWithWatch) Get(ctx context.Context, key client.ObjectKey, obj client.Object) error { +func (m *MockWithWatch) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "Get", ctx, key, obj) + varargs := []interface{}{ctx, key, obj} + for _, a := range opts { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "Get", varargs...) ret0, _ := ret[0].(error) return ret0 } // Get indicates an expected call of Get. -func (mr *MockWithWatchMockRecorder) Get(ctx, key, obj interface{}) *gomock.Call { +func (mr *MockWithWatchMockRecorder) Get(ctx, key, obj interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockWithWatch)(nil).Get), ctx, key, obj) + varargs := append([]interface{}{ctx, key, obj}, opts...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockWithWatch)(nil).Get), varargs...) } // List mocks base method.