Skip to content

Commit

Permalink
also watch own batch-jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkarlsen committed Sep 8, 2023
1 parent b0537c3 commit a5da5ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/controller/migration_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,6 @@ func (r *MigrationReconciler) createJobSpec(ctx context.Context, migration *flyw
func (r *MigrationReconciler) SetupWithManager(mgr ctrl.Manager) error {
return ctrl.NewControllerManagedBy(mgr).
For(&flywayv1alpha1.Migration{}).
Owns(&batchv1.Job{}).
Complete(r)
}

0 comments on commit a5da5ab

Please sign in to comment.