Skip to content

Commit

Permalink
sort list of names
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Stuchinskii committed Oct 23, 2023
1 parent 7799023 commit b219249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhooks/workload_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func validatePodSetUpdates(acs *kueue.AdmissionCheckState, obj *kueue.Workload,
psu := &acs.PodSetUpdates[i]
psuPath := basePath.Index(i)
if !knowPodSets.Has(psu.Name) {
allErrs = append(allErrs, field.NotSupported(psuPath.Child("name"), psu.Name, knowPodSets.UnsortedList()))
allErrs = append(allErrs, field.NotSupported(psuPath.Child("name"), psu.Name, sets.List(knowPodSets)))
}
allErrs = append(allErrs, validateTolerations(psu.Tolerations, psuPath.Child("tolerations"))...)
allErrs = append(allErrs, apivalidation.ValidateAnnotations(psu.Annotations, psuPath.Child("annotations"))...)
Expand Down

0 comments on commit b219249

Please sign in to comment.