Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
Signed-off-by: Bence Csati <bence.csati@axoflow.com>
  • Loading branch information
csatib02 committed Nov 25, 2024
1 parent 6d9da14 commit e8c63a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/reloader/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,19 @@ func NewController(
// Set up event handlers for Deployments, DaemonSets and StatefulSets
_, _ = deploymentInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
AddFunc: controller.handleObject,
UpdateFunc: func(_, new interface{}) { controller.handleObject(new) },
UpdateFunc: func(_, newObj interface{}) { controller.handleObject(newObj) },
DeleteFunc: controller.handleObjectDelete,
})

_, _ = daemonSetInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
AddFunc: controller.handleObject,
UpdateFunc: func(_, new interface{}) { controller.handleObject(new) },
UpdateFunc: func(_, newObj interface{}) { controller.handleObject(newObj) },
DeleteFunc: controller.handleObjectDelete,
})

_, _ = statefulSetInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
AddFunc: controller.handleObject,
UpdateFunc: func(_, new interface{}) { controller.handleObject(new) },
UpdateFunc: func(_, newObj interface{}) { controller.handleObject(newObj) },
DeleteFunc: controller.handleObjectDelete,
})

Expand Down

0 comments on commit e8c63a7

Please sign in to comment.