in internal/controller/evictionautoscaler_controller.go [203:213]
func (r *EvictionAutoScalerReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
For(&myappsv1.EvictionAutoScaler{}).
WithEventFilter(predicate.Funcs{
// ignore status updates as we make those.
UpdateFunc: func(ue event.UpdateEvent) bool {
return ue.ObjectOld.GetGeneration() != ue.ObjectNew.GetGeneration()
},
}).
Complete(r)
}