Skip to content

Commit

Permalink
Restore jobs recreation comment (#3770)
Browse files Browse the repository at this point in the history
Comment was removed in 57cdab7
  • Loading branch information
Dean-Coakley authored Feb 12, 2025
1 parent fac2b23 commit 5de81d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controller/utils/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,9 @@ func mergeState(desired client.Object, current runtime.Object) client.Object {
}
}

// We're only comparing jobs based off of annotations and containers images for now so we can send a signal to recreate a job.
// Later we might want to have some better comparison of jobs so that a changed in the container spec would trigger
// a recreation of the job
if reflect.DeepEqual(cj.Spec.Template.Annotations, dj.Spec.Template.Annotations) {
return nil
}
Expand Down

0 comments on commit 5de81d6

Please sign in to comment.