@@ -108,9 +108,9 @@ func NewController(ctx context.Context, registry *typed.Registry, dclient dynami
108108 if len (configFilePath ) > 0 {
109109 inf := fileInformerFactory .ForResource (fileinformer .FileGroupVersion .WithResource (configFilePath )).Informer ()
110110 if _ , err := inf .AddEventHandler (cache.ResourceEventHandlerFuncs {
111- AddFunc : func (obj interface {} ) { c .loadConfig (configFilePath ) },
112- UpdateFunc : func (_ , obj interface {} ) { c .loadConfig (configFilePath ) },
113- DeleteFunc : func (obj interface {} ) { c .loadConfig (configFilePath ) },
111+ AddFunc : func (_ any ) { c .loadConfig (configFilePath ) },
112+ UpdateFunc : func (_ , _ any ) { c .loadConfig (configFilePath ) },
113+ DeleteFunc : func (_ any ) { c .loadConfig (configFilePath ) },
114114 }); err != nil {
115115 return nil , err
116116 }
@@ -126,8 +126,8 @@ func NewController(ctx context.Context, registry *typed.Registry, dclient dynami
126126 nil ,
127127 )
128128 if _ , err := ownedInformerFactory .ForResource (v1alpha1ClusterGVR ).Informer ().AddEventHandler (cache.ResourceEventHandlerFuncs {
129- AddFunc : func (obj interface {} ) { c .enqueue (v1alpha1ClusterGVR , obj ) },
130- UpdateFunc : func (_ , obj interface {} ) { c .enqueue (v1alpha1ClusterGVR , obj ) },
129+ AddFunc : func (obj any ) { c .enqueue (v1alpha1ClusterGVR , obj ) },
130+ UpdateFunc : func (_ , obj any ) { c .enqueue (v1alpha1ClusterGVR , obj ) },
131131 // Delete is not used right now, we rely on ownerrefs to clean up
132132 }); err != nil {
133133 return nil , err
@@ -158,9 +158,9 @@ func NewController(ctx context.Context, registry *typed.Registry, dclient dynami
158158 return nil , err
159159 }
160160 if _ , err := inf .AddEventHandler (cache.ResourceEventHandlerFuncs {
161- AddFunc : func (obj interface {} ) { c .syncExternalResource (obj ) },
162- UpdateFunc : func (_ , obj interface {} ) { c .syncExternalResource (obj ) },
163- DeleteFunc : func (obj interface {} ) { c .syncExternalResource (obj ) },
161+ AddFunc : func (obj any ) { c .syncExternalResource (obj ) },
162+ UpdateFunc : func (_ , obj any ) { c .syncExternalResource (obj ) },
163+ DeleteFunc : func (obj any ) { c .syncExternalResource (obj ) },
164164 }); err != nil {
165165 return nil , err
166166 }
@@ -447,7 +447,7 @@ func (c *Controller) secretAdopter(next ...handler.Handler) handler.Handler {
447447 QueueOps .RequeueAPIErr (ctx , err )
448448 }
449449 // keep checking to see if the secret is added
450- QueueOps .Requeue (ctx )
450+ QueueOps .RequeueErr (ctx , err )
451451 },
452452 typed .IndexerFor [* corev1.Secret ](c .Registry , typed .NewRegistryKey (DependentFactoryKey , secretsGVR )),
453453 func (ctx context.Context , secret * applycorev1.SecretApplyConfiguration , options metav1.ApplyOptions ) (* corev1.Secret , error ) {
0 commit comments