Skip to content

Commit

Permalink
Fix JobReconciler bug after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
achernevskii committed Nov 17, 2023
1 parent 09c09ce commit 676cecf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/controller/jobframework/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,10 @@ func (r *JobReconciler) updateWorkloadToMatchJob(ctx context.Context, job Generi
if err != nil {
return nil, fmt.Errorf("can't construct workload for update: %w", err)
}
err = r.prepareWorkload(ctx, job, newWl)
if err != nil {
return nil, fmt.Errorf("can't construct workload for update: %w", err)
}
wl.Spec = newWl.Spec
if err = r.client.Update(ctx, wl); err != nil {
return nil, fmt.Errorf("updating existed workload: %w", err)
Expand Down

0 comments on commit 676cecf

Please sign in to comment.