Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
Signed-off-by: Valeriy Khorunzhin <[email protected]>
  • Loading branch information
Valeriy Khorunzhin committed Dec 6, 2024
1 parent 999da45 commit 9d0db74
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ func (v *AffinityValidator) ValidateNodeFieldSelectorRequirement(req corev1.Node
}

// if vf, found := nodeFieldSelectorValidators[req.Key]; !found {
// allErrs = append(allErrs, field.Invalid(fldPath.Child("key"), req.Key, "not a valid field selector key"))
//} else {
// for i, v := range req.Values {
// for _, msg := range vf(v, false) {
// allErrs = append(allErrs, field.Invalid(fldPath.Child("values").Index(i), v, msg))
// }
// }
//}
// allErrs = append(allErrs, field.Invalid(fldPath.Child("key"), req.Key, "not a valid field selector key"))
// } else {
// for i, v := range req.Values {
// for _, msg := range vf(v, false) {
// allErrs = append(allErrs, field.Invalid(fldPath.Child("values").Index(i), v, msg))
// }
// }
// }

return allErrs
}
Expand Down

0 comments on commit 9d0db74

Please sign in to comment.