Skip to content

Commit

Permalink
only compare the init containers
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkarlsen committed Sep 9, 2023
1 parent c39fcfc commit 4118138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/jobutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

func jobsAreEqual(first *batchv1.Job, second *batchv1.Job) bool {
return first != nil && second != nil &&
eq.Semantic.DeepEqual(first.Spec.Template.Spec, second.Spec.Template.Spec)
eq.Semantic.DeepEqual(first.Spec.Template.Spec.InitContainers, second.Spec.Template.Spec.InitContainers)
}

// from https://github.com/kubernetes/kubernetes/blob/v1.28.1/pkg/controller/job/utils.go
Expand Down

0 comments on commit 4118138

Please sign in to comment.