Skip to content

Commit

Permalink
Merge pull request #3764 from hwdef/optimize-log
Browse files Browse the repository at this point in the history
Optimize the admission log of vcjob update
  • Loading branch information
volcano-sh-bot authored Oct 26, 2024
2 parents 4a7c823 + fb86906 commit 2ea1469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhooks/admission/jobs/validate/admit_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func validateJobUpdate(old, new *v1alpha1.Job) error {
}

if !apiequality.Semantic.DeepEqual(new.Spec, old.Spec) {
return fmt.Errorf("job updates may not change fields other than `minAvailable`, `tasks[*].replicas under spec`")
return fmt.Errorf("job updates may not change fields other than `minAvailable`, `tasks[*].replicas under spec` and `PriorityClassName`")
}

return nil
Expand Down

0 comments on commit 2ea1469

Please sign in to comment.