@@ -25,6 +25,7 @@ import (
25
25
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
26
26
"k8s.io/apimachinery/pkg/runtime/schema"
27
27
"k8s.io/apimachinery/pkg/types"
28
+ "sigs.k8s.io/controller-runtime/pkg/client"
28
29
"sigs.k8s.io/controller-runtime/pkg/controller/controllertest"
29
30
"sigs.k8s.io/controller-runtime/pkg/event"
30
31
"sigs.k8s.io/controller-runtime/pkg/reconcile"
@@ -60,7 +61,7 @@ var _ = Describe("LoggingEnqueueRequestForAnnotation", func() {
60
61
61
62
Expect (handler .SetOwnerAnnotations (podOwner , pod )).To (Succeed ())
62
63
instance = LoggingEnqueueRequestForAnnotation {
63
- handler.EnqueueRequestForAnnotation {
64
+ handler.EnqueueRequestForAnnotation [client. Object ] {
64
65
Type : schema.GroupKind {
65
66
Group : "" ,
66
67
Kind : "Pod" ,
@@ -220,7 +221,11 @@ var _ = Describe("LoggingEnqueueRequestForAnnotation", func() {
220
221
}
221
222
nd .SetGroupVersionKind (schema.GroupVersionKind {Group : "" , Version : "v1" , Kind : "Node" })
222
223
223
- instance = LoggingEnqueueRequestForAnnotation {handler.EnqueueRequestForAnnotation {Type : schema.GroupKind {Group : "apps" , Kind : "ReplicaSet" }}}
224
+ instance = LoggingEnqueueRequestForAnnotation {
225
+ handler.EnqueueRequestForAnnotation [client.Object ]{
226
+ Type : schema.GroupKind {Group : "apps" , Kind : "ReplicaSet" },
227
+ },
228
+ }
224
229
225
230
evt := event.CreateEvent {
226
231
Object : nd ,
@@ -243,7 +248,11 @@ var _ = Describe("LoggingEnqueueRequestForAnnotation", func() {
243
248
}
244
249
nd .SetGroupVersionKind (schema.GroupVersionKind {Group : "" , Version : "v1" , Kind : "Node" })
245
250
246
- instance = LoggingEnqueueRequestForAnnotation {handler.EnqueueRequestForAnnotation {Type : nd .GetObjectKind ().GroupVersionKind ().GroupKind ()}}
251
+ instance = LoggingEnqueueRequestForAnnotation {
252
+ handler.EnqueueRequestForAnnotation [client.Object ]{
253
+ Type : nd .GetObjectKind ().GroupVersionKind ().GroupKind (),
254
+ },
255
+ }
247
256
evt := event.CreateEvent {
248
257
Object : nd ,
249
258
}
@@ -341,11 +350,13 @@ var _ = Describe("LoggingEnqueueRequestForAnnotation", func() {
341
350
repl .SetGroupVersionKind (schema.GroupVersionKind {Group : "apps" , Version : "v1" , Kind : "ReplicaSet" })
342
351
343
352
instance = LoggingEnqueueRequestForAnnotation {
344
- handler.EnqueueRequestForAnnotation {
353
+ handler.EnqueueRequestForAnnotation [client. Object ] {
345
354
Type : schema.GroupKind {
346
355
Group : "apps" ,
347
356
Kind : "ReplicaSet" ,
348
- }}}
357
+ },
358
+ },
359
+ }
349
360
350
361
evt := event.CreateEvent {
351
362
Object : repl ,
@@ -366,11 +377,13 @@ var _ = Describe("LoggingEnqueueRequestForAnnotation", func() {
366
377
}
367
378
368
379
instance2 := LoggingEnqueueRequestForAnnotation {
369
- handler.EnqueueRequestForAnnotation {
380
+ handler.EnqueueRequestForAnnotation [client. Object ] {
370
381
Type : schema.GroupKind {
371
382
Group : "apps" ,
372
383
Kind : "ReplicaSet" ,
373
- }}}
384
+ },
385
+ },
386
+ }
374
387
375
388
evt2 := event.UpdateEvent {
376
389
ObjectOld : repl ,
0 commit comments