@@ -25,6 +25,7 @@ import (
2525 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2626 "k8s.io/apimachinery/pkg/runtime/schema"
2727 "k8s.io/apimachinery/pkg/types"
28+ "sigs.k8s.io/controller-runtime/pkg/client"
2829 "sigs.k8s.io/controller-runtime/pkg/controller/controllertest"
2930 "sigs.k8s.io/controller-runtime/pkg/event"
3031 "sigs.k8s.io/controller-runtime/pkg/reconcile"
@@ -60,7 +61,7 @@ var _ = Describe("LoggingEnqueueRequestForAnnotation", func() {
6061
6162 Expect (handler .SetOwnerAnnotations (podOwner , pod )).To (Succeed ())
6263 instance = LoggingEnqueueRequestForAnnotation {
63- handler.EnqueueRequestForAnnotation {
64+ handler.EnqueueRequestForAnnotation [client. Object ] {
6465 Type : schema.GroupKind {
6566 Group : "" ,
6667 Kind : "Pod" ,
@@ -220,7 +221,11 @@ var _ = Describe("LoggingEnqueueRequestForAnnotation", func() {
220221 }
221222 nd .SetGroupVersionKind (schema.GroupVersionKind {Group : "" , Version : "v1" , Kind : "Node" })
222223
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+ }
224229
225230 evt := event.CreateEvent {
226231 Object : nd ,
@@ -243,7 +248,11 @@ var _ = Describe("LoggingEnqueueRequestForAnnotation", func() {
243248 }
244249 nd .SetGroupVersionKind (schema.GroupVersionKind {Group : "" , Version : "v1" , Kind : "Node" })
245250
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+ }
247256 evt := event.CreateEvent {
248257 Object : nd ,
249258 }
@@ -341,11 +350,13 @@ var _ = Describe("LoggingEnqueueRequestForAnnotation", func() {
341350 repl .SetGroupVersionKind (schema.GroupVersionKind {Group : "apps" , Version : "v1" , Kind : "ReplicaSet" })
342351
343352 instance = LoggingEnqueueRequestForAnnotation {
344- handler.EnqueueRequestForAnnotation {
353+ handler.EnqueueRequestForAnnotation [client. Object ] {
345354 Type : schema.GroupKind {
346355 Group : "apps" ,
347356 Kind : "ReplicaSet" ,
348- }}}
357+ },
358+ },
359+ }
349360
350361 evt := event.CreateEvent {
351362 Object : repl ,
@@ -366,11 +377,13 @@ var _ = Describe("LoggingEnqueueRequestForAnnotation", func() {
366377 }
367378
368379 instance2 := LoggingEnqueueRequestForAnnotation {
369- handler.EnqueueRequestForAnnotation {
380+ handler.EnqueueRequestForAnnotation [client. Object ] {
370381 Type : schema.GroupKind {
371382 Group : "apps" ,
372383 Kind : "ReplicaSet" ,
373- }}}
384+ },
385+ },
386+ }
374387
375388 evt2 := event.UpdateEvent {
376389 ObjectOld : repl ,
0 commit comments