-
Notifications
You must be signed in to change notification settings - Fork 4
/
reconcilers.go
199 lines (168 loc) · 9.61 KB
/
reconcilers.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
// Code generated by MockGen. DO NOT EDIT.
// Source: ./reconcilers.go
// Package mock_controller is a generated GoMock package.
package mock_controller
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
controller "github.com/solo-io/external-apis/pkg/api/k8s/apiextensions.k8s.io/v1beta1/controller"
reconcile "github.com/solo-io/skv2/pkg/reconcile"
v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
predicate "sigs.k8s.io/controller-runtime/pkg/predicate"
)
// MockCustomResourceDefinitionReconciler is a mock of CustomResourceDefinitionReconciler interface
type MockCustomResourceDefinitionReconciler struct {
ctrl *gomock.Controller
recorder *MockCustomResourceDefinitionReconcilerMockRecorder
}
// MockCustomResourceDefinitionReconcilerMockRecorder is the mock recorder for MockCustomResourceDefinitionReconciler
type MockCustomResourceDefinitionReconcilerMockRecorder struct {
mock *MockCustomResourceDefinitionReconciler
}
// NewMockCustomResourceDefinitionReconciler creates a new mock instance
func NewMockCustomResourceDefinitionReconciler(ctrl *gomock.Controller) *MockCustomResourceDefinitionReconciler {
mock := &MockCustomResourceDefinitionReconciler{ctrl: ctrl}
mock.recorder = &MockCustomResourceDefinitionReconcilerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockCustomResourceDefinitionReconciler) EXPECT() *MockCustomResourceDefinitionReconcilerMockRecorder {
return m.recorder
}
// ReconcileCustomResourceDefinition mocks base method
func (m *MockCustomResourceDefinitionReconciler) ReconcileCustomResourceDefinition(obj *v1beta1.CustomResourceDefinition) (reconcile.Result, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ReconcileCustomResourceDefinition", obj)
ret0, _ := ret[0].(reconcile.Result)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ReconcileCustomResourceDefinition indicates an expected call of ReconcileCustomResourceDefinition
func (mr *MockCustomResourceDefinitionReconcilerMockRecorder) ReconcileCustomResourceDefinition(obj interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileCustomResourceDefinition", reflect.TypeOf((*MockCustomResourceDefinitionReconciler)(nil).ReconcileCustomResourceDefinition), obj)
}
// MockCustomResourceDefinitionDeletionReconciler is a mock of CustomResourceDefinitionDeletionReconciler interface
type MockCustomResourceDefinitionDeletionReconciler struct {
ctrl *gomock.Controller
recorder *MockCustomResourceDefinitionDeletionReconcilerMockRecorder
}
// MockCustomResourceDefinitionDeletionReconcilerMockRecorder is the mock recorder for MockCustomResourceDefinitionDeletionReconciler
type MockCustomResourceDefinitionDeletionReconcilerMockRecorder struct {
mock *MockCustomResourceDefinitionDeletionReconciler
}
// NewMockCustomResourceDefinitionDeletionReconciler creates a new mock instance
func NewMockCustomResourceDefinitionDeletionReconciler(ctrl *gomock.Controller) *MockCustomResourceDefinitionDeletionReconciler {
mock := &MockCustomResourceDefinitionDeletionReconciler{ctrl: ctrl}
mock.recorder = &MockCustomResourceDefinitionDeletionReconcilerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockCustomResourceDefinitionDeletionReconciler) EXPECT() *MockCustomResourceDefinitionDeletionReconcilerMockRecorder {
return m.recorder
}
// ReconcileCustomResourceDefinitionDeletion mocks base method
func (m *MockCustomResourceDefinitionDeletionReconciler) ReconcileCustomResourceDefinitionDeletion(req reconcile.Request) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ReconcileCustomResourceDefinitionDeletion", req)
ret0, _ := ret[0].(error)
return ret0
}
// ReconcileCustomResourceDefinitionDeletion indicates an expected call of ReconcileCustomResourceDefinitionDeletion
func (mr *MockCustomResourceDefinitionDeletionReconcilerMockRecorder) ReconcileCustomResourceDefinitionDeletion(req interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileCustomResourceDefinitionDeletion", reflect.TypeOf((*MockCustomResourceDefinitionDeletionReconciler)(nil).ReconcileCustomResourceDefinitionDeletion), req)
}
// MockCustomResourceDefinitionFinalizer is a mock of CustomResourceDefinitionFinalizer interface
type MockCustomResourceDefinitionFinalizer struct {
ctrl *gomock.Controller
recorder *MockCustomResourceDefinitionFinalizerMockRecorder
}
// MockCustomResourceDefinitionFinalizerMockRecorder is the mock recorder for MockCustomResourceDefinitionFinalizer
type MockCustomResourceDefinitionFinalizerMockRecorder struct {
mock *MockCustomResourceDefinitionFinalizer
}
// NewMockCustomResourceDefinitionFinalizer creates a new mock instance
func NewMockCustomResourceDefinitionFinalizer(ctrl *gomock.Controller) *MockCustomResourceDefinitionFinalizer {
mock := &MockCustomResourceDefinitionFinalizer{ctrl: ctrl}
mock.recorder = &MockCustomResourceDefinitionFinalizerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockCustomResourceDefinitionFinalizer) EXPECT() *MockCustomResourceDefinitionFinalizerMockRecorder {
return m.recorder
}
// ReconcileCustomResourceDefinition mocks base method
func (m *MockCustomResourceDefinitionFinalizer) ReconcileCustomResourceDefinition(obj *v1beta1.CustomResourceDefinition) (reconcile.Result, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ReconcileCustomResourceDefinition", obj)
ret0, _ := ret[0].(reconcile.Result)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ReconcileCustomResourceDefinition indicates an expected call of ReconcileCustomResourceDefinition
func (mr *MockCustomResourceDefinitionFinalizerMockRecorder) ReconcileCustomResourceDefinition(obj interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileCustomResourceDefinition", reflect.TypeOf((*MockCustomResourceDefinitionFinalizer)(nil).ReconcileCustomResourceDefinition), obj)
}
// CustomResourceDefinitionFinalizerName mocks base method
func (m *MockCustomResourceDefinitionFinalizer) CustomResourceDefinitionFinalizerName() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CustomResourceDefinitionFinalizerName")
ret0, _ := ret[0].(string)
return ret0
}
// CustomResourceDefinitionFinalizerName indicates an expected call of CustomResourceDefinitionFinalizerName
func (mr *MockCustomResourceDefinitionFinalizerMockRecorder) CustomResourceDefinitionFinalizerName() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CustomResourceDefinitionFinalizerName", reflect.TypeOf((*MockCustomResourceDefinitionFinalizer)(nil).CustomResourceDefinitionFinalizerName))
}
// FinalizeCustomResourceDefinition mocks base method
func (m *MockCustomResourceDefinitionFinalizer) FinalizeCustomResourceDefinition(obj *v1beta1.CustomResourceDefinition) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "FinalizeCustomResourceDefinition", obj)
ret0, _ := ret[0].(error)
return ret0
}
// FinalizeCustomResourceDefinition indicates an expected call of FinalizeCustomResourceDefinition
func (mr *MockCustomResourceDefinitionFinalizerMockRecorder) FinalizeCustomResourceDefinition(obj interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FinalizeCustomResourceDefinition", reflect.TypeOf((*MockCustomResourceDefinitionFinalizer)(nil).FinalizeCustomResourceDefinition), obj)
}
// MockCustomResourceDefinitionReconcileLoop is a mock of CustomResourceDefinitionReconcileLoop interface
type MockCustomResourceDefinitionReconcileLoop struct {
ctrl *gomock.Controller
recorder *MockCustomResourceDefinitionReconcileLoopMockRecorder
}
// MockCustomResourceDefinitionReconcileLoopMockRecorder is the mock recorder for MockCustomResourceDefinitionReconcileLoop
type MockCustomResourceDefinitionReconcileLoopMockRecorder struct {
mock *MockCustomResourceDefinitionReconcileLoop
}
// NewMockCustomResourceDefinitionReconcileLoop creates a new mock instance
func NewMockCustomResourceDefinitionReconcileLoop(ctrl *gomock.Controller) *MockCustomResourceDefinitionReconcileLoop {
mock := &MockCustomResourceDefinitionReconcileLoop{ctrl: ctrl}
mock.recorder = &MockCustomResourceDefinitionReconcileLoopMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockCustomResourceDefinitionReconcileLoop) EXPECT() *MockCustomResourceDefinitionReconcileLoopMockRecorder {
return m.recorder
}
// RunCustomResourceDefinitionReconciler mocks base method
func (m *MockCustomResourceDefinitionReconcileLoop) RunCustomResourceDefinitionReconciler(ctx context.Context, rec controller.CustomResourceDefinitionReconciler, predicates ...predicate.Predicate) error {
m.ctrl.T.Helper()
varargs := []interface{}{ctx, rec}
for _, a := range predicates {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "RunCustomResourceDefinitionReconciler", varargs...)
ret0, _ := ret[0].(error)
return ret0
}
// RunCustomResourceDefinitionReconciler indicates an expected call of RunCustomResourceDefinitionReconciler
func (mr *MockCustomResourceDefinitionReconcileLoopMockRecorder) RunCustomResourceDefinitionReconciler(ctx, rec interface{}, predicates ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{ctx, rec}, predicates...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunCustomResourceDefinitionReconciler", reflect.TypeOf((*MockCustomResourceDefinitionReconcileLoop)(nil).RunCustomResourceDefinitionReconciler), varargs...)
}