Owns jobs

This commit is contained in:
Jean-Marc ANDRE 2020-12-10 20:54:20 +01:00
parent 4a9cccd054
commit 0c44ee9c7b

View File

@ -408,7 +408,7 @@ func (r *BackupConfigurationReconciler) SetupWithManager(mgr ctrl.Manager) error
return ctrl.NewControllerManagedBy(mgr).
For(&formolv1alpha1.BackupConfiguration{}).
WithOptions(controller.Options{MaxConcurrentReconciles: 3}).
WithEventFilter(predicate.GenerationChangedPredicate{}).
// Owns(&kbatch_beta1.CronJob{}).
WithEventFilter(predicate.GenerationChangedPredicate{}). // Don't reconcile when status gets updated
Owns(&kbatch_beta1.CronJob{}).
Complete(r)
}