Skip to content

Commit

Permalink
fix bug in replicatedJobByName
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvegamyhre committed Aug 9, 2024
1 parent a96000a commit d844e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhooks/jobset_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func validateCoordinator(js *jobset.JobSet) error {
// Returns nil if no replicatedJob with the given name exists.
func replicatedJobByName(js *jobset.JobSet, replicatedJob string) *jobset.ReplicatedJob {
for _, rjob := range js.Spec.ReplicatedJobs {
if rjob.Name == js.Spec.Coordinator.ReplicatedJob {
if rjob.Name == replicatdJob {
return &rjob
}
}
Expand Down

0 comments on commit d844e52

Please sign in to comment.