Skip to content

Commit 6a88102

Browse files
lalitc375k8s-publishing-bot
authored andcommitted
Fix wrong marking of errors
Kubernetes-commit: afb3edeb90e5fba91b354a1c5b44427d8278fc3c
1 parent efb7f26 commit 6a88102

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/api/validation/objectmeta.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func ValidateAnnotations(annotations map[string]string, fldPath *field.Path) fie
4646
for k := range annotations {
4747
// The rule is QualifiedName except that case doesn't matter, so convert to lowercase before checking.
4848
for _, msg := range validation.IsQualifiedName(strings.ToLower(k)) {
49-
allErrs = append(allErrs, field.Invalid(fldPath, k, msg)).WithOrigin("format=k8s-label-key")
49+
allErrs = append(allErrs, field.Invalid(fldPath, k, msg).WithOrigin("format=k8s-label-key"))
5050
}
5151
}
5252
if err := ValidateAnnotationsSize(annotations); err != nil {

0 commit comments

Comments
 (0)