Skip to content

Commit c2b5b52

Browse files
fix(webhook): fix validation message in experiment webhook (#2507)
Signed-off-by: Electronic-Waste <[email protected]>
1 parent 4d2a230 commit c2b5b52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/webhook/v1beta1/experiment/validator/validator.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ func (g *DefaultValidator) ValidateExperiment(instance, oldInst *experimentsv1be
8585
if !namingConvention.MatchString(instance.Name) || len(instance.Name) > 40 {
8686
msg := "name must consist of lower case alphanumeric characters or '-'," +
8787
" start with an alphabetic character, and end with an alphanumeric character" +
88-
" (e.g. 'my-name', or 'abc-123', regex used for validation is '^[a-z]([-a-z0-9]*[a-z0-9])?)'" +
89-
" and may not be larger than 40 characters. "
88+
" (e.g. 'my-name', or 'abc-123', regex used for validation is '^[a-z]([-a-z0-9]*[a-z0-9])?)')" +
89+
" and may not be longer than 40 characters. "
9090

9191
allErrs = append(allErrs, field.Invalid(field.NewPath("metadata").Child("name"), instance.Name, msg))
9292
}

0 commit comments

Comments
 (0)