5
5
appsv1 "k8s.io/client-go/listers/apps/v1"
6
6
corev1 "k8s.io/client-go/listers/core/v1"
7
7
rbacv1 "k8s.io/client-go/listers/rbac/v1"
8
+ scheduling "k8s.io/client-go/listers/scheduling/v1"
8
9
aregv1 "k8s.io/kube-aggregator/pkg/client/listers/apiregistration/v1"
9
10
10
11
v1 "github.com/operator-framework/operator-lifecycle-manager/pkg/api/client/listers/operators/v1"
@@ -19,6 +20,7 @@ type OperatorLister interface {
19
20
RbacV1 () RbacV1Lister
20
21
APIRegistrationV1 () APIRegistrationV1Lister
21
22
APIExtensionsV1 () APIExtensionsV1Lister
23
+ SchedulingV1 () SchedulingV1Lister
22
24
23
25
OperatorsV1alpha1 () OperatorsV1alpha1Lister
24
26
OperatorsV1 () OperatorsV1Lister
@@ -74,6 +76,12 @@ type APIExtensionsV1Lister interface {
74
76
CustomResourceDefinitionLister () aextv1.CustomResourceDefinitionLister
75
77
}
76
78
79
+ //go:generate counterfeiter . SchedulingV1Lister
80
+ type SchedulingV1Lister interface {
81
+ RegisterPriorityClassLister (lister scheduling.PriorityClassLister )
82
+ PriorityClassLister () scheduling.PriorityClassLister
83
+ }
84
+
77
85
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . OperatorsV1alpha1Lister
78
86
type OperatorsV1alpha1Lister interface {
79
87
RegisterClusterServiceVersionLister (namespace string , lister v1alpha1.ClusterServiceVersionLister )
@@ -160,6 +168,16 @@ func newAPIExtensionsV1Lister() *apiExtensionsV1Lister {
160
168
}
161
169
}
162
170
171
+ type schedulingV1Lister struct {
172
+ priorityClassLister * UnionPriorityClassLister
173
+ }
174
+
175
+ func newSchedulingV1Lister () * schedulingV1Lister {
176
+ return & schedulingV1Lister {
177
+ priorityClassLister : & UnionPriorityClassLister {},
178
+ }
179
+ }
180
+
163
181
type operatorsV1alpha1Lister struct {
164
182
clusterServiceVersionLister * UnionClusterServiceVersionLister
165
183
catalogSourceLister * UnionCatalogSourceLister
@@ -190,13 +208,14 @@ func newOperatorsV1Lister() *operatorsV1Lister {
190
208
var _ OperatorLister = & lister {}
191
209
192
210
type lister struct {
193
- appsV1Lister * appsV1Lister
194
- coreV1Lister * coreV1Lister
195
- rbacV1Lister * rbacV1Lister
196
- apiRegistrationV1Lister * apiRegistrationV1Lister
197
- apiExtensionsV1Lister * apiExtensionsV1Lister
198
- operatorsV1alpha1Lister * operatorsV1alpha1Lister
199
- operatorsV1Lister * operatorsV1Lister
211
+ appsV1Lister * appsV1Lister
212
+ coreV1Lister * coreV1Lister
213
+ rbacV1Lister * rbacV1Lister
214
+ apiRegistrationV1Lister * apiRegistrationV1Lister
215
+ apiExtensionsV1Lister * apiExtensionsV1Lister
216
+ schedulingV1Lister * schedulingV1Lister
217
+ operatorsV1alpha1Lister * operatorsV1alpha1Lister
218
+ operatorsV1Lister * operatorsV1Lister
200
219
}
201
220
202
221
func (l * lister ) AppsV1 () AppsV1Lister {
@@ -219,6 +238,10 @@ func (l *lister) APIExtensionsV1() APIExtensionsV1Lister {
219
238
return l .apiExtensionsV1Lister
220
239
}
221
240
241
+ func (l * lister ) SchedulingV1 () SchedulingV1Lister {
242
+ return l .schedulingV1Lister
243
+ }
244
+
222
245
func (l * lister ) OperatorsV1alpha1 () OperatorsV1alpha1Lister {
223
246
return l .operatorsV1alpha1Lister
224
247
}
@@ -230,12 +253,13 @@ func (l *lister) OperatorsV1() OperatorsV1Lister {
230
253
func NewLister () OperatorLister {
231
254
// TODO: better initialization
232
255
return & lister {
233
- appsV1Lister : newAppsV1Lister (),
234
- coreV1Lister : newCoreV1Lister (),
235
- rbacV1Lister : newRbacV1Lister (),
236
- apiRegistrationV1Lister : newAPIRegistrationV1Lister (),
237
- apiExtensionsV1Lister : newAPIExtensionsV1Lister (),
238
- operatorsV1alpha1Lister : newOperatorsV1alpha1Lister (),
239
- operatorsV1Lister : newOperatorsV1Lister (),
256
+ appsV1Lister : newAppsV1Lister (),
257
+ coreV1Lister : newCoreV1Lister (),
258
+ rbacV1Lister : newRbacV1Lister (),
259
+ apiRegistrationV1Lister : newAPIRegistrationV1Lister (),
260
+ apiExtensionsV1Lister : newAPIExtensionsV1Lister (),
261
+ schedulingV1Lister : newSchedulingV1Lister (),
262
+ operatorsV1alpha1Lister : newOperatorsV1alpha1Lister (),
263
+ operatorsV1Lister : newOperatorsV1Lister (),
240
264
}
241
265
}
0 commit comments